flair.datasets.text_text.ParallelTextDataset#
- class flair.datasets.text_text.ParallelTextDataset(path_to_source, path_to_target, max_tokens_per_doc=-1, max_chars_per_doc=-1, use_tokenizer=True, in_memory=True)View on GitHub#
Bases:
FlairDataset
- __init__(path_to_source, path_to_target, max_tokens_per_doc=-1, max_chars_per_doc=-1, use_tokenizer=True, in_memory=True)View on GitHub#
Methods
__init__
(path_to_source, path_to_target[, ...])- is_in_memory()View on GitHub#
- Return type:
bool