hnky / aiml40

0 stars 2 forks source link

No module named `spacy` #1

Open revodavid opened 4 years ago

revodavid commented 4 years ago

When running first chunk of absa.ipynb

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-3-c8c21a52faab> in <module>
     15 from azureml.core.resource_configuration import ResourceConfiguration
     16 
---> 17 import spacy
     18 from nlp_architect.models.absa.inference.inference import SentimentInference
     19 from spacy import displacy

ModuleNotFoundError: No module named 'spacy'
revodavid commented 4 years ago

I tried running:

#!pip install -U spacy

but that only bumped the error to the next line:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-19-ef7ef2749526> in <module>
      2 
      3 import spacy
----> 4 from nlp_architect.models.absa.inference.inference import SentimentInference
      5 from spacy import displacy
      6 from nlp_architect.models.absa.inference.data_types import TermType

ModuleNotFoundError: No module named 'nlp_architect'

Where does nlp_architect.models.absa.inference.inference come from?

revodavid commented 4 years ago

Tag @sethjuarez

revodavid commented 4 years ago

I tried running:

!pip install spacy
!pip install git+https://github.com/NervanaSystems/nlp-architect.git@absa

but got this error from the nlp-architect install:

ValueError: [E173] As of v2.2, the Lemmatizer is initialized with an instance of Lookups containing the lemmatization tables. See the docs for details: https://spacy.io/api/lemmatizer#init

Note also that !pip install spacy==2.0.18 generates errors from azureml about incompatible versions from dependencies.