class documentation

class BabelGlossComparator:

View In Hierarchy

Comparator for BabelGlosses which sorts by sources.

Method __init__ init method
Method compare Compare two BabelGlosses
Instance Variable _main_sense the main sense
def __init__(self, main_sense=None):

init method

Parameters
main_senseThe sense the glosses refer to (default None).
def compare(self, b1, b2):

Compare two BabelGlosses

Parameters
b1:BabelGlossFirst BabelGloss.
b2:BabelGlossSecond BabelGloss.
Returns
intCompare result.
Raises
NotImplementedIf b1 xor b2 are not instance of BabelExample
_main_sense: BabelSense =

the main sense