Skip to content

Conversation

@alanakbik
Copy link
Collaborator

This PR does some small refactorings on flair.datasets for easier code legibility and fewer redundancies. All in all, this PR removes about 100 lines of code.

  • Moves the default sampling logic from all corpora classes to the parent Corpus class. You can now instantiate a Corpus only with a train file which will trigger the sampling.

  • Moves the default logic for identifying train, dev and test files into a dedicated method to avoid duplicates in code.

@alanakbik alanakbik merged commit f9dadc9 into master Jan 28, 2020
@alanakbik alanakbik deleted the refactorings branch January 28, 2020 20:10
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