Exclusion Framework in Dynamic Translation
Preserve text such as product names or technical terms during machine translation. With Exclusion Framework in Dynamic Translation, you can specify words and patterns that should not be translated.
Exclusion Framework is a set of rules ensuring that your designated text bypasses the machine translation process and appears unchanged in the resulting output. Dynamic Translation applies Exclusion Framework rules to your text before submitting the request to your machine translation provider. Two types of rules are supported: Exact Match (specific terms) and Pattern Match (regex).
Examples of text to consider for exclusion from machine translation
| Rule type | Examples |
|---|---|
| Exact match |
|
| Pattern match |
|
Activating Exclusion Framework
An upgrade to Xanadu Patch 3 or higher also converts the Dynamic Translation flows from v3 to v4. The v4 flows contain subflows for working with Exclusion Framework. Translator configurations available by default are automatically upgraded to v4. For more information, see Migrate customized Translator Configurations to v4 flows.
A system property in enables you to activate or deactivate Exclusion Framework: sn_dt.dynamic_framework.enable_exclusion_framework.
By default Exclusion Framework provides several exclusion rules, and you can add your own rules during configuration.
Configuring Exclusion Framework
- Ensure that your third-party machine translation service has an active record in the Exclusion Provider Pattern [sn_dt_provider_exclusion_pattern] table. If you have chosen a custom translator service you must input their exclusion tags. For information see Add an Exclusion Provider Pattern.
- Review any existing records in the Exclusion Rules [sn_dt_exclusion_rules] table to check whether they are appropriate for your needs. Rules that are provided by default can be deactivated by clearing the Active check box, but they can't be edited.
- Add more exclusion rules according to your organizational requirements. For information see Add new rules to Exclusion Framework.
Exclusion Framework's operational process
After configuration, Exclusion Framework's subflows operate within Dynamic Translation. The Exclusion Framework process is outlined as follows.- Exclusion Framework searches the original text (before translation) to find any matches to terms and patterns that are active in the Exclusion Rules table.
- Any matches are wrapped in exclusion tags. These tags are pulled from the relevant record in the Exclusion Provider Pattern table.
- The tagged text is submitted to your machine translation provider.
Domain separation support in Exclusion Framework
Exclusion Framework supports domain separation. Each domain on an instance can have its own set of Exclusion Framework rules, so the rules apply at the domain level. Within a domain, each rule must be unique. Create rules in the domain where you want them to operate.
When multiple domains exist on one instance, Exclusion Framework is activated on all domains. Deactivating Exclusion Framework on a per-domain basis isn't supported. As an alternative, deactivate every rule in a domain where you want Exclusion Framework to be inactive.