public class KeywordMethod extends TFxIDF
Modifier and Type | Field and Description |
---|---|
private cern.colt.list.DoubleArrayList |
keyarray |
Constructor and Description |
---|
KeywordMethod(PartOfSpeech p) |
Modifier and Type | Method and Description |
---|---|
cern.colt.list.DoubleArrayList |
computeScores(java.lang.String type)
computes scores of each sentence
|
void |
setDocument(java.lang.String filename,
java.util.ArrayList<java.lang.String> doc)
Sets document
|
setVectors
public KeywordMethod(PartOfSpeech p)
public void setDocument(java.lang.String filename, java.util.ArrayList<java.lang.String> doc)
TFxIDF
setDocument
in class TFxIDF
public cern.colt.list.DoubleArrayList computeScores(java.lang.String type)
TFxIDF
computeScores
in class TFxIDF