История страницы
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 | Mandatoryfield |
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:
Информация | ||
---|---|---|
|
Извлечь ФИО / Extract full name
Группа действий: ROBIN AI
Действие извлекает из текста ФИО.
Настройки
...
Свойство
...
Описание
...
Тип
...
Пример заполнения
...
Обязательность заполнения поля
...
Параметры
...
Текст
...
Текст, из которого будут извлечены ФИО.
...
Robin.String
...
Да
...
Результат
...
Коллекция с извлеченными данными. Если одно и то же ФИО встречается в тексте несколько раз, то в результирующей коллекции оно будет записано один раз.
...
Robin.Collection
Особые условия использования
Если одна и та же запись встречается в тексте несколько раз, в результирующей коллекции она будет записана один раз. Дубликатами являются полные совпадения строк. Таким образом, Иванов Иван не является дублем ни Иванову И, ни Иванову И.И, они тоже будут извлечены и записаны в результате. Это же правило распространяется на ФИО, адреса и организации.
Фио татарские: https://semfamily.ru/istoriya-familij-stati/spisok-tatarskih-familij
Фио казахские: https://semfamily.ru/istoriya-familij-stati/kazahskie-familii. встречается буква "i".
Если указанный текст не содержит имена, то действие вернет пустую коллекцию.
Пример использования
Задача: извлечь из текста ФИО.
...
Дядя по отцу, Василий Львович (1766—1830), был известным поэтом круга Карамзина. Из детей Сергея Львовича и Надежды Осиповны, кроме Александра, выжили дочь Ольга (в замужестве Павлищева, 1797—1868) и сын Лев (1805—1852). |
Решение: воспользоваться действием "Извлечь ФИО".
Реализация:
- Перенести действие "Извлечь ФИО" на рабочую область.
- Настроить параметры действия "Извлечь ФИО".
- Нажать на кнопку "Старт" в верхней панели.
Результат: Программный робот отработал успешно. ФИО из текста извлечены.
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.