public class Document extends Object
Modifier and Type | Field and Description |
---|---|
int[] |
activeFeatures |
Document |
brother |
int |
classID |
Vector<String> |
words |
Constructor and Description |
---|
Document(Document d) |
Document(String[] _words,
int _classID) |
Document(String filename,
int _classID,
StopWords stops,
String tokenizationDelimiters) |
Document(Vector<String> _words,
int _classID) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsWord(String w) |
int[] |
getActiveFid(FeatureMap map) |
double[] |
getFeatureVec(FeatureMap map) |
void |
toCompactFeatureRep(FeatureMap map) |
void |
tokenize() |
static String |
tokenize(String s) |
String |
toString() |
String |
toString(FeatureMap map,
boolean verbose) |
public int classID
public int[] activeFeatures
public Document brother
public Document(Document d)
public Document(String[] _words, int _classID)
public boolean containsWord(String w)
public int[] getActiveFid(FeatureMap map)
public double[] getFeatureVec(FeatureMap map)
public void toCompactFeatureRep(FeatureMap map)
public void tokenize()
public String toString(FeatureMap map, boolean verbose)
Copyright © 2017. All rights reserved.