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

Updated the error message for the case when build_vocab() is triggered more than once without update parameter #1190

Merged
merged 1 commit into from
Mar 7, 2017

Conversation

prakhar2b
Copy link
Contributor

Updated the error message for the case when build_vocab() is triggered more than once without update parameter, according to the discussion in (issue #1187 )

model = gensim.models.Word2Vec(sentences,min_count=3,trim_rule=my_rule)
model.build_vocab(sentences) #throws error
model.build_vocab(sentences, update = True) #works as expected

Updated the error message for the case when build_vocab() is triggered more than once without update parameter.

model = gensim.models.Word2Vec(sentences,min_count=3,trim_rule=my_rule)
model.build_vocab(sentences) #throws error
model.build_vocab(sentences, update = True) #works as expected
@prakhar2b prakhar2b changed the title Updated the error message for the case when build_vocab() is triggered more than once without Updated the error message for the case when build_vocab() is triggered more than once without update parameter Mar 7, 2017
@tmylk
Copy link
Contributor

tmylk commented Mar 7, 2017

Thanks for quickly fixing your issue!

@tmylk tmylk merged commit c2f3716 into piskvorky:develop Mar 7, 2017
@prakhar2b prakhar2b deleted the prakhar_2017 branch March 8, 2017 06:49
pranaydeeps pushed a commit to pranaydeeps/gensim that referenced this pull request Mar 21, 2017
…iskvorky#1190)

Updated the error message for the case when build_vocab() is triggered more than once without update parameter.

model = gensim.models.Word2Vec(sentences,min_count=3,trim_rule=my_rule)
model.build_vocab(sentences) #throws error
model.build_vocab(sentences, update = True) #works as expected
@m-sas88
Copy link

m-sas88 commented Aug 11, 2021

Updated the error message for the case when build_vocab() is triggered more than once without update parameter, according to the discussion in (issue #1187 )

model = gensim.models.Word2Vec(sentences,min_count=3,trim_rule=my_rule)
model.build_vocab(sentences) #throws error
model.build_vocab(sentences, update = True) #works as expected

Thanks a lot , it helps me to fix the errors

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

Successfully merging this pull request may close these issues.

3 participants