Open feizhihui opened 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)
你试试啊
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)
你试试啊
我试了效果不行,还是会把专业领域的词分开进行词性标注,大家有解决的方法吗
如题