ShannonAI / mrc-for-flat-nested-ner

Code for ACL 2020 paper `A Unified MRC Framework for Named Entity Recognition`

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug in BMOES sequence decoding

dt-ahmed-touila opened this issue · comments

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

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