public class SentimentPipeline extends Object
-parserModelWhich parser model to use, defaults to englishPCFG.ser.gz
-sentimentModelWhich sentiment model to use, defaults to sentiment.ser.gz
-fileWhich file to process.
-fileListA comma separated list of files to process.
-stdinRead one line at a time from stdin.
-outputpennTrees: Output trees with scores at each binarized node. vectors: Number tree nodes and print out the vectors. probabilities: Output the scores for different labels for each node. Defaults to printing just the root.
-filterUnknownRemove unknown trees from the input. Only applies to TREES input, in which case the trees must be binarized with sentiment labels
-helpPrint out help
|Modifier and Type||Method and Description|
Reads an annotation from the given filename using the requested input.
Runs the tree-based sentiment model on some text.
public static List<Annotation> getAnnotations(StanfordCoreNLP tokenizer, edu.stanford.nlp.sentiment.SentimentPipeline.Input inputFormat, String filename, boolean filterUnknown)
Stanford NLP Group