pyltp icon indicating copy to clipboard operation
pyltp copied to clipboard

分词功能_动态分词 & 强制分词

Open dabao0903 opened this issue 5 years ago • 0 comments

请问,想动态添加分词结果,并且强制进行分词,应该如何实现? 例如: target = "国家非法集资办公室" content = "国家非法集资办公室近日宣称:将着力打击一切违法违规活动"

希望可以固定分词"国家非法集资办公室",并且动态添加。 segmentor = Segmentor() segmentor.add("国家非法集资办公室",freq = 999, pos = "n")?

dabao0903 avatar Dec 25 '19 08:12 dabao0903