Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

Extract full names Version 1 (python)

Group "Robin AI", subgroup "NER (ROBIN)"

...

Description

The action extracts the full name from the text

Action icon

Image Added

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:

Информация
iconfalse

Извлечь ФИО /  Extract full name

Группа действий: ROBIN AI

Действие извлекает из текста ФИО.

Image Removed

Настройки

...

Свойство

...

Описание

...

Тип

...

Пример заполнения

...

Обязательность заполнения поля

...

Параметры

...

Текст

...

Текст, из которого будут извлечены ФИО.

...

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).

Решение: воспользоваться действием "Извлечь ФИО".

Реализация:

  1. Перенести действие  "Извлечь ФИО" на рабочую область.
    Image Removed
  2. Настроить параметры действия "Извлечь ФИО".
    Image Removed
  3. Нажать на кнопку "Старт"  в верхней панели.

Результат: Программный робот отработал успешно. ФИО из текста извлечены.

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

  1. Create a variable "Collection" to which the result of the " Extract full names" action will be written.
    Image Added
  2. Drag the "Extract full names" action to the workspace.
    Image Added
  3. Set the "Text" parameter of the "Extract full names" action.
    Image Added
    Add the variable "Collection" to the result.
    Image Added
  4. Drag the "Convert data" action to the workspace.
    Image Added
  5. Set the parameters of the "Convert data" action.
    In the "Source" field add the created variable.
    Select the "String" option in the "Type" field.
    Image Added
  6. Drag the "Message" action to the workspace. 
    Image Added
  7. Set the parameters of the "Message" action.
    In the "Message text" field add the result of the "Convert data" action.
    Image Added
  8. Click on the "Start" button in the top panel.

Result

The program robot completed successfully.
Image Added

The required values are displayed in the dialog box.
Image AddedImage Removed