public abstract class AbstractVectorCreator extends Object implements VectorCreator
| Modifier and Type | Field and Description |
|---|---|
private ProbabilityEstimator |
supplier |
private static String |
VECTOR_SPACE_NAME |
| Constructor and Description |
|---|
AbstractVectorCreator(ProbabilityEstimator supplier) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract SubsetVectors[] |
createVectors(String[][] wordsets,
SegmentationDefinition[] definitions,
SubsetProbabilities[] probabilities) |
String |
getProbabilityEstimatorName()
Calls
ProbabilityEstimator.getName() of the probability estimator and returns the
name of
the estimator. |
SubsetVectors[] |
getVectors(String[][] wordsets,
SegmentationDefinition[] definitions)
Creates vectors for the given word sets and their segmentations.
|
String |
getVectorSpaceName()
Returns the name of the vector space.
|
void |
setMinFrequency(int minFrequency)
Sets the minimum frequency of the probability estimator.
|
void |
setProbabilityEstimator(ProbabilityEstimator supplier)
Sets the probability estimator used by the vector creator.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVectorCreatorNameprivate static final String VECTOR_SPACE_NAME
private ProbabilityEstimator supplier
public AbstractVectorCreator(ProbabilityEstimator supplier)
public SubsetVectors[] getVectors(String[][] wordsets, SegmentationDefinition[] definitions)
VectorCreatorgetVectors in interface VectorCreatorprotected abstract SubsetVectors[] createVectors(String[][] wordsets, SegmentationDefinition[] definitions, SubsetProbabilities[] probabilities)
public String getProbabilityEstimatorName()
VectorCreatorProbabilityEstimator.getName() of the probability estimator and returns the
name of
the estimator.getProbabilityEstimatorName in interface VectorCreatorpublic String getVectorSpaceName()
VectorCreatorgetVectorSpaceName in interface VectorCreatorpublic void setMinFrequency(int minFrequency)
VectorCreatorsetMinFrequency in interface VectorCreatorpublic void setProbabilityEstimator(ProbabilityEstimator supplier)
VectorCreatorsetProbabilityEstimator in interface VectorCreatorCopyright © 2014–2016. All rights reserved.