public class LocationMethod extends TFxIDF
Modifier and Type | Field and Description |
---|---|
private ArrayList<String> |
doc |
private cern.colt.list.DoubleArrayList |
finalarray |
private cern.colt.list.DoubleArrayList |
lmarray |
Constructor and Description |
---|
LocationMethod(PartOfSpeech p) |
Modifier and Type | Method and Description |
---|---|
cern.colt.list.DoubleArrayList |
computeScores()
computes LocationMethod scores of all sentences
|
cern.colt.list.DoubleArrayList |
getLocationScores() |
void |
setDocument(String filename,
ArrayList<String> doc)
Sets document
|
computeScores, setVectors
private cern.colt.list.DoubleArrayList lmarray
private cern.colt.list.DoubleArrayList finalarray
public LocationMethod(PartOfSpeech p)
public void setDocument(String filename, ArrayList<String> doc)
TFxIDF
setDocument
in class TFxIDF
public cern.colt.list.DoubleArrayList computeScores()
public cern.colt.list.DoubleArrayList getLocationScores()