public class BooleanSlidingWindowFrequencyDeterminer extends Object implements WindowBasedFrequencyDeterminer
| Modifier and Type | Field and Description |
|---|---|
protected WindowSupportingAdapter |
corpusAdapter |
protected int |
windowSize |
protected long[] |
wordSetCountSums |
| Constructor and Description |
|---|
BooleanSlidingWindowFrequencyDeterminer(WindowSupportingAdapter corpusAdapter,
int windowSize) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCountsFromDocument(com.carrotsearch.hppc.IntArrayList[] positions,
int[] counts,
int docLength) |
protected void |
addCountsFromSmallDocument(com.carrotsearch.hppc.IntArrayList[] positions,
int[] counts) |
protected void |
addCountsOfSubsets(int[] counts) |
protected int[] |
determineCounts(String[] wordset) |
CountedSubsets[] |
determineCounts(String[][] wordsets,
SegmentationDefinition[] definitions)
Returns the frequencies of words and word sub sets of the given word sets.
|
protected void |
determineWordSetCountSum() |
long[] |
getCooccurrenceCounts() |
String |
getSlidingWindowModelName() |
int |
getWindowSize() |
void |
setWindowSize(int windowSize) |
protected WindowSupportingAdapter corpusAdapter
protected int windowSize
protected long[] wordSetCountSums
public BooleanSlidingWindowFrequencyDeterminer(WindowSupportingAdapter corpusAdapter, int windowSize)
public CountedSubsets[] determineCounts(String[][] wordsets, SegmentationDefinition[] definitions)
FrequencyDeterminerdetermineCounts in interface FrequencyDeterminerprotected int[] determineCounts(String[] wordset)
protected void addCountsFromDocument(com.carrotsearch.hppc.IntArrayList[] positions,
int[] counts,
int docLength)
protected void addCountsFromSmallDocument(com.carrotsearch.hppc.IntArrayList[] positions,
int[] counts)
protected void addCountsOfSubsets(int[] counts)
public void setWindowSize(int windowSize)
setWindowSize in interface WindowBasedFrequencyDeterminerpublic long[] getCooccurrenceCounts()
getCooccurrenceCounts in interface WindowBasedFrequencyDeterminerpublic String getSlidingWindowModelName()
getSlidingWindowModelName in interface WindowBasedFrequencyDeterminerprotected void determineWordSetCountSum()
public int getWindowSize()
getWindowSize in interface WindowBasedFrequencyDeterminerCopyright © 2014–2016. All rights reserved.