liuhuanyong / TextGrapher

Text Content Grapher based on keyinfo extraction by NLP method。输入一篇文档,将文档进行关键信息提取,进行结构化,并最终组织成图谱组织形式,形成对文章语义信息的图谱化展示。
1.37k stars 360 forks source link

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

Open wanghaisheng opened 5 years ago

wanghaisheng commented 5 years ago

. (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 commented 5 years ago

himss2019all.txt