Class TrainingConfiguration
- java.lang.Object
-
- org.predict4all.nlp.trainer.configuration.TrainingConfiguration
-
public class TrainingConfiguration extends Object
-
-
Method Summary
-
-
-
Method Detail
-
getCorpus
public File getCorpus()
-
getNgramOrder
public int getNgramOrder()
-
setNgramOrder
public void setNgramOrder(int ngramOrder)
-
getUpperCaseReplacementThreshold
public double getUpperCaseReplacementThreshold()
-
setUpperCaseReplacementThreshold
public void setUpperCaseReplacementThreshold(double upperCaseReplacementThreshold)
-
getConvertCaseFromDictionaryModelThreshold
public double getConvertCaseFromDictionaryModelThreshold()
-
setConvertCaseFromDictionaryModelThreshold
public void setConvertCaseFromDictionaryModelThreshold(double convertCaseFromDictionaryModelThreshold)
-
getUnknownWordCountThreshold
public int getUnknownWordCountThreshold()
-
setUnknownWordCountThreshold
public void setUnknownWordCountThreshold(int unknownWordCountThreshold)
-
getDirectlyValidWordCountThreshold
public int getDirectlyValidWordCountThreshold()
-
setDirectlyValidWordCountThreshold
public void setDirectlyValidWordCountThreshold(int directlyValidWordCountThreshold)
-
getPruningMethod
public NGramPruningMethod getPruningMethod()
-
setPruningMethod
public void setPruningMethod(NGramPruningMethod pruningMethod)
-
getNgramPruningWeightedDifferenceThreshold
public double getNgramPruningWeightedDifferenceThreshold()
-
setNgramPruningWeightedDifferenceThreshold
public void setNgramPruningWeightedDifferenceThreshold(double ngramPruningWeightedDifferenceThreshold)
-
getNgramPruningCountThreshold
public int getNgramPruningCountThreshold()
-
setNgramPruningCountThreshold
public void setNgramPruningCountThreshold(int ngramPruningCountThreshold)
-
getNgramPruningOrderCountThresholds
public int[] getNgramPruningOrderCountThresholds()
-
setNgramPruningOrderCountThresholds
public void setNgramPruningOrderCountThresholds(int[] ngramPruningOrderCountThresholds)
-
getSmoothingDiscountValue
public double getSmoothingDiscountValue()
-
setSmoothingDiscountValue
public void setSmoothingDiscountValue(double smoothingDiscountValue)
-
getSmoothingDiscountValueLowerBound
public double getSmoothingDiscountValueLowerBound()
-
setSmoothingDiscountValueLowerBound
public void setSmoothingDiscountValueLowerBound(double smoothingDiscountValueLowerBound)
-
getSmoothingDiscountValueUpperBound
public double getSmoothingDiscountValueUpperBound()
-
setSmoothingDiscountValueUpperBound
public void setSmoothingDiscountValueUpperBound(double smoothingDiscountValueUpperBound)
-
getLsaWindowSize
public int getLsaWindowSize()
-
setLsaWindowSize
public void setLsaWindowSize(int lsaWindowSize)
-
getLsaFrequentWordSize
public int getLsaFrequentWordSize()
-
setLsaFrequentWordSize
public void setLsaFrequentWordSize(int lsaFrequentWordSize)
-
getLsaVocabularySize
public int getLsaVocabularySize()
-
setLsaVocabularySize
public void setLsaVocabularySize(int lsaVocabularySize)
-
getLsaTargetSvdSize
public int getLsaTargetSvdSize()
-
setLsaTargetSvdSize
public void setLsaTargetSvdSize(int lsaTargetSvdSize)
-
getLsaDensitySize
public int getLsaDensitySize()
-
setLsaDensitySize
public void setLsaDensitySize(int lsaDensitySize)
-
getBaseWordDictionaryPath
public String getBaseWordDictionaryPath()
-
setBaseWordDictionaryPath
public void setBaseWordDictionaryPath(String baseWordDictionaryPath)
-
getStopWordDictionaryPath
public String getStopWordDictionaryPath()
-
setStopWordDictionaryPath
public void setStopWordDictionaryPath(String stopWordDictionaryPath)
-
defaultConfiguration
public static TrainingConfiguration defaultConfiguration()
-
defaultConfiguration
public static TrainingConfiguration defaultConfiguration(File corpus)
-
from
public static TrainingConfiguration from(TrainingConfiguration other)
-
saveTo
public void saveTo(File file) throws IOException
- Throws:
IOException
-
loadFrom
public static TrainingConfiguration loadFrom(File file, File corpus) throws IOException
- Throws:
IOException
-
-