Closed immorBen closed 2 years ago
A somewhat similar issue happened in Azure related issues, they suggested modifying "import Mapping/Iterable from collections.abc" in related scripts.
As reflected somewhere else, this import error is along with python 3.10. Re-install with python 3.8.8 can figure out this problem.
When running "test.test_classifier_single_paper()",
got the following messages:
and "from collections.abc import Mapping" works well. @angelosalatino
If changing
File "[my-personal-path]lib/python3.10/site-packages/gensim/corpora/dictionary.py"
, modify the import as "from collections.abc import Mapping", another importing error occurred:gensim/models/fasttext.py
also uses "Iterable"...details about my environment os: ubuntu 18.04.6 LTS versions: