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

Training a model from in-memory data #198

Closed
loicbarrault opened this issue Mar 18, 2020 · 1 comment · Fixed by #544
Closed

Training a model from in-memory data #198

loicbarrault opened this issue Mar 18, 2020 · 1 comment · Fixed by #544
Assignees
Labels
enhancement New feature or request

Comments

@loicbarrault
Copy link

Hi,
How could I change the code so that it is possible to train a model from in-memory data instead of using files?
Basically, changing
tokenizer.train(["wiki.test.raw"], vocab_size=20000)
by
tokenizer.train(data_array, vocab_size=20000)
considering that data_array is e.g. an array of sentences ["First sentence", "second sentence...].
Thanks for your work!
Best, Loic

@Luckick
Copy link

Luckick commented Jul 22, 2022

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 a pull request may close this issue.

4 participants