CN3l
- class CN3l(graph_pair: Literal['en_de', 'en_fr'] = 'en_de', **kwargs)[source]
Bases:
MTransEDataset
The CN3l dataset family.
Initialize the dataset.
- Parameters:
graph_pair (Literal['en_de', 'en_fr']) – the graph-pair within the dataset family (cf.
GRAPH_PAIRS
)kwargs – additional keyword-based parameters passed to
EABase.__init__()
- Raises:
ValueError – if the graph pair or side is invalid
Attributes Summary
The internal dataset name
The mapping from (graph-pair, side) to triple file name
Attributes Documentation
- FILE_NAMES: ClassVar[Mapping[tuple[GraphPair, None | EASide | tuple[EASide, EASide]], str]] = {('en_de', 'left'): 'C_en_d.csv', ('en_de', 'right'): 'C_de.csv', ('en_de', ('left', 'right')): 'en2de_cn.csv', ('en_de', ('right', 'left')): 'de2en_cn.csv', ('en_de', None): 'C_en_de.csv', ('en_fr', 'left'): 'C_en_f.csv', ('en_fr', 'right'): 'C_fr.csv', ('en_fr', ('left', 'right')): 'en2fr_cn.csv', ('en_fr', ('right', 'left')): 'fr2en_cn.csv', ('en_fr', None): 'C_en_fr.csv'}
The mapping from (graph-pair, side) to triple file name