liuhuanyong / EventTriplesExtraction

An experiment and demo-level tool for text information extraction (event-triples extraction), which can be a route to the event chain and topic graph, 基于依存句法与语义角色标注的事件三元组抽取,可用于文本理解如文档主题链,事件线等应用。
916 stars 220 forks source link

三元组提取过程不识别未登录词,可以加入自定义字典吗 #9

Open feizhihui opened 4 years ago

feizhihui commented 4 years ago

如题

37266542 commented 4 years ago
    user_dict = "userdict.txt"
    self.segmentor = Segmentor()
    #self.segmentor.load(os.path.join(LTP_DIR, "cws.model"))
    self.segmentor.load_with_lexicon(os.path.join(LTP_DIR, "cws.model"),user_dict)

你试试啊

lu776 commented 4 years ago
    user_dict = "userdict.txt"
    self.segmentor = Segmentor()
    #self.segmentor.load(os.path.join(LTP_DIR, "cws.model"))
    self.segmentor.load_with_lexicon(os.path.join(LTP_DIR, "cws.model"),user_dict)

你试试啊

我试了效果不行,还是会把专业领域的词分开进行词性标注,大家有解决的方法吗