-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend score_spans for overlapping & non-labeled spans #7209
Extend score_spans for overlapping & non-labeled spans #7209
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few minor things. (It's nice to see that it wasn't too hard to extend, or at least I hope it wasn't!)
As a side note, I was wondering in general whether we should switch the whole method (and also the NER PRF method) to use character offsets without referring to any token alignments. I think the scorer originally used token alignments because we didn't necessarily have a character representation of the text in an unspaced GoldParse
, but I don't think that's an issue now.
That's a good point. Also I think Let's perhaps do it in a follow-up PR though? |
No, I meant the "side note" part! It just came up a few times recently and I mentioned it since we were both looking at the details. I don't think you can have spans that don't line up with tokens, though? |
Oh right ofcourse, they're just going to be |
|
Yea I don't know where my brain was when I typed that ;-) Anyway Matt I think if you agree with the naming, this is good to merge? |
@svlandeg About the naming I think I'd suggest just |
Ooh, a double-l conundrum! I think our official position would be |
I see your point, but an existing parameter is called |
Description
Extending the functionality of
Scorer.score_spans
so it'll be applicable also for non-NE evaluations like coref mentions, that could be overlapping and do not necessarily have labels.Types of change
enhancement
Checklist