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.
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.