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

ValueError: invalid literal for int() with base 10: '' #5

Open
wanghaisheng opened this issue Mar 6, 2019 · 1 comment
Open

ValueError: invalid literal for int() with base 10: '' #5

wanghaisheng opened this issue Mar 6, 2019 · 1 comment

Comments

@wanghaisheng
Copy link

.
(py2.7) ➜ TextGrapher git:(master) ✗ python text_grapher.py
Traceback (most recent call last):
File "text_grapher.py", line 407, in
handler.main(content9)
File "text_grapher.py", line 169, in main
words, postags = self.process_sent(sent)
File "text_grapher.py", line 47, in process_sent
words, postags = self.parser.basic_process(sent)
File "/Users/wanghaisheng/workspace/TextGrapher/sentence_parser.py", line 161, in basic_process
name_entity_dist = self.format_entity(words, netags, postags)
File "/Users/wanghaisheng/workspace/TextGrapher/sentence_parser.py", line 83, in format_entity
name_entity_dist['nhs'] = self.modify_entity(name_entity_list, words, postags, 'nh')
File "/Users/wanghaisheng/workspace/TextGrapher/sentence_parser.py", line 100, in modify_entity
consist = [words[int(start_index)] + '/' + postags[int(start_index)]]
ValueError: invalid literal for int() with base 10: ''
(py2.7) ➜ TextGrapher git:(master) ✗

@wanghaisheng
Copy link
Author

himss2019all.txt

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