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 piece_to_id and id_to_piece to SentencePieceProcessor #37

Merged
merged 4 commits into from
May 22, 2023
Merged

Add piece_to_id and id_to_piece to SentencePieceProcessor #37

merged 4 commits into from
May 22, 2023

Conversation

shadeMe
Copy link
Collaborator

@shadeMe shadeMe commented May 20, 2023

Description

New utility methods to convert string pieces to identifiers and vice-versa.

Types of change

Addition

Checklist

  • I confirm that I have the right to submit this contribution under the project's MIT license.
  • I ran the tests, and all new and existing tests passed.
  • My changes don't require a change to the documentation, or if they do, I've added all required information.

cutlery/_spp.pyx Outdated Show resolved Hide resolved
@danieldk danieldk merged commit 8b4fcd6 into explosion:main May 22, 2023
6 checks passed
@shadeMe shadeMe deleted the feature/sentpiece-piece2id branch May 22, 2023 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants