Package org.aksw.palmetto.vector
Interface VectorCreator
- All Known Implementing Classes:
AbstractVectorCreator,DirectConfirmationBasedVectorCreator,ProbabilityBasedVectorCreator
public interface VectorCreator
Interface for the vector creation.
- Author:
- m.roeder
-
Method Summary
Modifier and TypeMethodDescriptionCallsProbabilityEstimator.getName()of the probability estimator and returns the name of the estimator.Returns the name of the direct confirmation measure which is used to create the vectors.getVectors(String[][] wordsets, SegmentationDefinition[] definitions)Creates vectors for the given word sets and their segmentations.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 Details
-
getVectors
Creates vectors for the given word sets and their segmentations.- Parameters:
wordsets-definitions-- Returns:
-
setProbabilityEstimator
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-
-