when running the following line in a Jupiter notebook:
from emfdscore.scoring import score_docs
the following exception is thrown:
ImportError: cannot import name util
Full trace:
ImportError Traceback (most recent call last)
Cell In[127], line 2
1 import thinc
----> 2 from emfdscore.scoring import score_docs
File [~/XXXX/XXXX/venv/lib/python3.8/site-packages/emfdscore/scoring.py:5](https://file+.vscode-resource.vscode-cdn.net/Users/naomicustodio/XXXX/XXXX/~/XXXX/XXXX/venv/lib/python3.8/site-packages/emfdscore/scoring.py:5)
2 from nltk.corpus import stopwords
4 from sklearn.feature_extraction import text
----> 5 import spacy
6 from spacy.lang.en.stop_words import STOP_WORDS
7 from spacy.language import Language
File [~/Mestrado/Thesis/venv/lib/python3.8/site-packages/spacy/__init__.py:14](https://file+.vscode-resource.vscode-cdn.net/Users/naomicustodio/Mestrado/Thesis/~/Mestrado/Thesis/venv/lib/python3.8/site-packages/spacy/__init__.py:14)
11 from thinc.api import prefer_gpu, require_gpu, require_cpu # noqa: F401
12 from thinc.api import Config
---> 14 from . import pipeline # noqa: F401
15 from .cli.info import info # noqa: F401
16 from .glossary import explain # noqa: F401
File [~/XXXX/XXXX/venv/lib/python3.8/site-packages/spacy/pipeline/__init__.py:1](https://file+.vscode-resource.vscode-cdn.net/Users/naomicustodio/XXXX/XXXX/~/XXXX/XXXX/venv/lib/python3.8/site-packages/spacy/pipeline/__init__.py:1)
----> 1 from .attributeruler import AttributeRuler
2 from .dep_parser import DependencyParser
...
3 from .span import Span
File [~/XXXX/XXXX/venv/lib/python3.8/site-packages/spacy/tokens/doc.pyx:34](https://file+.vscode-resource.vscode-cdn.net/Users/naomicustodio/XXXX/XXXX/~/XXXX/XXXX/venv/lib/python3.8/site-packages/spacy/tokens/doc.pyx:34), in init spacy.tokens.doc()
ImportError: cannot import name util
python version: 3.8.8
Is there anything that I can do to solve the issue?
Hello everyone,
when running the following line in a Jupiter notebook:
from emfdscore.scoring import score_docs
the following exception is thrown:ImportError: cannot import name util
Full trace:
python version: 3.8.8
Is there anything that I can do to solve the issue?