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

Ключ

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

...

Extract toponyms Version 3 (Net)

Группа действий: Работа с текстом

Описание

Данное действие предназначено для извлечения из текста топонимов. Подходит для извлечения государств, республик, областей, городов.

Иконка действия

Image Removed

Настройки

...

Свойство

...

Англ. наименование

...

Описание

...

Тип

...

Текст для анализа.

...

Тестовый текст

...

Особые условия использования

Если одна и та же сущность фигурирует в тексте несколько раз, в результирующем массиве она будет записана один раз.

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

Задача: существует переменная "Вводный текст" с значением:

США — страна безграничных возможностей.

Требуется извлечь из текста топоним и вывести его в диалоговое окно. 

Решение: воспользоваться действиями "Извлечь топонимы", "Сообщение", "Получить значение по индексу". 

Реализация: 

...

Action group: Text

...

Description

This action is intended for extracting toponyms from the text. Suitable for extracting states, republics, regions, cities

Action icon

Image Added

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
TextText for analysis.Robin.String
No
Results
ResultCollection of extracted data. If the same entity appears several times in the text, it will be written once in the resulting array.Robin.Collection

Special conditions of use

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

Example of use

Task

Available text:

"The USA is a country of unlimited opportunities."

You need to extract a toponym from the text and display it in a dialog box.

Solution

Take advantage of the "Extract toponyms", "Show message" and "Get value by index" actions. 

Implementation

  1. Create a variable "Collection" to which the result of the "Extract toponyms" action will be written. 
  2. Move the "Extract toponyms" action to the workspace and set its parameters. 
    Image Added
  3. Move the "Get value by index" action to the workspace and set its parameters.Image Added

  4. Move the "Show message" action to the workspace and set its parameters. 
    Image Added
  5. Launch the robot using the "Start" button in the top panel. 

Result

The required value is displayed in the dialog box Результат: в диалоговое окно выведено требуемое значение