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

SentencePiece normalization #79

Open
ZJaume opened this issue Mar 6, 2023 · 0 comments
Open

SentencePiece normalization #79

ZJaume opened this issue Mar 6, 2023 · 0 comments

Comments

@ZJaume
Copy link

ZJaume commented Mar 6, 2023

Talking about other things that SentencePiece does, it has some other features that may replace pre-post-process.sh scripts. By default it applies NFKC normalization, but can be customized. The default normalization already does some of the preprocess.sh like:

echo "2" | spm_encode --model isen.student.base/vocab.spm
▁2

If the user needs to add more normalization or change it, it can be borrowed from here https://github.com/google/sentencepiece/tree/master/data, modify it and provide it in the spm_train step and forget about preprocessing.

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

No branches or pull requests

1 participant