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-1509: split datasets into smaller submodules #1510

Merged
merged 3 commits into from
Apr 4, 2020
Merged

Conversation

alanakbik
Copy link
Collaborator

@alanakbik alanakbik commented Apr 3, 2020

Closes #1509

This PR splits the datasets.py into several submodules organized in a datasets/ folder. The submodules are:

  • sequence_labeling.py for all sequence labeling datasets
  • document_classification.py for all document classification datasets
  • treebanks.py for all dependency parsed corpora (UD treebanks)
  • text_text.py for all bi-text datasets (currently only parallel corpora)
  • text_image.py for all paired text-image datasets (currently only Feidegger)
  • base.py for remaining basic classes

All datasets are still exposed through the datasets package, so it is still possible to load corpora with

from flair.datasets import TREC_6

without specifying the submodule.

@alanakbik alanakbik merged commit 43d6c4f into master Apr 4, 2020
@alanakbik alanakbik deleted the GH-1509-datasets branch April 4, 2020 08:17
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.

Refactor datasets.py module into smaller submodules
1 participant