Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: The word vector model is being loaded. #1

Open
arossbach10 opened this issue Dec 14, 2021 · 1 comment
Open

Error: The word vector model is being loaded. #1

arossbach10 opened this issue Dec 14, 2021 · 1 comment

Comments

@arossbach10
Copy link

Hi,

I wanted to try the model but an error occurred:

The word vector model is being loaded.
Traceback (most recent call last):
File "run_anea.py", line 141, in
run()
File "run_anea.py", line 124, in run
graph = Graph(noun_terms, topN_terms=topN)
File "/content/ANEA/category_identificator/ANEA_annotator/graph/graph.py", line 35, in init
self._domain_types_identif()
File "/content/ANEA/category_identificator/ANEA_annotator/graph/graph.py", line 247, in _domain_types_identif
self.model = get_model()
File "/content/ANEA/utils/wordvectors.py", line 39, in get_model
model = WordEmbeddings()
File "/content/ANEA/utils/wordvectors.py", line 17, in init
self._model = load_facebook_model(wordvectors[we_name])
File "/usr/local/lib/python3.7/dist-packages/gensim/models/fasttext.py", line 1142, in load_facebook_model
return _load_fasttext_format(path, encoding=encoding, full_model=True)
File "/usr/local/lib/python3.7/dist-packages/gensim/models/fasttext.py", line 1222, in _load_fasttext_format
m = gensim.models._fasttext_bin.load(fin, encoding=encoding, full_model=full_model)
File "/usr/local/lib/python3.7/dist-packages/gensim/models/_fasttext_bin.py", line 341, in load
raw_vocab, vocab_size, nwords, ntokens = _load_vocab(fin, new_format, encoding=encoding)
File "/usr/local/lib/python3.7/dist-packages/gensim/models/_fasttext_bin.py", line 194, in _load_vocab
raise NotImplementedError("Supervised fastText models are not supported")
NotImplementedError: Supervised fastText models are not supported

@anastasia-zhukova
Copy link
Owner

Hi @arossbach10 ,

Could you send me which python version you are running and gensim version?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants