CoNLLUPOSDataSource.ConfigΒΆ

Component: CoNLLUPOSDataSource

class CoNLLUPOSDataSource.Config[source]

Bases: RootDataSource.Config

All Attributes (including base classes)

column_mapping: dict[str, str] = {}
language: Optional[str] = None
Name of the language. If not set, languages will be empty.
train_filename: Optional[str] = None
Filename of training set. If not set, iteration will be empty.
test_filename: Optional[str] = None
Filename of testing set. If not set, iteration will be empty.
eval_filename: Optional[str] = None
Filename of eval set. If not set, iteration will be empty.
field_names: Optional[list[str]] = None
Field names for the TSV. If this is not set, the first line of each file will be assumed to be a header containing the field names.
delimiter: str = '\t'
The column delimiter. CoNLL-U file default is t.
Subclasses
  • CoNLLUNERDataSource.Config

Default JSON

{
    "column_mapping": {},
    "language": null,
    "train_filename": null,
    "test_filename": null,
    "eval_filename": null,
    "field_names": null,
    "delimiter": "\t"
}