Skip to content
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

range is wrong for only 1 token span #14

Open
thirteenflt opened this issue Jul 19, 2019 · 2 comments · May be fixed by MantisAI/nervaluate#10
Open

range is wrong for only 1 token span #14

thirteenflt opened this issue Jul 19, 2019 · 2 comments · May be fixed by MantisAI/nervaluate#10

Comments

@thirteenflt
Copy link

pred_range = range(pred.start_offset, pred.end_offset)

so if pred.start=1 and pred.end_offset=1, then it will be empty range. But it should be one.
to fix:
pred_range = range(pred.start_offset, pred.end_offset+1)

@davidsbatista
Copy link
Owner

Hi @thirteenflt thanks a lot for making us aware of that, could you maybe open a PR to fix that? I would be really grateful.

@ivyleavedtoadflax
Copy link
Contributor

Good spot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants