jiesutd / NCRFpp

NCRF++, a Neural Sequence Labeling Toolkit. Easy use to any sequence labeling tasks (e.g. NER, POS, Segmentation). It includes character LSTM/CNN, word LSTM/CNN and softmax/CRF components.
Apache License 2.0
1.89k stars 446 forks source link

n best decode #161

Closed lijiayi980130 closed 3 years ago

lijiayi980130 commented 3 years ago

Hi,I want to know how the n best decodeing work to increase F1 on NER task, I don't know why n best=10 will increase F1

jiesutd commented 3 years ago

n-best will not improve F1, but it will give more choices of the decoding results. In some cases, the best result is not in the top-1 prediction but in the second/third predictions.