tml.corpus
Class CorpusParameters

java.lang.Object
  extended by tml.corpus.CorpusParameters
All Implemented Interfaces:
java.lang.Cloneable

public class CorpusParameters
extends java.lang.Object
implements java.lang.Cloneable

Class that encapsulates all the parameters required to create a Corpus and its corresponding SemanticSpace.

Author:
Jorge Villalon

Nested Class Summary
static class CorpusParameters.DimensionalityReduction
          Criteria by which a SemanticSpace will reduce (or not) the dimensions of the space.
static class CorpusParameters.TermSelection
          The criteria to select the terms that will be kept in the corpus
 
Constructor Summary
CorpusParameters()
           
 
Method Summary
 CorpusParameters.DimensionalityReduction getDimensionalityReduction()
           
 double getDimensionalityReductionThreshold()
           
 int getMaxDocuments()
           
static CorpusParameters getNoReductionParameters()
           
static CorpusParameters getParametersFromString(java.lang.String paramString)
           
 CorpusParameters.TermSelection getTermSelectionCriterion()
           
 double getTermSelectionThreshold()
           
 TermWeighting.GlobalWeight getTermWeightGlobal()
           
 TermWeighting.LocalWeight getTermWeightLocal()
           
 boolean isLanczosSVD()
           
 boolean isNormalizeDocuments()
           
 void loadFromFile(java.io.File file)
           
 void setDimensionalityReduction(CorpusParameters.DimensionalityReduction dimensionalityReduction)
           
 void setDimensionalityReductionThreshold(double dimensionalityReductionThreshold)
           
 void setLanczosSVD(boolean lanczosSVD)
           
 void setMaxDocuments(int maxDocuments)
           
 void setNormalizeDocuments(boolean normalizeDocuments)
           
 void setTermSelectionCriterion(CorpusParameters.TermSelection termSelectionCriterion)
           
 void setTermSelectionThreshold(double termSelectionThreshold)
           
 void setTermWeightGlobal(TermWeighting.GlobalWeight termWeightGlobal)
           
 void setTermWeightLocal(TermWeighting.LocalWeight termWeightLocal)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CorpusParameters

public CorpusParameters()
Method Detail

getParametersFromString

public static CorpusParameters getParametersFromString(java.lang.String paramString)

getDimensionalityReduction

public CorpusParameters.DimensionalityReduction getDimensionalityReduction()

getDimensionalityReductionThreshold

public double getDimensionalityReductionThreshold()

getMaxDocuments

public int getMaxDocuments()
Returns:
the maxDocuments

getTermSelectionCriterion

public CorpusParameters.TermSelection getTermSelectionCriterion()
Returns:
the termSelectionCriterion

getTermSelectionThreshold

public double getTermSelectionThreshold()
Returns:
the termSelectionThreshold

getTermWeightGlobal

public TermWeighting.GlobalWeight getTermWeightGlobal()

getTermWeightLocal

public TermWeighting.LocalWeight getTermWeightLocal()

isLanczosSVD

public boolean isLanczosSVD()
Returns:
the lanczosSVD

isNormalizeDocuments

public boolean isNormalizeDocuments()
Returns:
the normalizeDocuments

loadFromFile

public void loadFromFile(java.io.File file)

setDimensionalityReduction

public void setDimensionalityReduction(CorpusParameters.DimensionalityReduction dimensionalityReduction)

setDimensionalityReductionThreshold

public void setDimensionalityReductionThreshold(double dimensionalityReductionThreshold)

setLanczosSVD

public void setLanczosSVD(boolean lanczosSVD)
Parameters:
lanczosSVD - the lanczosSVD to set

setMaxDocuments

public void setMaxDocuments(int maxDocuments)
Parameters:
maxDocuments - the maxDocuments to set

setNormalizeDocuments

public void setNormalizeDocuments(boolean normalizeDocuments)
Parameters:
normalizeDocuments - the normalizeDocuments to set

setTermSelectionCriterion

public void setTermSelectionCriterion(CorpusParameters.TermSelection termSelectionCriterion)
Parameters:
termSelectionCriterion - the termSelectionCriterion to set

setTermSelectionThreshold

public void setTermSelectionThreshold(double termSelectionThreshold)
Parameters:
termSelectionThreshold - the termSelectionThreshold to set

setTermWeightGlobal

public void setTermWeightGlobal(TermWeighting.GlobalWeight termWeightGlobal)

setTermWeightLocal

public void setTermWeightLocal(TermWeighting.LocalWeight termWeightLocal)

getNoReductionParameters

public static CorpusParameters getNoReductionParameters()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object