public class BabelSynsetRelationComparator extends Object implements Comparator<BabelSynset>
Comparator
for BabelSynset
s that
(a) sorts Babel synsets using theirs relations number
(b) sorts using BabelSynsetComparator
Constructor and Description |
---|
BabelSynsetRelationComparator(String word)
Creates a new instance of a
BabelSynsetRelationComparator with sorting on the English language |
BabelSynsetRelationComparator(String word,
it.uniroma1.lcl.jlt.util.Language language)
Creates a new instance of a
BabelSynsetRelationComparator |
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 BabelSynsetRelationComparator(String word)
BabelSynsetRelationComparator
with sorting on the English languageword
- the word whose sense numbers are used to sort the
BabelSynset
s corresponding to WordNet synsetspublic BabelSynsetRelationComparator(String word, it.uniroma1.lcl.jlt.util.Language language)
BabelSynsetRelationComparator
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.