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

what way is used for Tokenize the dataset? #19

Open
cdgraff opened this issue Oct 11, 2023 · 1 comment
Open

what way is used for Tokenize the dataset? #19

cdgraff opened this issue Oct 11, 2023 · 1 comment

Comments

@cdgraff
Copy link

cdgraff commented Oct 11, 2023

Doc, say: All models are trained from the 1st 100M tokens

Can share some example how prepare that 100M tokens from the text input?, I'm trying to train support for ES lang.

Thanks

@benob
Copy link
Owner

benob commented Oct 11, 2023

The tokenizer is included in the recasepunc.py script. It is a modified version of the BERT tokenizer which keeps punctuation when lower-casing. Example usage:

xzcat cc-100/$lang.txt.xz | python recasepunc.py --lang=$lang preprocess 100000000 > data/$lang-100M.txt

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

2 participants