AnalyzeSentence component enables users to input text-based complaints or comments allowing the analyzer component understanding the sentence to display the score of positivity, neutral and negative sentiment.
AnalyzeSentence Component exposes the Control In, Control Out, Data In and Data Out ports by default.
|Control In||Must be connected to the Control Out port of one or more components.|
|Control Out||Must be connected to the Control In port of any other component.|
|Data Out||Data out ports returns the integer value.|
|Data In||Specifies the text to be entered in application (String).|
To edit the properties of the
AnalyzeSentence in the properties window, change the required property. User can edit the following properties-
|Search||Searches for the respective property.|
|Delay After Execution||Specifies the wait time (in seconds) after the action is performed.|
|Delay Before Execution||Specifies the wait time (in seconds) before the action is performed.|
Let us consider an example-
In the toolbox, expand the Cognitive Category.
The user has to expand the
SentimentAnalyzers, drag the
AnalyzeSentencecomponent and drop on Design Surface.
Double-clickon Text and input the sentence which the user wants to analyse.
Expand the General category, Drag the Format Text and Drop on design surface.
Click on add ‘+’ icon of format text to add the data in port dynamically, (in this example 4 new parameters are added).
Double-clickon Format text then
Text Format EditorWindow will open.
Text Format Editorwindow, the user has to write the format as required.
Expand the Message box component, Drag the show & drop it on the Design Surface.
Connect the control ports and data ports in the activity.
In the toolbar, click