tml.corpus
Class CorpusParameters
java.lang.Object
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CorpusParameters
public CorpusParameters()
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