Package org.aksw.palmetto.prob.decorator
Class SimpleFrequencyCachingDeterminerDecorator
java.lang.Object
org.aksw.palmetto.prob.decorator.AbstractFrequencyDeterminerDecorator
org.aksw.palmetto.prob.decorator.AbstractSlidingWindowFrequencyDeterminerDecorator
org.aksw.palmetto.prob.decorator.SimpleFrequencyCachingDeterminerDecorator
- All Implemented Interfaces:
FrequencyDeterminerDecorator,SlidingWindowFrequencyDeterminerDecorator,FrequencyDeterminer,WindowBasedFrequencyDeterminer
public class SimpleFrequencyCachingDeterminerDecorator
extends AbstractSlidingWindowFrequencyDeterminerDecorator
This decorator implements a very simple cache. Note that it has
disadvantages, e.g., it will never stop growing. Thus, the
FrequencyCachingDeterminerDecorator
should be used instead.- Author:
- Michael Röder (roeder@informatik.uni-leipzig.de)
-
Field Summary
FieldsFields inherited from class org.aksw.palmetto.prob.decorator.AbstractFrequencyDeterminerDecorator
determiner -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetermineCounts(String[][] wordsets, SegmentationDefinition[] definitions)Returns the frequencies of words and word sub sets of the given word sets.Methods inherited from class org.aksw.palmetto.prob.decorator.AbstractSlidingWindowFrequencyDeterminerDecorator
getCooccurrenceCounts, getSlidingWindowModelName, getWindowSize, setWindowSizeMethods inherited from class org.aksw.palmetto.prob.decorator.AbstractFrequencyDeterminerDecorator
getDeterminer, setDeterminerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.palmetto.prob.decorator.FrequencyDeterminerDecorator
getDeterminer, setDeterminer
-
Field Details
-
cache
private com.carrotsearch.hppc.IntObjectOpenHashMap<int[]> cache
-
-
Constructor Details
-
SimpleFrequencyCachingDeterminerDecorator
-
-
Method Details
-
determineCounts
Description copied from interface:FrequencyDeterminerReturns the frequencies of words and word sub sets of the given word sets.- Returns:
-