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

feat: add option to retrieve offsets from tokenizer #21

Merged
merged 4 commits into from
Aug 9, 2024

Conversation

riccardopinosio
Copy link
Contributor

@riccardopinosio riccardopinosio commented Jul 17, 2024

Hi,

I added the possibility to return the Offsets as a tokenizer option, could you take a look?

We use offsets in https://github.com/knights-analytics/hugot for the token classification pipeline.

tokenizer.go Outdated Show resolved Hide resolved
tokenizer.go Show resolved Hide resolved
daulet
daulet previously approved these changes Aug 4, 2024
@daulet
Copy link
Owner

daulet commented Aug 8, 2024

@riccardopinosio PTAL at the test failure in CI

@riccardopinosio
Copy link
Contributor Author

@daulet I reverted the change that added the freeing of the offset array memory, bazel didn't like it because memory was being freed twice. I believe the offsets get freed when the buffer itself is freed using C.free_buffer

@daulet daulet merged commit 7bb47dd into daulet:main Aug 9, 2024
1 check passed
@daulet daulet mentioned this pull request Aug 9, 2024
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.

2 participants