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

Ключ

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

...

  • Result is a collection of dictionaries with extracted addresses. Addresses repeated in the text are recorded in the collection once.

    Each address found will be written to a dictionary, where the keys are the address fields and the values are the extracted data.

    Address dictionary keys:

  • Full address
  • Country
  • Subject of the Russian Federation
  • Municipal entity
  • Administrative-territorial unit
  • Settlement
  • Planning structure element
  • Element of street and road network
  • Addressing object element
  • Building type
  • Room type
  • Postal code

Settings

Property

Description

Type

Filling example

Mandatoryfield

Parameters

Text

The text from which the addresses will be extracted

String

Школа Евгении расположена по адресу: Нижегородская область, г.Нижний Новгород, ул.Ленина, д.100

Yes

Without the address element typeIf the value is «true», only the name of the address element will be specified. If «false», the name and type of the address element will be recorded in the dictionaryBooleantrueNo
The original view of the address elementIf the value is «true», then the type of the address element will be specified as in the source text. If «false», the dictionary will record the official full view of the address elementBooleantrueNo
Results

Result

A collection of dictionaries with extracted data. If the same address occurs several times in the text, then it will be recorded once in the resulting collection

Collection



Special conditions of use

...

There is a text to recognize:"

Информация
iconfalse

Обращением к архитектуре итальянского ренессанса в 1930-е годы стал знаменитый дом на Моховой, построенный в 1932–1934 годах И.В. Жолтовским по адресу: Россия, Московская область, г. Москва, ул. Моховая, д. 13. Здание строилось по заказу Моссовета как жилой дом. Шестой и седьмой этажи со стороны главного фасада занимали двухэтажные квартиры, во двор выходили комнаты-мастерские высотой в два этажа, застеклённые большими окнами-витражами.

...


Addresses need to be extracted from the text and written into an existing tabular document.

...

Use the actions: "Extract addresses", "Get keys", "Get values", "Open", "Set column values", loop "For each", "Save".

Implementation

  1. Drag the "Extract addresses" action to the workspace.

  2. Set the parameters of the "Extract addresses" action.
    Enter the text to be recognized in the "Text" field.

    Set the "The original view of the address element" parameter to "true".
  3. Drag the "Open" action to the workspace and customize the action settings.

  4. Drag the "For each" loop to the workspace.
  5. In the "Collection" parameter of the "For each" loop, add the result of the "Extract Addresses" action.

  6. Drag the "Get keys" and "Get values" actions into the "For each" loop on the workspace.

  7. Set up the "Get keys" and "Get values" action parameters.
    Add the result of the "For each" loop to the "Dictionary" parameter.

  8. Drag the "Set column values" action and "Save" actions to the workspace.
    Image RemovedImage Added
  9. Set the "Set column values" action parameters. 
    1. Set context - result of "Open" action
    2. Add columns A and B to the Column name parameter
    3. Add the results of the "Get keys" and "Get values" actions to the "Cell value" parameter
    4. Set the starting line number of the range
  10. Click on the "Start" button in the top panel.

...

The program robot completed successfully.
Image Added

The extracted addresses are recorded in a tabular document.
Image Removed

When "true" is set to "Without the address element type", the "Extract addresses" action is set to "Extract addresses"

the resulting dictionary will not include the types of address elements: