Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Refactor text data loading (#870)
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrolesci authored Oct 18, 2021
1 parent 4f608b0 commit a94ed6c
Show file tree
Hide file tree
Showing 7 changed files with 679 additions and 250 deletions.
10 changes: 6 additions & 4 deletions docs/source/api/text.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ ______________

classification.data.TextClassificationPostprocess
classification.data.TextClassificationPreprocess
classification.data.TextCSVDataSource
classification.data.TextDataSource
classification.data.TextDeserializer
classification.data.TextFileDataSource
classification.data.TextDataSource
classification.data.TextCSVDataSource
classification.data.TextJSONDataSource
classification.data.TextSentencesDataSource
classification.data.TextDataFrameDataSource
classification.data.TextParquetDataSource
classification.data.TextHuggingFaceDatasetDataSource
classification.data.TextListDataSource

Question Answering
__________________
Expand Down
3 changes: 2 additions & 1 deletion flash/core/data/data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,12 @@ class DefaultDataSources(LightningEnum):
TENSORS = "tensors"
CSV = "csv"
JSON = "json"
PARQUET = "parquet"
DATASETS = "datasets"
HUGGINGFACE_DATASET = "hf_dataset"
FIFTYONE = "fiftyone"
DATAFRAME = "data_frame"
LISTS = "lists"
SENTENCES = "sentences"
LABELSTUDIO = "labelstudio"

# TODO: Create a FlashEnum class???
Expand Down
Loading

0 comments on commit a94ed6c

Please sign in to comment.