dainlp / acl2020-transition-discontinuous-ner

65 stars 9 forks source link

only discontinuous mentions are considered #15

Open YuhongLIN4131 opened 2 years ago

YuhongLIN4131 commented 2 years ago

When only discontinuous mentions are considered, does it mean that the test only contains sentences with discontinuous mentions?

dainlp commented 2 years ago

'Sentences with discontinuous mentions' and 'Discontinuous mentions only' are different.

'Evaluating Discontinuous mentions only ' looks like

for p in predictions:
     if p is not discontinuous mention: continue
     if p in golds:
         tp += 1
    else:
        fp += 1

for g in golds:
     if g is not discontinuous: continue
     if g not in predictions:
        fn += 1

Hope it is clear

YuhongLIN4131 commented 2 years ago

I got it. Thank you very much for your reply.