public class SentimentPipeline extends Object
-parserModel Which parser model to use, defaults to englishPCFG.ser.gz -sentimentModel Which sentiment model to use, defaults to sentiment.ser.gz -file Which file to process. -stdin Read one line at a time from stdin. -output pennTrees: Output trees with scores at each binarized node. vectors: Number tree nodes and print out the vectors. Defaults to printing just the root. | Constructor and Description |
|---|
SentimentPipeline() |
| Modifier and Type | Method and Description |
|---|---|
static List<Annotation> |
getAnnotations(StanfordCoreNLP tokenizer,
edu.stanford.nlp.sentiment.SentimentPipeline.Input inputFormat,
String filename,
boolean filterUnknown)
Reads an annotation from the given filename using the requested input.
|
static void |
help() |
static void |
main(String[] args) |
public static void help()
public static List<Annotation> getAnnotations(StanfordCoreNLP tokenizer, edu.stanford.nlp.sentiment.SentimentPipeline.Input inputFormat, String filename, boolean filterUnknown)
public static void main(String[] args) throws IOException
IOException