Package org.aksw.palmetto.vector
Interface VectorCreator
-
- All Known Implementing Classes:
AbstractVectorCreator,DirectConfirmationBasedVectorCreator,ProbabilityBasedVectorCreator
public interface VectorCreatorInterface for the vector creation.- Author:
- m.roeder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetProbabilityEstimatorName()CallsProbabilityEstimator.getName()of the probability estimator and returns the name of the estimator.StringgetVectorCreatorName()Returns the name of the direct confirmation measure which is used to create the vectors.SubsetVectors[]getVectors(String[][] wordsets, SegmentationDefinition[] definitions)Creates vectors for the given word sets and their segmentations.StringgetVectorSpaceName()Returns the name of the vector space.voidsetMinFrequency(int minFrequency)Sets the minimum frequency of the probability estimator.voidsetProbabilityEstimator(ProbabilityEstimator supplier)Sets the probability estimator used by the vector creator.
-
-
-
Method Detail
-
getVectors
SubsetVectors[] getVectors(String[][] wordsets, SegmentationDefinition[] definitions)
Creates vectors for the given word sets and their segmentations.- Parameters:
wordsets-definitions-- Returns:
-
setProbabilityEstimator
void setProbabilityEstimator(ProbabilityEstimator supplier)
Sets the probability estimator used by the vector creator.- Parameters:
supplier-
-
getProbabilityEstimatorName
String getProbabilityEstimatorName()
CallsProbabilityEstimator.getName()of the probability estimator and returns the name of the estimator.- Returns:
-
getVectorSpaceName
String getVectorSpaceName()
Returns the name of the vector space.- Returns:
-
getVectorCreatorName
String getVectorCreatorName()
Returns the name of the direct confirmation measure which is used to create the vectors.- Returns:
-
setMinFrequency
void setMinFrequency(int minFrequency)
Sets the minimum frequency of the probability estimator.- Parameters:
minFrequency-
-
-