Package org.aksw.palmetto.vector
Class AbstractVectorCreator
java.lang.Object
org.aksw.palmetto.vector.AbstractVectorCreator
- All Implemented Interfaces:
VectorCreator
- Direct Known Subclasses:
DirectConfirmationBasedVectorCreator,ProbabilityBasedVectorCreator
Abstract class containing the process of the vector creation.
- Author:
- m.roeder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract SubsetVectors[]createVectors(String[][] wordsets, SegmentationDefinition[] definitions, SubsetProbabilities[] probabilities)CallsProbabilityEstimator.getName()of the probability estimator and returns the name of the estimator.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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.palmetto.vector.VectorCreator
getVectorCreatorName
-
Field Details
-
VECTOR_SPACE_NAME
- See Also:
- Constant Field Values
-
supplier
-
-
Constructor Details
-
AbstractVectorCreator
-
-
Method Details
-
getVectors
Description copied from interface:VectorCreatorCreates vectors for the given word sets and their segmentations.- Specified by:
getVectorsin interfaceVectorCreator- Returns:
-
createVectors
protected abstract SubsetVectors[] createVectors(String[][] wordsets, SegmentationDefinition[] definitions, SubsetProbabilities[] probabilities) -
getProbabilityEstimatorName
Description copied from interface:VectorCreatorCallsProbabilityEstimator.getName()of the probability estimator and returns the name of the estimator.- Specified by:
getProbabilityEstimatorNamein interfaceVectorCreator- Returns:
-
getVectorSpaceName
Description copied from interface:VectorCreatorReturns the name of the vector space.- Specified by:
getVectorSpaceNamein interfaceVectorCreator- Returns:
-
setMinFrequency
public void setMinFrequency(int minFrequency)Description copied from interface:VectorCreatorSets the minimum frequency of the probability estimator.- Specified by:
setMinFrequencyin interfaceVectorCreator
-
setProbabilityEstimator
Description copied from interface:VectorCreatorSets the probability estimator used by the vector creator.- Specified by:
setProbabilityEstimatorin interfaceVectorCreator
-