Package org.aksw.palmetto.prob
Interface ProbabilityEstimator
- All Known Implementing Classes:
AbstractProbabilitySupplier,BooleanDocumentProbabilitySupplier,WindowBasedProbabilityEstimator
public interface ProbabilityEstimator
This interface defines the methods of a class that estimates the
probabilities of a given word set.
- Author:
- m.roeder
-
Method Summary
Modifier and TypeMethodDescriptionReturns the frequency determiner used by this estimator.getName()Returns the name of this probability estimator.getProbabilities(String[][] wordsets, SegmentationDefinition[] definitions)Estimates the probabilities for the given word sets and the given segmentations.voidsetFrequencyDeterminer(FrequencyDeterminer determiner)Sets the frequency determiner that should be used by this estimator.voidsetMinFrequency(int minFrequency)Sets the minimum frequency a word (or word set) must have to get a probability > 0.
-
Method Details
-
getProbabilities
Estimates the probabilities for the given word sets and the given segmentations.- Parameters:
wordsets- word sets for which the probabilities should be estimateddefinitions- definitions how the word sets should be separated- Returns:
- the subset probabilities for the single word sets
-
getFrequencyDeterminer
FrequencyDeterminer getFrequencyDeterminer()Returns the frequency determiner used by this estimator.- Returns:
- the frequency determiner used by this estimator
-
setFrequencyDeterminer
Sets the frequency determiner that should be used by this estimator.- Parameters:
determiner- the frequency determiner used by this estimator
-
getName
String getName()Returns the name of this probability estimator.- Returns:
- the name of this probability estimator
-
setMinFrequency
void setMinFrequency(int minFrequency)Sets the minimum frequency a word (or word set) must have to get a probability > 0.- Parameters:
minFrequency- the minimum frequency of a word
-