tml.corpus
Enum CorpusParameters.TermSelection

java.lang.Object
  extended by java.lang.Enum<CorpusParameters.TermSelection>
      extended by tml.corpus.CorpusParameters.TermSelection
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CorpusParameters.TermSelection>
Enclosing class:
CorpusParameters

public static enum CorpusParameters.TermSelection
extends java.lang.Enum<CorpusParameters.TermSelection>

The criteria to select the terms that will be kept in the corpus


Enum Constant Summary
AVG_TF
          TF: Number of times a term appears in the corpus.
DF
          DF: Number of documents where the term appears.
TF
          TF: Number of times a term appears in the corpus.
 
Method Summary
static CorpusParameters.TermSelection valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CorpusParameters.TermSelection[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TF

public static final CorpusParameters.TermSelection TF
TF: Number of times a term appears in the corpus. MIN_TF: Terms with a TF lower than a threshold are discarded


AVG_TF

public static final CorpusParameters.TermSelection AVG_TF
TF: Number of times a term appears in the corpus. MIN_AVG_TF: The mean of the TF is calculated, and terms with an AVG_TF lower than a threshold are discarded


DF

public static final CorpusParameters.TermSelection DF
DF: Number of documents where the term appears. MIN_DF: Terms with a DF lower than a threshold are discarded

Method Detail

values

public static CorpusParameters.TermSelection[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (CorpusParameters.TermSelection c : CorpusParameters.TermSelection.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CorpusParameters.TermSelection valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null