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

GH-1414: Improve performance for loading not-in-memory corpus #1413

Conversation

david-westreicher
Copy link

When loading a "not-in-memory" corpus we don't need to construct the whole sentence, because we will read the sentence when necessary in get_item.

@david-westreicher david-westreicher changed the title GH-1412: Improve performance for loading not-in-memory corpus GH-1414: Improve performance for loading not-in-memory corpus Feb 7, 2020
@alanakbik
Copy link
Collaborator

Hi @david-westreicher this works great - speeds up loading corpora into memory quite a bit. Thanks for adding this!

@alanakbik
Copy link
Collaborator

👍

@alanakbik alanakbik merged commit 813ddbc into flairNLP:master Feb 7, 2020
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.

2 participants