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:

Дядя по отцу, Василий Львович (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

  1. Create a variable "Collection" to which the result of the " Extract full names" action will be written.

  2. Drag the "Extract full names" action to the workspace.

  3. Set the "Text" parameter of the "Extract full names" action.

    Add the variable "Collection" to the result.

  4. Drag the "Convert data" action to the workspace.
  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.

  6. Drag the "Message" action to the workspace. 

  7. Set the parameters of the "Message" action.
    In the "Message text" field add the result of the "Convert data" action.

  8. Click on the "Start" button in the top panel.

Result

The program robot completed successfully.

The required values are displayed in the dialog box.

  • Нет меток