Package org.aksw.palmetto.prob.bd
Class ListBasedBooleanDocumentFrequencyDeterminer
java.lang.Object
org.aksw.palmetto.prob.bd.ListBasedBooleanDocumentFrequencyDeterminer
- All Implemented Interfaces:
BooleanDocumentFrequencyDeterminer,FrequencyDeterminer
public class ListBasedBooleanDocumentFrequencyDeterminer
extends Object
implements BooleanDocumentFrequencyDeterminer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddCountsOfSubsets(int[] counts)private int[]createCounts(com.carrotsearch.hppc.ObjectObjectOpenHashMap<String,com.carrotsearch.hppc.IntArrayList> wordDocMapping, String[] wordset)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
-
ListBasedBooleanDocumentFrequencyDeterminer
-
-
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:
-
addCountsOfSubsets
private void addCountsOfSubsets(int[] counts) -
createCounts
-