Package org.aksw.palmetto.prob.bd
Class BitSetBasedBooleanDocumentFrequencyDeterminer
java.lang.Object
org.aksw.palmetto.prob.bd.BitSetBasedBooleanDocumentFrequencyDeterminer
- All Implemented Interfaces:
BooleanDocumentFrequencyDeterminer,FrequencyDeterminer
public class BitSetBasedBooleanDocumentFrequencyDeterminer
extends Object
implements BooleanDocumentFrequencyDeterminer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprivate 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)determineCounts(String[][] wordsets, SegmentationDefinition[] definitions)Returns the frequencies of words and word sub sets of the given word sets.int
-
Field Details
-
corpusAdapter
-
-
Constructor Details
-
BitSetBasedBooleanDocumentFrequencyDeterminer
public BitSetBasedBooleanDocumentFrequencyDeterminer(BooleanDocumentSupportingAdapter corpusAdapter)
-
-
Method Details
-
getNumberOfDocuments
public int getNumberOfDocuments()- Specified by:
getNumberOfDocumentsin interfaceBooleanDocumentFrequencyDeterminer
-
determineCounts
Description copied from interface:FrequencyDeterminerReturns the frequencies of words and word sub sets of the given word sets.- Specified by:
determineCountsin interfaceFrequencyDeterminer- Returns:
-
createBitSets
-
createBitSets
private com.carrotsearch.hppc.BitSet[] createBitSets(com.carrotsearch.hppc.IntOpenHashSet[] hashSets, com.carrotsearch.hppc.IntOpenHashSet mergedHashSet) -
createCounts
private int[] createCounts(com.carrotsearch.hppc.BitSet[] bitsets)
-