Skip to content

Fix issue with resolving final token in SpanResolver#27

Merged
polm merged 3 commits into
explosion:masterfrom
polm:fix/spanresolve-final-token
Nov 2, 2022
Merged

Fix issue with resolving final token in SpanResolver#27
polm merged 3 commits into
explosion:masterfrom
polm:fix/spanresolve-final-token

Conversation

@polm

@polm polm commented Oct 24, 2022

Copy link
Copy Markdown
Contributor

The SpanResolver seems unable to include the final token in a Doc in output spans. It will even produce empty spans instead of doing so.

This makes changes so that within the model span end indices are treated as inclusive, and converts them back to exclusive when annotating docs. This has been tested to work, though an automated test should be added.

polm added 3 commits October 24, 2022 16:14
The SpanResolver seems unable to include the final token in a Doc in
output spans. It will even produce empty spans instead of doing so.

This makes changes so that within the model span end indices are treated
as inclusive, and converts them back to exclusive when annotating docs.
This has been tested to work, though an automated test should be added.
Running the modify tests without the changes from the previous commit,
they fail. This demonstrates and clarifies the bug.
@polm polm marked this pull request as ready for review October 24, 2022 10:07
@polm polm added the bug Something isn't working label Oct 25, 2022
@kadarakos

Copy link
Copy Markdown
Contributor

When you say tested to work, do you also mean that the results in terms of LEA are sameish as before the change?

@polm

polm commented Oct 31, 2022

Copy link
Copy Markdown
Contributor Author

Yes, the LEA for the test set is almost identical but slightly higher.

  • fixed: 0.6899794903994366
  • old: 0.687557730072873

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants