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(String type)
computes scores of each sentence
|
void |
setDocument(String filename,
ArrayList<String> doc)
Sets document
|
setVectors
public KeywordMethod(PartOfSpeech p)
public void setDocument(String filename, ArrayList<String> doc)
TFxIDF
setDocument
in class TFxIDF
public cern.colt.list.DoubleArrayList computeScores(String type)
TFxIDF
computeScores
in class TFxIDF