You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all.
I have called get_labels in my code, and i have received this error:
**```
in get_labels(topic_num)
53 print(temp)
54 print(type(avgdoc2vec))
---> 55 resultdoc2vec.append((temp,float(avgdoc2vec[elem])))
56
57 # This modifies the average word2vec vector for cases in which the word2vec label was same as topic word.
TypeError: 'float' object is not subscriptable
it seems avgdoc2vec is a float varible, so it can not be used by [elem].
any help please?
The text was updated successfully, but these errors were encountered:
denkv
added a commit
to dice-group/NETL-Automatic-Topic-Labelling-
that referenced
this issue
Jun 14, 2021
Hi all.
I have called get_labels in my code, and i have received this error:
**```
in get_labels(topic_num)
53 print(temp)
54 print(type(avgdoc2vec))
---> 55 resultdoc2vec.append((temp,float(avgdoc2vec[elem])))
56
57 # This modifies the average word2vec vector for cases in which the word2vec label was same as topic word.
The text was updated successfully, but these errors were encountered: