Class BabelSynsetIDRelationComparator
java.lang.Object
it.uniroma1.lcl.babelnet.data.BabelSynsetIDRelationComparator
- All Implemented Interfaces:
Comparator<BabelSynsetRelation>
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;- Author:
- vannella
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(BabelSynsetRelation rel1, BabelSynsetRelation rel2) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
BabelSynsetIDRelationComparator
public BabelSynsetIDRelationComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<BabelSynsetRelation>
-