Extract full names Version 1 (python)
Group "Robin AI", subgroup "NER (ROBIN)"
Description
The action extracts the full name from the text
Action icon
Parameters and their settings
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Text | The text from which the full name will be extracted | String | Курбат Афанасьевич Иванов — русский землепроходец, тобольский казак, первый русский, достигший озера Байкал. Составитель первой карты Дальнего Востока по данным, собранным атаманом И. Ю. Москвитиным. | Yes |
Results | ||||
Result | A collection with extracted data. If the same full name occurs several times in the text, then it will be recorded once in the resulting collection | Collection |
Special conditions of use
If the same entry occurs several times in the text, it will be recorded once in the resulting collection. Duplicates are complete matches of strings.
If the specified text does not contain names, the action returns an empty collection.
Example of use
Task
There is a text to recognize:
You need to extract the full name from the text and display it in a dialog box.
Solution
Use the "Extract full names", "Convert data" and "Message" actions.
Implementation
- Create a variable "Collection" to which the result of the " Extract full names" action will be written.
- Drag the "Extract full names" action to the workspace.
- Set the "Text" parameter of the "Extract full names" action.
Add the variable "Collection" to the result. - Drag the "Convert data" action to the workspace.
- Set the parameters of the "Convert data" action.
In the "Source" field add the created variable.
Select the "String" option in the "Type" field. - Drag the "Message" action to the workspace.
- Set the parameters of the "Message" action.
In the "Message text" field add the result of the "Convert data" action. - Click on the "Start" button in the top panel.
Result
The program robot completed successfully.
The required values are displayed in the dialog box.