Package cc.mallet.util
Class FeatureCountTool
- java.lang.Object
-
- cc.mallet.util.FeatureCountTool
-
public class FeatureCountTool extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.logging.Loggerlogger
-
Constructor Summary
Constructors Constructor Description FeatureCountTool(InstanceList instances)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcount()int[]getDocumentFrequencies()double[]getFeatureCounts()AlphabetgetPrunedAlphabet(int minDocs, int maxDocs, int minCount, int maxCount)static voidmain(java.lang.String[] args)voidprintCounts()
-
-
-
Constructor Detail
-
FeatureCountTool
public FeatureCountTool(InstanceList instances)
-
-
Method Detail
-
getFeatureCounts
public double[] getFeatureCounts()
-
getDocumentFrequencies
public int[] getDocumentFrequencies()
-
count
public void count()
-
printCounts
public void printCounts()
-
getPrunedAlphabet
public Alphabet getPrunedAlphabet(int minDocs, int maxDocs, int minCount, int maxCount)
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
-