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

build_network.py: 'NoneType' object is not iterable #13

Open
abhinab303 opened this issue Jul 12, 2020 · 3 comments
Open

build_network.py: 'NoneType' object is not iterable #13

abhinab303 opened this issue Jul 12, 2020 · 3 comments

Comments

@abhinab303
Copy link

on this line:
entityList = json.loads(entityList)
when entityList input string equals to null(which was produced for my dataset by tagMe.py), entityList would be of type None and it will cause error while iterating on upcoming lines.

For now I assigned entityList to an empty list when it is None.

@1yangchunlian
Copy link

Hello, I also met this problem, have you solved it?

@abhinab303
Copy link
Author

Hello, I also met this problem, have you solved it?

yes. I already mentioned the fix.
entity_list = [] if entity_list is None

@Jungle-liu
Copy link

Hello, can you run build_ Network, what is the distribution of training set and test set? My training set is the number of tags * 2, but my number of tags is only 2, making my training set 4.
trainnum 4
4 4 79993
train: 4
vali: 4
test: 79993
AllTexts: 80001
text-ent: : 48366it [00:01, 28899.68it/s]

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

3 participants