Package opennlp.tools.ml.libsvm.doccat
Class SvmDoccatConfiguration
java.lang.Object
opennlp.tools.ml.libsvm.doccat.SvmDoccatConfiguration
- All Implemented Interfaces:
Serializable
Configuration for SVM-based document categorization, combining the underlying
SVM classifier settings with text-specific parameters for term weighting,
feature selection, and feature scaling.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionintdoubledoublede.hhn.mi.configuration.SvmConfigurationboolean
-
Method Details
-
getSvmConfiguration
public de.hhn.mi.configuration.SvmConfiguration getSvmConfiguration()- Returns:
- The underlying SVM configuration for the classifier/trainer.
-
getTermWeightingStrategy
- Returns:
- The term weighting strategy used to compute feature values.
-
getFeatureSelectionStrategy
- Returns:
- The feature selection strategy used to reduce the feature space.
-
getMaxFeatures
public int getMaxFeatures()- Returns:
- The maximum number of features to select. A value
<= 0means all features are retained.
-
isScaleFeatures
public boolean isScaleFeatures()- Returns:
trueif feature values should be scaled to the configured range.
-
getScaleLower
public double getScaleLower()- Returns:
- The lower bound of the scaling range (default:
0.0).
-
getScaleUpper
public double getScaleUpper()- Returns:
- The upper bound of the scaling range (default:
1.0).
-