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.Logger
logger
-
Constructor Summary
Constructors Constructor Description FeatureCountTool(InstanceList instances)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
count()
int[]
getDocumentFrequencies()
double[]
getFeatureCounts()
Alphabet
getPrunedAlphabet(int minDocs, int maxDocs, int minCount, int maxCount)
static void
main(java.lang.String[] args)
void
printCounts()
-
-
-
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
-
-