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

Ключ

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

Extract addresses Version 1 (Net)

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

...

Description

The action extracts addresses from text

Action icon

Image Modified

Parameters and their settings

Property

Description

Type

Filling exampleMandatory fieldMandatory field
Parameters
Text

Text for analysis

String

Производство товаров находится по адресу: Россия, Московская область, Одинцовский район, деревня Захарово, ул. Гороховая, д. 34

Yes
Results
ResultCollection of extracted dataCollection

Special conditions of use

If the same entity appears several times in the text, it will be written once in the resulting array.

Example of use

Task

There is a text: "Иван Иванович Иванов проживает по адресу: город Москва, ул. Родионова 2, кв.9".
It is required to extract the address from the text.

Solution

Use the “Extract addresses”, “Get value by index” and “Message” actions. 

Implementation

  1. Create a variable “Collection” into which the result of the “Extract addresses” action will be written. 
    Image Modified

  2. Drag and drop the “Extract addresses” action to the workspace.
    Image Modified

  3. Fill in the “Text” parameter of the “Extract addresses” action.
    Add the “Collection” variable to the result.
    Image Modified

  4. Drag the “Get value by index” action to the workspace.Image Modified

  5.  Set the parameters of the “Get value by index” action.
    Image Modified

  6. Drag and drop the “Message” action to the workspace.
    Image Modified

  7. Set the parameters of the “Message” action.
    In the “Message text” field add the result of the “Get value by index” action.
    Image Modified

  8. Launch the robot using the “Launch” button in the top panel. 

Result

The program robot has completed successfully. The required value is displayed in the dialog box.

Image Modified

Image Modified