Skip to content

lsa dist_word_doc doesn't handle word_or_words #153

@colinallen

Description

@colinallen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    non-LDATag for non-LDA models, these are a lower priority for fixes

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions