liuwei1206 / LEBERT

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

IndexError: list index out of range #53

Closed AnddyWang closed 2 years ago

AnddyWang commented 2 years ago

IndexError: list index out of range,label为【0-28】,提示 29 越界

mxa4646 commented 2 years ago

Maybe same question https://github.com/liuwei1206/LEBERT/issues/51#issuecomment-1219294423

minskiter commented 1 year ago

因为CRF预测额外添加了两个虚标签(开始和结束标签)。训练参数预测出来的标签为虚标签,这是本文作者没有设置两种状态转移为不可转移导致的。