Extract named entities Version 1 (Net)
Group "ROBIN AI", subgroup "NER (PREFERENTUM)"
Description
The action returns named entities from text. The action allows you to extract the names of planets, buildings, locations
Action icon
Settings
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
Text | Text for analysis | String | Лена — река в Восточной Сибири России, впадает в море Лаптевых Северного Ледовитого океана, образуя крупнейшую в Арктике дельту. | Yes |
Results | ||||
Result | Collection of extracted data | Collection |
Special conditions of use
If the same entity appears several times in the text, it will be written once in the resulting array.
Example of use
Task
There is a text:
"Земля — третья по удалённости от Солнца планета Солнечной системы."
It is required to extract the value of "Земля" from the text and display it in a dialog box.
Solution
Use the "Extract named entities", "Get value by index" and "Message" actions.
Implementation
- Create a variable "Collection" into which the result of the "Extract named entities" action will be written.
- Drag the "Extract named entities" action to the workspace.
- Fill in the "Text" parameter of the "Extract named entities" action.
Add the variable "Collection" to the result. - Drag the "Get value by index" action to the workspace.
- Set the parameters of the "Get value by index" action.
- Drag and drop the "Message" action to the workspace.
- Fill in the parameters of the "Message" action.
In the "Message text" field add the result of the "Get value by index" action. - Click on the "Start" button in the top panel.
Result
The program robot has completed successfully. The required value is displayed in the dialog box.