public class BabelWordSenseComparator extends BabelSenseComparator
BabelSenseComparator for BabelSenses with precedence given to a certain word| Constructor 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)
|
compareclone, 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 BabelWordSenseComparator(String word)
BabelWordSenseComparatorword - the word whose sense numbers are used to sort the
BabelSenseprotected int sortByParentheses(BabelSense b1, BabelSense b2)
BabelSenseComparatorsortByParentheses in class BabelSenseComparatorb1 - the first senseb2 - the second senseComparators)Copyright © 2016–2022. All rights reserved.