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

Fix misleading Doc2Vec.docvecs comment #2472

Merged
merged 3 commits into from
May 4, 2019
Merged

Conversation

gojomo
Copy link
Collaborator

@gojomo gojomo commented May 1, 2019

Existing doc-comment was confused & misleading, implying Doc2Vec handles word-senses by giving single word tokens different word-vectors in different contexts. (See https://stackoverflow.com/questions/55939511/word-vectors-from-a-whole-doc2vec-model-vs-word-vectors-from-a-particular-docum/55941468#55941468 for an example confused user.) Doc2Vec doesn't do that, so this changes the comment to be matter-of-fact about accessing vectors via .docvecs.

Existing doc-comment was confused & misleading, implying `Doc2Vec` handles word-senses by giving single word tokens different word-vectors in different contexts. (See <https://stackoverflow.com/questions/55939511/word-vectors-from-a-whole-doc2vec-model-vs-word-vectors-from-a-particular-docum/55941468#55941468> for an example confused user.) `Doc2Vec` doesn't do that, so this changes the comment to be matter-of-fact about accessing vectors via `.docvecs`.
@mpenkov
Copy link
Collaborator

mpenkov commented May 2, 2019

Looks like there's a trailing whitespace somewhere, and it's causing flake8 to choke. Can you please have a look and fix?

@mpenkov
Copy link
Collaborator

mpenkov commented May 3, 2019

There are still problems with spaces that fail the flake8 linter. Please have a look here for details.

@gojomo
Copy link
Collaborator Author

gojomo commented May 3, 2019

I think it's fixed now.

@mpenkov mpenkov merged commit cb3a4a7 into develop May 4, 2019
@mpenkov mpenkov deleted the Doc2Vec.docvecs-doc-comment branch May 4, 2019 02:26
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