-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
models/tfidfmodel.py variablename idfs should be dfs #2
Comments
you're right, i'll rename it :) |
Merged
piskvorky
pushed a commit
that referenced
this issue
Apr 5, 2015
Fixed ShardedCorpus & tests for Python 3.
This was referenced Jul 1, 2015
Closed
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
src/gensim/models/tfidfmodel.py
in the initialize method:
idfs = {}
(...)
for termId, termCount in bow:
idfs[termId] = idfs.get(termId, 0) + 1
shouldn't this variable called "dfs" or something? because they are just document frequencies which are not yet inversed.
The text was updated successfully, but these errors were encountered: