Code Repositories
Find and share code repositories
Labels (1)
Super Guru
Repo Description

NIFI - CoreNLP - Processor : Example Processor for doing Sentiment Analysis

Apache NiFi Custom Processor for working with Stanford CoreNLP for Sentiment Analysis in Java 8

Currently uses Stanford English Models

Example Run

[pool-1-thread-1] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator tokenize

[pool-1-thread-1] INFO edu.stanford.nlp.pipeline.TokenizerAnnotator - No tokenizer type provided. Defaulting to PTBTokenizer.

[pool-1-thread-1] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator ssplit

[pool-1-thread-1] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator parse

[pool-1-thread-1] INFO edu.stanford.nlp.parser.common.ParserGrammar - Loading parser from serialized file edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz ... done [0.4 sec].

[pool-1-thread-1] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator sentiment

FILE:Header,Header2,Header3

Value,Value2,Value3

Value4,Value5,Value6

Attribute: {"names":"NEGATIVE"}

Models: http://nlp.stanford.edu/software/stanford-english-corenlp-2016-10-31-models.jar

Repo Info
Github Repo URL https://github.com/tspannhw/nifi-corenlp-processor
Github account name tspannhw
Repo name nifi-corenlp-processor
1,050 Views
0 Kudos