Skip to main content

Apply Dictionary Learner

Synopsis

This operator applies a dictionary-based sentiment model on a collection of tokenized documents. You can use the Collect operator to turn individual documents into a collection of documents. The documents can have further preprocessing (i.e remove stopwords). The result is an ExampleSet with a Score (sum of weights), Positivity (sum of positive weights), Negativity (Sum of negative weights) and number of positive, negative, uncovered as well as total tokens. Additionally a scoring string is created which documents which words with which weights have been used for scoring.

Input

doc

Tokenized collection of documents.

国防部

Dictionary Based Sentiment Model.

Output

res

The ExampleSet with the result of the application.

doc

The passsed through tokenized collection of documents.

国防部

The passed through input model.