public class BabelSynsetGlossComparator extends Object implements Comparator<BabelSynset>
Comparator
for BabelSynset
s that
(a) sorts Babel synsets using their glosses number;
(b) sorts using BabelSynsetComparator
;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, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public BabelSynsetGlossComparator(String word)
BabelSynsetGlossComparator
with sorting on the English languageword
- the word whose sense numbers are used to sort the
BabelSynset
s corresponding to WordNet synsetspublic BabelSynsetGlossComparator(String word, it.uniroma1.lcl.jlt.util.Language language)
BabelSynsetGlossComparator
word
- the word whose sense numbers are used to sort the
BabelSynset
s corresponding to WordNet synsetslanguage
- the language used to sort sensespublic int compare(BabelSynset b1, BabelSynset b2)
compare
in interface Comparator<BabelSynset>
Copyright © 2016–2018. All rights reserved.