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 MeCabTokenizer #3

Merged
merged 1 commit into from
May 18, 2023
Merged

Add MeCabTokenizer #3

merged 1 commit into from
May 18, 2023

Conversation

polm-stability
Copy link
Collaborator

This adds a MeCabTokenizer for a pretokenization based approach. It currently doesn't allow customizing MeCab settings, but should be fine for getting it working.

@polm-stability polm-stability marked this pull request as draft May 17, 2023 05:29
@polm-stability
Copy link
Collaborator Author

The way this handles spaces needs some more checking, so please don't merge it yet.

@leemengtw
Copy link
Collaborator

This new tokenizer implement LGTM so far. Let me know when you feel comfortable to merge this if needed.

@polm-stability polm-stability marked this pull request as ready for review May 18, 2023 04:29
@polm-stability
Copy link
Collaborator Author

I confirmed this is fine. There is some surprising behavior around spaces that affects pretokenization, but it's configured in the model, not in the code here.

@polm-stability polm-stability merged commit 1da7db6 into Stability-AI:jp-stable May 18, 2023
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