public class BabelSynsetComparator extends InternalBabelSynsetComparator
Comparator
for BabelSynset
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 the BabelSynset
s using the InternalBabelSynsetComparator
language, 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) |
compareByEdgeThenMainSense
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public 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 InternalBabelSynsetComparator
Copyright © 2016–2021. All rights reserved.