public class BabelSynsetGlossComparator extends Object implements Comparator<BabelSynset>
Comparator for BabelSynsets that
(a) sorts Babel synsets using their glosses number;
(b) sorts using InternalBabelSynsetComparator;| Constructor and Description |
|---|
BabelSynsetGlossComparator(String word)
Creates a new instance of a
BabelSynsetGlossComparator with sorting on the English language |
BabelSynsetGlossComparator(String word,
it.uniroma1.lcl.jlt.util.Language language)
Creates a new instance of a
BabelSynsetGlossComparator |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(BabelSynset b1,
BabelSynset b2) |
clone, 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 BabelSynsetGlossComparator(String word)
BabelSynsetGlossComparator with sorting on the English languageword - the word whose sense numbers are used to sort the
BabelSynsets corresponding to WordNet synsetspublic BabelSynsetGlossComparator(String word, it.uniroma1.lcl.jlt.util.Language language)
BabelSynsetGlossComparatorword - the word whose sense numbers are used to sort the
BabelSynsets corresponding to WordNet synsetslanguage - the language used to sort sensespublic int compare(BabelSynset b1, BabelSynset b2)
compare in interface Comparator<BabelSynset>Copyright © 2016–2022. All rights reserved.