Class BabelSynsetRelationComparator
java.lang.Object
it.uniroma1.lcl.babelnet.data.BabelSynsetRelationComparator
- All Implemented Interfaces:
Comparator<BabelSynset>
Comparator for BabelSynsets that
(a) sorts Babel synsets using theirs relations number
(b) sorts using InternalBabelSynsetComparator- Author:
- vannella
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of aBabelSynsetRelationComparatorwith sorting on the English languageBabelSynsetRelationComparator(String word, it.uniroma1.lcl.jlt.util.Language language) Creates a new instance of aBabelSynsetRelationComparator -
Method Summary
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
-
BabelSynsetRelationComparator
Creates a new instance of aBabelSynsetRelationComparatorwith sorting on the English language- Parameters:
word- the word whose sense numbers are used to sort theBabelSynsets corresponding to WordNet synsets
-
BabelSynsetRelationComparator
Creates a new instance of aBabelSynsetRelationComparator- Parameters:
word- the word whose sense numbers are used to sort theBabelSynsets corresponding to WordNet synsetslanguage- the language used to sort senses
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<BabelSynset>
-