Class BabelSynsetComparator
java.lang.Object
it.uniroma1.lcl.babelnet.InternalBabelSynsetComparator
it.uniroma1.lcl.babelnet.BabelSynsetComparator
- All Implemented Interfaces:
Comparator<BabelSynset>
Comparator for BabelSynsets that
(a) puts not Normalized and not from Automatic Translation first;
then the Normalized;
and at the end the Synsets from Automatic Translation.
(b) sorts the BabelSynsets using the InternalBabelSynsetComparator-
Field Summary
Fields inherited from class InternalBabelSynsetComparator
language, lemma -
Constructor Summary
ConstructorsConstructorDescriptionBabelSynsetComparator(String word) BabelSynsetComparator(String word, it.uniroma1.lcl.jlt.util.Language language) -
Method Summary
Methods inherited from class InternalBabelSynsetComparator
compareByEdgeThenMainSenseMethods 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
-
BabelSynsetComparator
public BabelSynsetComparator() -
BabelSynsetComparator
-
BabelSynsetComparator
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<BabelSynset>- Overrides:
comparein classInternalBabelSynsetComparator
-