public class BabelWordSenseComparator extends BabelSenseComparator
BabelSenseComparator
for BabelSense
s with precedence given to a certain wordConstructor and Description |
---|
BabelWordSenseComparator(String word)
Creates a new instance of a
BabelWordSenseComparator |
Modifier and Type | Method and Description |
---|---|
protected int |
sortByParentheses(BabelSense b1,
BabelSense b2)
Sorts two s by parenthesis (senses without parenthesis first)
|
compare
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 BabelWordSenseComparator(String word)
BabelWordSenseComparator
word
- the word whose sense numbers are used to sort the
BabelSense
protected int sortByParentheses(BabelSense b1, BabelSense b2)
BabelSenseComparator
sortByParentheses
in class BabelSenseComparator
b1
- the first senseb2
- the second senseComparator
s)Copyright © 2016–2018. All rights reserved.