public class BabelSynsetIDRelationComparator extends Object implements Comparator<BabelSynsetRelation>
Comparator for BabelSynsetRelations that (a) puts manual relations
first; (b) sorts relations using their relation type (HYPERNYM, HYPONYM and MERONYM);
(c) sorts lexicographically using their relation name;
(d) sorts lexicographically using their id target;| Constructor and Description |
|---|
BabelSynsetIDRelationComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(BabelSynsetRelation rel1,
BabelSynsetRelation rel2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic int compare(BabelSynsetRelation rel1, BabelSynsetRelation rel2)
compare in interface Comparator<BabelSynsetRelation>Copyright © 2016–2022. All rights reserved.