Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google colaboratory 如何在Google Colab笔记本上安装SpacyTextBlob?AttributeError:没有属性“;“工厂”;_Google Colaboratory_Attributeerror - Fatal编程技术网

Google colaboratory 如何在Google Colab笔记本上安装SpacyTextBlob?AttributeError:没有属性“;“工厂”;

Google colaboratory 如何在Google Colab笔记本上安装SpacyTextBlob?AttributeError:没有属性“;“工厂”;,google-colaboratory,attributeerror,Google Colaboratory,Attributeerror,我试图使用SpacyTextBlob对一系列文章进行情绪分析。 因此,我使用谷歌Colab Colab在遵循spacytextblob网站的说明时抛出以下错误。AttributeError:类型对象“language”没有属性“factory” 我能做什么 import spacy !pip install spacytextblob from spacytextblob.spacytextblob import SpacyTextBlob nlp = spacy.load('en_core_

我试图使用SpacyTextBlob对一系列文章进行情绪分析。 因此,我使用谷歌Colab

Colab在遵循spacytextblob网站的说明时抛出以下错误。AttributeError:类型对象“language”没有属性“factory”

我能做什么

import spacy
!pip install spacytextblob
from spacytextblob.spacytextblob import SpacyTextBlob

nlp = spacy.load('en_core_web_sm')
nlp.add_pipe("spacytextblob")
doc = nlp(text)
另外,当我尝试安装入门所需的数据时,我会得到一个SyntaxError

python -m textblob.download_corpora