public class SWN3
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
SWN3() |
SWN3(org.apache.uima.analysis_engine.AnalysisEngine analysisEngine) |
SWN3(java.lang.String sentiWordNetPath) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
classForScore(java.lang.Double score) |
java.lang.String |
classify(org.apache.uima.cas.CAS cas) |
java.lang.String |
classify(org.cleartk.token.type.Sentence sentence) |
java.lang.String |
classify(java.lang.String text)
Classifies the given text
|
java.lang.Double |
extract(java.lang.String word) |
static void |
main(java.lang.String[] args) |
double |
score(org.apache.uima.cas.CAS cas) |
double |
score(org.cleartk.token.type.Sentence sentence) |
double |
score(java.lang.String words)
Scores the text
|
double |
scoreTokens(java.util.List<org.cleartk.token.type.Token> tokens) |
public SWN3() throws java.lang.Exception
java.lang.Exception
public SWN3(org.apache.uima.analysis_engine.AnalysisEngine analysisEngine)
public SWN3(java.lang.String sentiWordNetPath)
public java.lang.String classify(java.lang.String text) throws java.lang.Exception
text
- the text to classifyjava.lang.Exception
public double score(java.lang.String words) throws java.lang.Exception
words
- the text to scorejava.lang.Exception
public java.lang.String classForScore(java.lang.Double score)
public java.lang.String classify(org.apache.uima.cas.CAS cas) throws org.apache.uima.cas.CASException
org.apache.uima.cas.CASException
public double scoreTokens(java.util.List<org.cleartk.token.type.Token> tokens)
public double score(org.apache.uima.cas.CAS cas) throws org.apache.uima.cas.CASException
org.apache.uima.cas.CASException
public java.lang.String classify(org.cleartk.token.type.Sentence sentence)
public double score(org.cleartk.token.type.Sentence sentence)
public java.lang.Double extract(java.lang.String word)
public static void main(java.lang.String[] args)