public class ListBasedBooleanDocumentFrequencyDeterminer extends Object implements BooleanDocumentFrequencyDeterminer
| Modifier and Type | Field and Description |
|---|---|
private BooleanDocumentSupportingAdapter |
corpusAdapter |
| Constructor and Description |
|---|
ListBasedBooleanDocumentFrequencyDeterminer(BooleanDocumentSupportingAdapter corpusAdapter) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addCountsOfSubsets(int[] counts) |
private int[] |
createCounts(com.carrotsearch.hppc.ObjectObjectOpenHashMap<String,com.carrotsearch.hppc.IntArrayList> wordDocMapping,
String[] wordset) |
CountedSubsets[] |
determineCounts(String[][] wordsets,
SegmentationDefinition[] definitions)
Returns the frequencies of words and word sub sets of the given word sets.
|
int |
getNumberOfDocuments() |
private BooleanDocumentSupportingAdapter corpusAdapter
public ListBasedBooleanDocumentFrequencyDeterminer(BooleanDocumentSupportingAdapter corpusAdapter)
public int getNumberOfDocuments()
getNumberOfDocuments in interface BooleanDocumentFrequencyDeterminerpublic CountedSubsets[] determineCounts(String[][] wordsets, SegmentationDefinition[] definitions)
FrequencyDeterminerdetermineCounts in interface FrequencyDeterminerprivate void addCountsOfSubsets(int[] counts)
Copyright © 2014–2016. All rights reserved.