Flair: Why TP is always equal to TN in the final test?

Created on 20 May 2019  路  5Comments  路  Source: flairNLP/flair

Hi! I've seen that in the final test (evaluation of NER model after training) TP is always equal to the TN. Why does it happening?
Thank you.

question wontfix

Most helpful comment

I wonder how one would count TNs in an entity-level evaluation. They are essentially all possible entities which were not tagged. So I would argue that they are simply not defined. As NER systems are usually evaluated according to precision, recall, F1, the true negatives do not play a role.

All 5 comments

I also encountered this problem, what is the reason?

@alanakbik Even I have encountered the same thing for my case of a very custom model. I had ignored it before assuming it to be a case of coincidence.

This is probably a bug in the way TNs are counted. We have a few open issues so will fix this hopefully soon!

I wonder how one would count TNs in an entity-level evaluation. They are essentially all possible entities which were not tagged. So I would argue that they are simply not defined. As NER systems are usually evaluated according to precision, recall, F1, the true negatives do not play a role.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings