DLT. - DeepL Translate

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > DLT. - DeepL-Translate >

DLT. - DeepL Translate

DLT.Set Split Sentence

Previous Top Next


MiniRobotLanguage (MRL)

 

DLT.Set Split Sentence

Sets sentence splitting behavior for DeepL

 

 

Intention

 

The DLT.Set Split Sentence command is used to control how the DeepL translation service divides the input text into sentences for translation. This is a crucial aspect of the translation process, as the way sentences are split can significantly influence the quality and accuracy of the translation.

 

Sentence splitting is particularly important for languages that use complex sentence structures or have different rules for punctuation. By correctly splitting sentences, the translation service can better understand the context and provide more accurate translations.

 

The DLT.Set Split Sentence command allows you to specify the sentence splitting behavior using the optional parameter P1. This parameter can take several values, each corresponding to a different sentence splitting behavior:

 

"0" or "Splitting Off": This setting disables sentence splitting. The entire input text is treated as a single sentence. This can be useful for short texts or texts that are already divided into individual sentences.

 

"1" or "Splitting On": This setting enables sentence splitting on both punctuation and newlines. This is the default behavior when tag handling is not set to HTML. It's suitable for most general texts.

 

"nonewlines": This setting enables sentence splitting on punctuation only, ignoring newlines. This is the default behavior when tag handling is set to HTML. It's useful for texts that use newlines for formatting rather than to indicate the end of a sentence.

 

'  This command sets the sentence splitting behavior to treat the entire input text as a single sentence. For example, if the input text is "Hello. How are you?", the translation service will treat it as "Hello. How are you?" without splitting it into two sentences.

DLT.Set Split Sentence|0

 

' This command sets the sentence splitting behavior to split on both punctuation and newlines. For example, if the input text is "Hello. How are you?", the translation service will split it into two sentences: "Hello." and "How are you?".

DLT.Set Split Sentence|Splitting On

 

The DLT.Set Split Sentence command is part of the DeepL translation service commands.
It affects how the input text is processed for translation. The sentence splitting behavior can significantly affect the translation quality, especially for languages that use complex sentence structures. Therefore, it's recommended to choose the appropriate setting based on the nature of the input text and the target language.

 

Syntax

 

 

DLT.Set Split Sentence[|P1]

 

 

Parameter Explanation

 

P1 - (optional) This parameter can take several values, each corresponding to a different sentence splitting behavior:

 

"0" or "Splitting Off": This setting disables sentence splitting. The entire input text is treated as a single sentence. This can be useful for short texts or texts that are already divided into individual sentences.

 

"1" or "Splitting On": This setting enables sentence splitting on both punctuation and newlines. This is the default behavior when tag handling is not set to HTML. It's suitable for most general texts.

 

"nonewlines": This setting enables sentence splitting on punctuation only, ignoring newlines. This is the default behavior when tag handling is set to HTML. It's useful for texts that use newlines for formatting rather than to indicate the end of a sentence.

 

 

 

 

 

Example

 

'***********************************

'

'***********************************

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also:

 

    1.6.1. Program Flow Control

    ! Smart Package Robot 's Parallel Robot Operations

    1.5. Features and Hints