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 Modifier and Type Field Description private BooleanDocumentSupportingAdaptercorpusAdapter
-
Constructor Summary
Constructors Constructor Description BitSetBasedBooleanDocumentFrequencyDeterminer(BooleanDocumentSupportingAdapter corpusAdapter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)CountedSubsets[]determineCounts(String[][] wordsets, SegmentationDefinition[] definitions)Returns the frequencies of words and word sub sets of the given word sets.intgetNumberOfDocuments()
-
-
-
Field Detail
-
corpusAdapter
private BooleanDocumentSupportingAdapter corpusAdapter
-
-
Constructor Detail
-
BitSetBasedBooleanDocumentFrequencyDeterminer
public BitSetBasedBooleanDocumentFrequencyDeterminer(BooleanDocumentSupportingAdapter corpusAdapter)
-
-
Method Detail
-
getNumberOfDocuments
public int getNumberOfDocuments()
- Specified by:
getNumberOfDocumentsin interfaceBooleanDocumentFrequencyDeterminer
-
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.- Specified by:
determineCountsin interfaceFrequencyDeterminer- Returns:
-
createBitSets
private com.carrotsearch.hppc.BitSet[] createBitSets(com.carrotsearch.hppc.ObjectObjectOpenHashMap<String,com.carrotsearch.hppc.IntOpenHashSet> wordDocMapping, String[] wordset)
-
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)
-
-