class documentation
class BabelSynsetIDRelationComparator:
Comparator for BabelSynsetRelations.
It does the following:
- puts manual relations first
- sorts relations using their relation type (HYPERNYM, HYPONYM and MERONYM)
- sorts lexicographically using their relation name
- sorts lexicographically using their id target
Static Method | compare |
Compare two BabelSynstRelations |
Compare two BabelSynstRelations
Parameters | |
rel1:BabelSynsetRelation | First BabelSynsetRelation. |
rel2:BabelSynsetRelation | Second BabelSynsetRelation. |
Returns | |
int | Compare result. |
Raises | |
NotImplemented | If b1 xor b2 are not instance of BabelSynset |