public static enum TfIdf.TermFrequencyWeight extends Enum<TfIdf.TermFrequencyWeight>
Enum Constant and Description |
---|
BOOLEAN
BOOLEAN only takes into account whether or not the word is present in
the document.
|
DOC_NORMALIZED
DOC_NORMALIZED returns a term weighting in [0, 1] by normalizing the
frequency by the most common word in the document.
|
LOG
LOG returns a term weighting in [1, infinity) based on the log value
of the term frequency
1 + log(count) |
Modifier and Type | Method and Description |
---|---|
static TfIdf.TermFrequencyWeight |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TfIdf.TermFrequencyWeight[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TfIdf.TermFrequencyWeight BOOLEAN
public static final TfIdf.TermFrequencyWeight LOG
public static final TfIdf.TermFrequencyWeight DOC_NORMALIZED
public static TfIdf.TermFrequencyWeight[] values()
for (TfIdf.TermFrequencyWeight c : TfIdf.TermFrequencyWeight.values()) System.out.println(c);
public static TfIdf.TermFrequencyWeight valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2017. All rights reserved.