Closed 777umbra closed 4 months ago
Hi,
This is not a word2vec
model, this is an ELMo
contextualized language model.
Gensim cannot handle these models, you should use libraries like https://github.com/ltgoslo/simple_elmo
Hi, This is not a
word2vec
model, this is anELMo
contextualized language model. Gensim cannot handle these models, you should use libraries like https://github.com/ltgoslo/simple_elmo
Thanks a lot!
Hope this helps!
This code works fine
nlpl_zip="C:/180.zip" with zipfile.ZipFile(nlpl_zip, "r") as archive: stream = archive.open("model.bin") model = gensim.models.KeyedVectors.load_word2vec_format(stream, binary=True,unicode_errors='replace')
But when I tried to load model from http://vectors.nlpl.eu/repository/20/212.zip to folder C:/212.zip it doesn't work out, cause there is no model.bin inside. Only these ones But when I try
stream = archive.open("model.ckpt.data-00000-of-00001")
I've got the following. What am I doing wrong?