flair.datasets.treebanks.UniversalDependenciesDataset#
- class flair.datasets.treebanks.UniversalDependenciesDataset(path_to_conll_file, in_memory=True, split_multiwords=True)View on GitHub#
Bases:
FlairDataset- __init__(path_to_conll_file, in_memory=True, split_multiwords=True)View on GitHub#
Instantiates a column dataset in CoNLL-U format.
- Parameters:
path_to_conll_file (
Union[str,Path]) – Path to the CoNLL-U formatted filein_memory (
bool) – If set to True, keeps full dataset in memory, otherwise does disk reads
Methods
__init__(path_to_conll_file[, in_memory, ...])Instantiates a column dataset in CoNLL-U format.
- is_in_memory()View on GitHub#
- Return type:
bool