Ma-Dan / XLNet-ChineseNER

Tensorflow solution of NER task Using BiLSTM-CRF model with CMU/Google XLNet
45 stars 6 forks source link

做predict时候的pre_path长度和句子的字的个数不一样,导致预测的对不上 #2

Open tianer1986 opened 5 years ago

tianer1986 commented 5 years ago

按道理pre_path长度和句子的字的个数应该是一样的才行,这样预测的ner的标签才对应的上句子的字

Ma-Dan commented 5 years ago

因为sentencepiece分出来的不完全是字,有一些是词。

Ma-Dan commented 5 years ago

更新了一下,现在都处理成字向量,而且长度一致了。