public enum TermProperty extends java.lang.Enum<TermProperty>
Enum Constant and Description |
---|
DOCUMENT_FREQUENCY |
FREQUENCY |
FREQUENCY_NORM |
GENERAL_FREQUENCY_NORM |
GROUPING_KEY |
LEMMA |
PATTERN |
PILOT |
RANK |
SPECIFICITY |
SPOTTING_RULE |
TERM_CLASS_FREQUENCY |
TERM_CLASS_HEAD |
WR |
WR_LOG |
WR_LOG_Z_SCORE |
Modifier and Type | Method and Description |
---|---|
int |
compare(TermIndex termIndex,
Term o1,
Term o2)
The "compare" method that can apply on property measures.
|
int |
compare(Term o1,
Term o2) |
static TermProperty |
forName(java.lang.String name) |
java.util.Comparator<Term> |
getComparator(boolean reverse) |
java.util.Comparator<Term> |
getComparator(TermIndex termIndex,
boolean reverse) |
double |
getDoubleValue(Term t) |
double |
getDoubleValue(TermIndex termIndex,
Term t) |
java.lang.String |
getPropertyName() |
java.lang.Class<?> |
getRange() |
java.lang.String |
getShortName() |
java.lang.Comparable<?> |
getValue(Term t) |
java.lang.Comparable<?> |
getValue(TermIndex termIndex,
Term t) |
boolean |
isDecimalNumber() |
boolean |
isMeasure() |
boolean |
isNumber() |
static TermProperty |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TermProperty[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TermProperty RANK
public static final TermProperty DOCUMENT_FREQUENCY
public static final TermProperty FREQUENCY_NORM
public static final TermProperty GENERAL_FREQUENCY_NORM
public static final TermProperty SPECIFICITY
public static final TermProperty WR
public static final TermProperty WR_LOG
public static final TermProperty WR_LOG_Z_SCORE
public static final TermProperty FREQUENCY
public static final TermProperty PILOT
public static final TermProperty LEMMA
public static final TermProperty GROUPING_KEY
public static final TermProperty PATTERN
public static final TermProperty SPOTTING_RULE
public static final TermProperty TERM_CLASS_HEAD
public static final TermProperty TERM_CLASS_FREQUENCY
public static TermProperty[] values()
for (TermProperty c : TermProperty.values()) System.out.println(c);
public static TermProperty valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.Class<?> getRange()
public boolean isDecimalNumber()
public boolean isNumber()
public boolean isMeasure()
public java.lang.String getPropertyName()
public java.util.Comparator<Term> getComparator(boolean reverse)
public int compare(TermIndex termIndex, Term o1, Term o2)
termIndex
- o1
- o2
- public double getDoubleValue(Term t)
public java.lang.Comparable<?> getValue(Term t)
public static TermProperty forName(java.lang.String name)
public java.lang.String getShortName()