Package it.uniroma1.lcl.babelnet
Class BabelSynsetComparator
- java.lang.Object
-
- it.uniroma1.lcl.babelnet.InternalBabelSynsetComparator
-
- it.uniroma1.lcl.babelnet.BabelSynsetComparator
-
- All Implemented Interfaces:
Comparator<BabelSynset>
public class BabelSynsetComparator extends InternalBabelSynsetComparator
Comparator
forBabelSynset
s 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 theBabelSynset
s using theInternalBabelSynsetComparator
-
-
Field Summary
-
Fields inherited from class it.uniroma1.lcl.babelnet.InternalBabelSynsetComparator
language, lemma
-
-
Constructor Summary
Constructors Constructor Description BabelSynsetComparator()
BabelSynsetComparator(String word)
BabelSynsetComparator(String word, it.uniroma1.lcl.jlt.util.Language language)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(BabelSynset b1, BabelSynset b2)
-
Methods inherited from class it.uniroma1.lcl.babelnet.InternalBabelSynsetComparator
compareByEdgeThenMainSense
-
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(BabelSynset b1, BabelSynset b2)
- Specified by:
compare
in interfaceComparator<BabelSynset>
- Overrides:
compare
in classInternalBabelSynsetComparator
-
-