liuhuanyong / TextGrapher

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

运行text_grapher.py出错 #15

Open gaohanga opened 2 years ago

gaohanga commented 2 years ago

Traceback (most recent call last): File "D:\github\text\TextGrapher-master\text_grapher.py", line 225, in handler = CrimeMining() File "D:\github\text\TextGrapher-master\text_grapher.py", line 17, in init self.parser = LtpParser() File "D:\github\text\TextGrapher-master\sentence_parser.py", line 12, in init self.segmentor = Segmentor() TypeError: init(): incompatible constructor arguments. The following argument types are supported:

  1. pyltp.Segmentor(model_path: str, lexicon_path: str = None, force_lexicon_path: str = None)

Invoked with: 请问这是什么原因

yellowmamba824 commented 2 years ago

me too

lili1234567890 commented 2 years ago

这是来自QQ邮箱的假期自动回复邮件。您好,邮件我已收到,祝好!

jyyang621 commented 1 year ago

我也是这个错误

lili1234567890 commented 1 year ago

这是来自QQ邮箱的假期自动回复邮件。您好,邮件我已收到,祝好!

coco1230 commented 1 year ago

pyltp的版本问题

lili1234567890 commented 1 year ago

这是来自QQ邮箱的假期自动回复邮件。您好,邮件我已收到,祝好!