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

lsa dist_word_doc doesn't handle word_or_words #153

Open
colinallen opened this issue May 23, 2017 · 0 comments
Open

lsa dist_word_doc doesn't handle word_or_words #153

colinallen opened this issue May 23, 2017 · 0 comments
Labels
non-LDA Tag for non-LDA models, these are a lower priority for fixes

Comments

@colinallen
Copy link
Member

lsa_v.dist_word_doc([‘anthropomorphism’],label_fn=htrc_label_fn_1315) works but adding other words to the initial list causes an error:

"ValueError: shape mismatch: value array of shape (2,) could not be broadcast to indexing result of shape (2,1)"

This is with [‘anthropomorphism’, ‘animal’] as first arg. This despite doc_string saying: :param word_or_words: Query word(s) to which a pseudo-document is
created for computation of distances.

@JaimieMurdock JaimieMurdock added this to the Topic Explorer 1.0 milestone Apr 7, 2018
@JaimieMurdock JaimieMurdock added the non-LDA Tag for non-LDA models, these are a lower priority for fixes label Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
non-LDA Tag for non-LDA models, these are a lower priority for fixes
Projects
None yet
Development

No branches or pull requests

2 participants