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, theFrequencyCachingDeterminerDecoratorshould be used instead.- Author:
- Michael Röder (roeder@informatik.uni-leipzig.de)
-
-
Field Summary
Fields Modifier and Type Field Description private com.carrotsearch.hppc.IntObjectOpenHashMap<int[]>cache-
Fields inherited from class org.aksw.palmetto.prob.decorator.AbstractFrequencyDeterminerDecorator
determiner
-
-
Constructor Summary
Constructors Constructor Description SimpleFrequencyCachingDeterminerDecorator(FrequencyDeterminer determiner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CountedSubsets[]determineCounts(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, setWindowSize
-
Methods inherited from class org.aksw.palmetto.prob.decorator.AbstractFrequencyDeterminerDecorator
getDeterminer, setDeterminer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.aksw.palmetto.prob.decorator.FrequencyDeterminerDecorator
getDeterminer, setDeterminer
-
-
-
-
Constructor Detail
-
SimpleFrequencyCachingDeterminerDecorator
public SimpleFrequencyCachingDeterminerDecorator(FrequencyDeterminer determiner)
-
-
Method Detail
-
determineCounts
public CountedSubsets[] determineCounts(String[][] wordsets, SegmentationDefinition[] definitions)
Description copied from interface:FrequencyDeterminerReturns the frequencies of words and word sub sets of the given word sets.- Returns:
-
-