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

TWE-1 and TWE-3 errors #1

Open
Tellyang7 opened this issue Apr 10, 2019 · 0 comments
Open

TWE-1 and TWE-3 errors #1

Tellyang7 opened this issue Apr 10, 2019 · 0 comments

Comments

@Tellyang7
Copy link

I met these issues:
In TWE-1:
When train topic vectors: topical_word_embeddings/TWE-1/gensim/models/word2vec.py", line 901
NameError: global name 'train_sentence_topic' is not defined

In TWE-3:
TWE-3/gensim/models/word2vec.py", line 126, in train_sentence_sg
l1 = model.syn0[word2.index]
IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices

I was so upset as so many times tried and failed, and different compile ways also have tried. Please help me.

@Tellyang7 Tellyang7 changed the title TWE-1 and TWE-2 errors TWE-1 and TWE-3 errors Apr 10, 2019
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

1 participant