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

Add token offset information to entities #255

Merged
merged 3 commits into from
May 18, 2022

Conversation

sftse
Copy link
Contributor

@sftse sftse commented May 16, 2022

Retaining this information would be useful. If the information should be discarded the user can do this easily, while reconstructing the location of the entity takes some effort.

Copy link
Owner

@guillaume-be guillaume-be left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - thank you for the PR! Just pushed a small update to be consistent with the error propagation. If you're fine with it we can merge

@guillaume-be guillaume-be merged commit 3df5ea5 into guillaume-be:master May 18, 2022
Miezhiko pushed a commit to Masha/rust-bert that referenced this pull request Mar 21, 2023
* Add token offset information to entities

* replace unwrap by error propagation

Co-authored-by: guillaume-be <guillaume.becquin@gmail.com>
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 this pull request may close these issues.

None yet

2 participants