public class BitSetBasedBooleanDocumentFrequencyDeterminer extends Object implements BooleanDocumentFrequencyDeterminer
| Modifier and Type | Field and Description |
|---|---|
private BooleanDocumentSupportingAdapter |
corpusAdapter |
| Constructor and Description |
|---|
BitSetBasedBooleanDocumentFrequencyDeterminer(BooleanDocumentSupportingAdapter corpusAdapter) |
| Modifier and Type | Method and Description |
|---|---|
private com.carrotsearch.hppc.BitSet[] |
createBitSets(com.carrotsearch.hppc.IntOpenHashSet[] hashSets,
com.carrotsearch.hppc.IntOpenHashSet mergedHashSet) |
private com.carrotsearch.hppc.BitSet[] |
createBitSets(com.carrotsearch.hppc.ObjectObjectOpenHashMap<String,com.carrotsearch.hppc.IntOpenHashSet> wordDocMapping,
String[] wordset) |
private int[] |
createCounts(com.carrotsearch.hppc.BitSet[] bitsets,
com.carrotsearch.hppc.BitSet neededCounts) |
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 BitSetBasedBooleanDocumentFrequencyDeterminer(BooleanDocumentSupportingAdapter corpusAdapter)
public int getNumberOfDocuments()
getNumberOfDocuments in interface BooleanDocumentFrequencyDeterminerpublic CountedSubsets[] determineCounts(String[][] wordsets, SegmentationDefinition[] definitions)
FrequencyDeterminerdetermineCounts in interface FrequencyDeterminerprivate com.carrotsearch.hppc.BitSet[] createBitSets(com.carrotsearch.hppc.ObjectObjectOpenHashMap<String,com.carrotsearch.hppc.IntOpenHashSet> wordDocMapping, String[] wordset)
private com.carrotsearch.hppc.BitSet[] createBitSets(com.carrotsearch.hppc.IntOpenHashSet[] hashSets,
com.carrotsearch.hppc.IntOpenHashSet mergedHashSet)
private int[] createCounts(com.carrotsearch.hppc.BitSet[] bitsets,
com.carrotsearch.hppc.BitSet neededCounts)
Copyright © 2014–2016. All rights reserved.