Datatypes¶
Module of some basic data types.
-
class
yalign.datatypes.
ScoreFunction
(min_bound, max_bound)¶ Bases:
object
Abstract Base class for callable objects that provide a real value score. The min_bound and max_bound are used to assert the score range.
-
class
yalign.datatypes.
Sentence
(iterable=None, text=None)¶ Bases:
list
-
check_is_tokenized
()¶
-
to_text
()¶
-
-
class
yalign.datatypes.
SentencePair
(sentence_a, sentence_b, aligned=None)¶ Bases:
list
An association of two sentences with one attribute to indicate if they are considered aligned.