liuwei1206 / LEBERT

Code for the ACL2021 paper "Lexicon Enhanced Chinese Sequence Labelling Using BERT Adapter"
338 stars 60 forks source link

请问作者hidden2tag为什么等于num_labels+2,在convert id2item的时候会报错,越界了 #55

Closed lkm123 closed 1 year ago

lkm123 commented 2 years ago

请问作者hidden2tag为什么等于num_labels+2,在convert id2item的时候会报错,越界了 @liuwei1206

liuwei1206 commented 1 year ago

Hi,

You should first know more about the Conditional Random Field (CRF). And then you can understand why it is num_labels + 2.