История страницы
...
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
Входные параметры
- Текст – текст, из которого будут извлечены ФИО.
Выходные параметры
- Результат – коллекция с извлеченными данными. Если одно и то же ФИО встречается в тексте несколько раз, то в результирующей коллекции оно будет записано один раз.
...
Input parameters
- Text - the text from which the full names will be extracted.
Output parameters
- Result is a collection with extracted data. If one and the same name occurs several times in the text, it will be recorded once in the resulting collection.
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Имеется текст для распознавания:
Дядя по отцу, Василий Львович (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
Результат
Программный робот отработал успешно. В диалоговое окно выведены требуемые значения.