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: object of type 'NoneType' has no len() with #3 settings #8

Open
SeekPoint opened this issue Dec 3, 2018 · 0 comments
Open

Comments

@SeekPoint
Copy link

(.venv) ub16hp@UB16HP:/ub16_prj/cnn-re-tf$ python distant_supervision.py
===== step 1 =====
[1/4] Downloading wiki articles ...
===== step 2 =====
[1/4] Downloading wiki articles ...
===== step 3 =====
[1/4] Downloading wiki articles ...
===== step 4 =====
[1/4] Downloading wiki articles ...
===== step 5 =====
[1/4] Downloading wiki articles ...
===== step 6 =====
[1/4] Downloading wiki articles ...
===== step 7 =====
[1/4] Downloading wiki articles ...
Traceback (most recent call last):
File "distant_supervision.py", line 693, in
main()
File "distant_supervision.py", line 681, in main
positive_examples()
File "distant_supervision.py", line 452, in positive_examples
ret = loop(step, doc_id, limit, entities, relations, counter)
File "distant_supervision.py", line 343, in loop
docs = download_wiki_articles(doc_id, limit)
File "distant_supervision.py", line 73, in download_wiki_articles
pages = bs(r, "html.parser").findAll('page')
File "/home/ub16hp/ub16_prj/cnn-re-tf/.venv/local/lib/python2.7/site-packages/bs4/init.py", line 246, in init
elif len(markup) <= 256 and (
TypeError: object of type 'NoneType' has no len()
(.venv) ub16hp@UB16HP:
/ub16_prj/cnn-re-tf$

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