Package it.uniroma1.lcl.babelnet.data
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
forBabelSynsetRelation
s 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 Constructor Description BabelSynsetIDRelationComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(BabelSynsetRelation rel1, BabelSynsetRelation rel2)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(BabelSynsetRelation rel1, BabelSynsetRelation rel2)
- Specified by:
compare
in interfaceComparator<BabelSynsetRelation>
-
-