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

TypeError: 'float' object is not subscriptable in get_labels in cand generation #9

Open
seilsepour opened this issue Aug 17, 2019 · 0 comments

Comments

@seilsepour
Copy link

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?
denkv added a commit to dice-group/NETL-Automatic-Topic-Labelling- that referenced this issue Jun 14, 2021
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

No branches or pull requests

1 participant