Extract toponyms Version 1 (Net)
Group "ROBIN AI", subgroup "NER (PREFERENTUM)"
Description
The action returns toponyms from the text. Suitable for extracting the names of states, republics, regions, cities
Action icon
Parameters and their settings
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
Text | Text for analysis | String | Production of goods is located at: Russia, Moscow region, Odintsovsky district, Zakharovo village, Gorokhovaya street, 34. | 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:
"USA is a land of limitless possibilities."
ou need to extract a toponym from the text and display it in a dialog box.
Solution
Take advantage of the "Extract toponyms", "Message" and "Get value by index" actions.
Implementation
- Create a variable "Collection" into which the result of the "Extract toponyms" action will be written.
- Drag the "Extract toponyms" action to the workspace.
- Fill in the "Text" parameter of the "Extract toponyms" 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 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. - Launch the robot using the "Launch" button in the top panel.
Result
The program robot has completed successfully. The required value is displayed in the dialog box.
Обзор
Инструменты контента