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

Bug Fix: Uninitialized dictionary.id2token used in CoherenceModel #2971

Closed
wants to merge 1 commit into from

Conversation

zephyrzilla
Copy link

This PR addresses issue: #2919

Changes mentioned in the issue have been done.

https://github.com/RaRe-Technologies/gensim/blob/817cac99422a255001034203dc0720f7d0df0ce6/gensim/models/coherencemodel.py#L447

has been replaced with:

topic = (self.dictionary[_id] for _id in topic)

@mpenkov mpenkov self-assigned this Jun 22, 2021
@mpenkov
Copy link
Collaborator

mpenkov commented Jun 22, 2021

Note to self: need to add unit tests to demonstrate the fix.

@mpenkov
Copy link
Collaborator

mpenkov commented Jun 29, 2021

Thank you for this contribution, but it looks like this issue has already been addressed in #2830, so I'm closing this PR.

@mpenkov mpenkov closed this Jun 29, 2021
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.

2 participants