Classify text Version 3 (Net)
Action group: Text
Description
This action is designed to determine the classification of the text.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | Context ID | Robin.Object | No | |
Text for classification | Text for classification | Robin.String | No | |
Accuracy Threshold | Accuracy threshold for classification. Min value is 0. Max value is 1. | Robin.Numeric | No | |
Results | ||||
Result | Classified text | Robin.String |
Special conditions of use
At least one classifier must be created.
Example of use
Task
There is a folder "Texts folder" There are two folders named 18 and 20 and an empty folder called "Indexing". In each of these folders there are files with text (folders 18 and 20). In one of the folders there is a file with the text: "While the pasta is cooking, melt the butter in the pan". It is necessary to identify this folder.
Solution
Use "Create classifier index", "Open classifier", "Classify text" actions.
Implementation
- Move the "Create classifier index" action to the workspace.
- Create a variable with the type "folder path" and specify it as a result of the action.
- Set the action parameters (specify the corresponding folder paths).
Move the "Open classifier" action to the workspace and set its parameter and result. Create a variable with the type "Object" to record the context identifier into it.
Move the "Classify text" action to the workspace and set its parameters, create a variable with the type "string" to be added as a result of this action.
Click "Start" in the top panel.
Result
The program robot completed successfully.
Required folder is found.