История страницы
Группа Текст Action group Text 2.0, релиз release 2.20.0, версия version 1(net)
Описание
Действие определяет язык указанного текста.
Description
The action specifies the language of the specified text.
- The action can detect 53 languages (listed in the table below).
- The action returns a string with the language that could be defined. The language is written according to the
- Действие может определить 53 языка (указаны в таблице ниже).
- Действие возвращает строку с языком, которое удалось определить. Язык записан по стандарту ISO - 639 - 3 standard.
- В тексте не учитываются спецсимволы, цифры, пробелы.
- Если текст содержит несколько языков – действие будет выводить язык, процент которого больше в тексте.
- Если текст содержит одинаковый процент нескольких языков, то действие выведет один из этих языков, которое посчитает наиболее вероятным.
- Есть вероятность неточного определения языка текста. Чем длиннее указанный текст, тем точнее результат.
- Если текст содержит другие языки (неуказанные в таблице), то действие выведет один из доступных языков, которое посчитает наиболее вероятным.
- Если текст не содержит буквы, а только символы, то действие выдаст ошибку - «В указанном тексте отсутствуют буквы».
- The text does not include special characters, numbers, spaces.
- If the text contains more than one language - the action will output the language whose percentage is higher in the text.
- If the text contains the same percentage of several languages, the action will output one of these languages, which it considers the most probable.
- There is a possibility that the language of the text is inaccurate. The longer the specified text, the more accurate the result.
- 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.
- 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
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
Text | The text to identify its language. | Robin.String | Yes | |
Results | ||||
Result | The 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
- Set the " Detect text language" action on the workspace.
- Correctly fill in the parameters: "Text" - specify the text in one of the available languages -
- Установить действие "Определить язык текста" на рабочее пространство.
- Корректно заполнить параметры: "Текст" - указать текст на одном из доступных языков - "Привет! Меня зовут Иван!".
- Запустить робота.
- Launch the robot.
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
- Установить действие "Определить язык текста" на рабочее пространство.
- Корректно заполнить параметры: "Текст" - указать текст с использованием нескольких доступных языков, но с большим преобладанием одного из них.
- Запустить робота.
Результат: Действие возвращает найденный язык, который больше преобладает в тексте.
Задача 3
- Set the " Detect text language" action on the workspace.
- Correctly fill in the parameters: "Text" - specify text using several available languages, but with a high predominance of one of them.
- Launch the robot.
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
- Set the "Detect text language" action on the workspace.
- Correctly fill in the parameters: "Text" - Input text
- Установить действие "Определить язык текста" на рабочее пространство.
- Корректно заполнить параметры: "Текст" - Текст на вход - " Sawubona!" (язык – зулуlanguage - Zulu).
- Запустить роботаLaunch the robot.
Результат: Робот вернул ошибку. Результат – "tgl" или другой доступный язык, имеющий такие же символы.
Задача 4
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
- Set the "Detect text language" action on the workspace.
- Correctly fill in the parameters: "Text
- Установить действие "Определить язык текста" на рабочее пространство.
- Корректно заполнить параметры: "Текст" - "125? 12-1=11*?;".
- Запустить робота.
- Launch the robot.
Result
Error "There are missing letters in the specified text."Результат: Ошибка "В указанном тексте отсутствуют буквы.".