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

Ключ

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

Группа Текст Action group Text 2.0, релиз release 2.20.0, версия version 1(net)

Описание

Действие определяет язык указанного текста.

Description

The action specifies the language of the specified text.

  1. The action can detect 53 languages (listed in the table below).
  2. The action returns a string with the language that could be defined. The language is written according to the
  3. Действие может определить 53 языка (указаны в таблице ниже).
  4. Действие возвращает строку с языком, которое удалось определить. Язык записан по стандарту ISO - 639 - 3 standard.
  5. В тексте не учитываются спецсимволы, цифры, пробелы. 
  6. Если текст содержит несколько языков – действие будет выводить язык, процент которого больше в тексте.
  7. Если текст содержит одинаковый процент нескольких языков, то действие выведет один из этих языков, которое посчитает наиболее вероятным.
  8. Есть вероятность неточного определения языка текста. Чем длиннее указанный текст, тем точнее результат.
  9. Если текст содержит другие языки (неуказанные в таблице), то действие выведет один из доступных языков, которое посчитает наиболее вероятным.
  10. Если текст не содержит буквы, а только символы, то действие выдаст ошибку -  «В указанном тексте отсутствуют буквы».
  11. The text does not include special characters, numbers, spaces. 
  12. If the text contains more than one language - the action will output the language whose percentage is higher in the text.
  13. If the text contains the same percentage of several languages, the action will output one of these languages, which it considers the most probable.
  14. There is a possibility that the language of the text is inaccurate. The longer the specified text, the more accurate the result.
  15. If the text contains other languages (not specified in the table), the action will output one of the available languages that it considers most likely.
  16. If the text does not contain letters, but only characters, the action will generate an error - "There are no letters in the specified text".

Standart Стандарт ISO 639-3:

ISO 639-3

ISO language name

afr

Afrikaans

ara

Arabic

ben

Bengali

bul

Bulgarian

ces

Czech

dan

Danish

deu

German

ell

Greek, Modern (1453–

eng

English

est

Estonian

fas

Persian

fin

Finnish

fra

French

guj

Gujarati

heb

Hebrew

hin

Hindi

hrv

Croatian

hun

Hungarian

ind

Indonesian

ita

Italian

jpn

Japanese

kan

Kannada

kor

Korean

lav

Latvian

lit

Lithuanian

mal

Malayalam

mar

Marathi

mkd

Macedonian

nep

Nepali

nld

Dutch, Flemish

nor

Norwegian

pan

Punjabi, Panjabi

pol

Polish

por

Portuguese

ron

Romanian, Moldavian, Moldovan

rus

Russian

slk

Slovak

slv

Slovenian

som

Somali

spa

Spanish, Castilian

sqi

Albanian

swa

Swahili

swe

Swedish

tam

Tamil

tel

Telugu

tgl

Tagalog

tha

Thai

tur

Turkish

twi

Twi

ukr

Ukrainian

urd

Urdu

vie

Vietnamese

zho

Chinese

...

 Action icon

...

Parameters

...

Input parameters

Текст - Текст, язык которого нужно определить.

Выходные параметры

Результат - Язык, на котором написан указанный текст. Если текст содержит слова на разных языках, то действие укажет тот язык, которое посчитает наиболее вероятным.

Настройки

...

Наименование

...

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

...

Описание

...

Тип данных

...

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

...

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

Text - The text whose language is to be defined.

Output parameters

Result - The language in which the specified text is written. If the text contains words in different languages, the action will specify the language it considers most likely.

Settings

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
TextThe text to identify its language.Robin.String
Yes
Results
ResultThe language of the provided text. If the text includes multiple languages, the action will prioritize the most probable language.Robin.String

Special conditions of use

None. 

Example of use

Task 1

Identify the language of the input text - 

...

Входные параметры

...

Текст

...

Text

...

Текст, язык которого нужно определить.

...

Строка

...

 

...

Да

...

Выходные параметры

...

Результат

...

Result

...

Язык, на котором написан указанный текст. Если текст содержит слова на разных языках, то действие укажет тот язык, которое посчитает наиболее вероятным.

...

Строка

...

 

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

Отсутствуют 

Примеры реализации

Задача 1

Определить язык текста на входе - "Привет! Меня зовут Иван!".Реализация

Implementation

  1. Set the " Detect text language" action on the workspace.
  2. Correctly fill in the parameters: "Text" - specify the text in one of the available languages -
  3. Установить действие "Определить язык текста" на рабочее пространство.
  4. Корректно заполнить параметры: "Текст" - указать текст на одном из доступных языков - "Привет! Меня зовут Иван!".
  5. Запустить робота.

Image Removed

  1. Launch the robot.

Image Added

Result

Action returned the found language in Результат: Действие вернуло найденный язык в стандарте ISO 639-3.

 Задача 2

Task 2

Identify the language of the bilingual text on input - " Определить язык текста на двух языках на входе - "  "Hello! My name is Иван!". 

...

Implementation

  1. Установить действие "Определить язык текста" на рабочее пространство.
  2. Корректно заполнить параметры: "Текст" - указать текст с использованием нескольких доступных языков, но с большим преобладанием одного из них.
  3. Запустить робота.

Image Removed

Результат: Действие возвращает найденный язык, который больше преобладает в тексте.

 Задача 3

  1. Set the " Detect text language" action on the workspace.
  2. Correctly fill in the parameters: "Text" - specify text using several available languages, but with a high predominance of one of them.
  3. Launch the robot.

Image Added

Result

The action returns the found language that is more prevalent in the text.

Task 3

Identify the language of the text in the input Определить язык текста  на входе - " Sawubona!" (язык – зулуthe language is Zulu). 

...

Implementation

  1. Set the "Detect text language" action on the workspace.
  2. Correctly fill in the parameters: "Text" - Input text
  3. Установить действие "Определить язык текста" на рабочее пространство.
  4. Корректно заполнить параметры: "Текст" - Текст на вход - " Sawubona!" (язык – зулуlanguage - Zulu). 
  5. Запустить роботаLaunch the robot.

Image Removed

Результат: Робот вернул ошибку. Результат – "tgl" или другой доступный язык, имеющий такие же символы.

 Задача 4

Image Added

Result

The robot returned an error. The result is "tgl" or another available language with the same characters.

Task 4

Determine the language of the input text Определить язык текста на входе - "125? 12-1=11*?;". Результат Result - Ошибка "В указанном тексте отсутствуют буквы.".

Реализация

Error "There are no letters in the specified text."

Implementation

  1. Set the "Detect text language" action on the workspace.
  2. Correctly fill in the parameters: "Text
  3. Установить действие "Определить язык текста" на рабочее пространство.
  4. Корректно заполнить параметры: "Текст" - "125? 12-1=11*?;".
  5. Запустить робота.

Image Removed

  1. Launch the robot.

Image Added

Result

Error "There are missing letters in the specified text."Результат: Ошибка "В указанном тексте отсутствуют буквы.".