public class BabelSynsetComparator extends InternalBabelSynsetComparator
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 InternalBabelSynsetComparatorlanguage, lemma| Constructor and Description |
|---|
BabelSynsetComparator() |
BabelSynsetComparator(String word) |
BabelSynsetComparator(String word,
it.uniroma1.lcl.jlt.util.Language language) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(BabelSynset b1,
BabelSynset b2) |
compareByEdgeThenMainSenseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic BabelSynsetComparator()
public BabelSynsetComparator(String word)
public BabelSynsetComparator(String word, it.uniroma1.lcl.jlt.util.Language language)
public int compare(BabelSynset b1, BabelSynset b2)
compare in interface Comparator<BabelSynset>compare in class InternalBabelSynsetComparatorCopyright © 2016–2022. All rights reserved.