public final class NewsgroupHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
FEATURES |
| Constructor and Description |
|---|
NewsgroupHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
countWords(org.apache.lucene.analysis.Analyzer analyzer,
Collection<String> words,
Reader in,
com.google.common.collect.Multiset<String> overallCounts) |
Vector |
encodeFeatureVector(File file,
int actual,
int leakType,
com.google.common.collect.Multiset<String> overallCounts) |
FeatureVectorEncoder |
getBias() |
FeatureVectorEncoder |
getEncoder() |
Random |
getRandom() |
public static final int FEATURES
public FeatureVectorEncoder getEncoder()
public FeatureVectorEncoder getBias()
public Random getRandom()
public Vector encodeFeatureVector(File file, int actual, int leakType, com.google.common.collect.Multiset<String> overallCounts) throws IOException
IOExceptionpublic static void countWords(org.apache.lucene.analysis.Analyzer analyzer,
Collection<String> words,
Reader in,
com.google.common.collect.Multiset<String> overallCounts)
throws IOException
IOExceptionCopyright © 2008–2013 The Apache Software Foundation. All rights reserved.