|
@ -44,6 +44,11 @@ class Excel(Format): |
|
|
accept_types = 'application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' |
|
|
accept_types = 'application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TextFile(Format): |
|
|
|
|
|
name = 'TextFile' |
|
|
|
|
|
accept_types = 'text/*' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CoNLL(Format): |
|
|
class CoNLL(Format): |
|
|
name = 'CoNLL' |
|
|
name = 'CoNLL' |
|
|
accept_types = 'text/*' |
|
|
accept_types = 'text/*' |
|
@ -80,6 +85,7 @@ class Options: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Text Classification |
|
|
# Text Classification |
|
|
|
|
|
Options.register(DOCUMENT_CLASSIFICATION, TextFile, OptionNone) |
|
|
Options.register(DOCUMENT_CLASSIFICATION, CSV, OptionDelimiter) |
|
|
Options.register(DOCUMENT_CLASSIFICATION, CSV, OptionDelimiter) |
|
|
Options.register(DOCUMENT_CLASSIFICATION, FastText, OptionNone) |
|
|
Options.register(DOCUMENT_CLASSIFICATION, FastText, OptionNone) |
|
|
Options.register(DOCUMENT_CLASSIFICATION, JSON, OptionColumn) |
|
|
Options.register(DOCUMENT_CLASSIFICATION, JSON, OptionColumn) |
|
@ -87,10 +93,12 @@ Options.register(DOCUMENT_CLASSIFICATION, JSONL, OptionColumn) |
|
|
Options.register(DOCUMENT_CLASSIFICATION, Excel, OptionColumn) |
|
|
Options.register(DOCUMENT_CLASSIFICATION, Excel, OptionColumn) |
|
|
|
|
|
|
|
|
# Sequence Labeling |
|
|
# Sequence Labeling |
|
|
|
|
|
Options.register(SEQUENCE_LABELING, TextFile, OptionNone) |
|
|
Options.register(SEQUENCE_LABELING, JSONL, OptionColumn) |
|
|
Options.register(SEQUENCE_LABELING, JSONL, OptionColumn) |
|
|
Options.register(SEQUENCE_LABELING, CoNLL, OptionNone) |
|
|
Options.register(SEQUENCE_LABELING, CoNLL, OptionNone) |
|
|
|
|
|
|
|
|
# Sequence to sequence |
|
|
# Sequence to sequence |
|
|
|
|
|
Options.register(SEQ2SEQ, TextFile, OptionNone) |
|
|
Options.register(SEQ2SEQ, CSV, OptionDelimiter) |
|
|
Options.register(SEQ2SEQ, CSV, OptionDelimiter) |
|
|
Options.register(SEQ2SEQ, JSON, OptionColumn) |
|
|
Options.register(SEQ2SEQ, JSON, OptionColumn) |
|
|
Options.register(SEQ2SEQ, JSONL, OptionColumn) |
|
|
Options.register(SEQ2SEQ, JSONL, OptionColumn) |
|
|