baidu / lac

百度NLP:分词,词性标注,命名实体识别,词重要性

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

这是BUG吗?mode=lac的分词结果和mode=seg的分词结果不一致!

lubupang opened this issue · comments

lac1=LAC(mode='lac')
W1123 11:28:51.804947 18096 analysis_predictor.cc:1183] Deprecated. Please use CreatePredictor instead.
e[37m--- Fused 0 subgraphs into layer_norm op.e[0m
lac2=LAC(mode='seg')
e[37m--- Fused 0 subgraphs into layer_norm op.e[0m
lac1.run(str1)
[['拖鞋室内家居女夏家用浴室防滑洗澡厚底居家夏季可爱男凉拖鞋情侣'], ['nw']]
lac2.run(str1)
['拖鞋', '室内', '家居', '女夏', '家用', '浴室', '防滑', '洗澡', '厚底', '居家', '夏季', '可爱', '男', '凉', '拖鞋', '情侣']

哪位大哥有办法解决下这个问题?

同问