sent2vec
sent2vec copied to clipboard
name 'stdvector_base' is not defined when calling sent2vec.Sent2vecModel.embed_sentence()
NameError Traceback (most recent call last)
src/sent2vec.pyx in sent2vec.Sent2vecModel.embed_sentence()
src/sent2vec.pyx in sent2vec.Sent2vecModel.embed_sentences()
src/sent2vec.pyx in sent2vec.vector_wrapper.asarray()
NameError: name 'stdvector_base' is not defined
I went to the code of stdvector_base and only see "pass" in the class definition. I added the default constructor but doesn't help to resolve the issue. Any suggestion? This April, I could run it successfully but it cannot work now.
Very weird, which system are you on?
Had the same issue as well, turns out it was because the input (line in the above example) was an empty Python list. Resolved by filling the list with a placeholder string. Hope that helps!