ShannonAI / mrc-for-flat-nested-ner

Code for ACL 2020 paper `A Unified MRC Framework for Named Entity Recognition`
662 stars 118 forks source link

Bug in BMOES sequence decoding #22

Closed dt-ahmed-touila closed 4 years ago

dt-ahmed-touila commented 4 years ago

Bug in bmes_decode function, infinite loop encountered when predictions presented certain patterns (Exp: O-O-O-M-E).

On prediction output and in the first iterations of training such sequences are not impossible to get which leads to an infinite evaluation time.

Quick fix: add an idx+=1 in line

ghost commented 4 years ago

Thanks for pointing that out! I just made an update. Closing the issue.