Multilingual model management
Summarize
Summary of Multilingual Model Management
Multilingual model management in ServiceNow's Natural Language Understanding (NLU) enables you to create, manage, and maintain language-specific models to understand user input in multiple languages. Using the NLU Workbench, you can organize primary models and their translated secondary models, ensuring a consistent and unified experience across languages. This functionality supports a wide range of languages for both primary (source) and secondary (translated) models.
Show less
Primary and Secondary Models
A primary model is created in a chosen source language and serves as the foundation for translations. Secondary models are translated versions of the primary model in other supported languages. Each model group contains one primary model and multiple secondary models, but no two secondary models within the same group can share the same language. Intent and entity names remain consistent across all models in a group to maintain integrity.
Managing Multilingual Models
- Grouping languages is optional but recommended for organizing multiple language versions within a model group.
- You can add languages directly to primary models to create secondary models with translation capabilities.
- Intents can only be created in primary models; they propagate to secondary models where they can be enabled or disabled.
- Entities can be added in both primary and secondary models, with some restrictions on deletion and validation across the group.
- Secondary models require manual review after translation or updates before publishing, indicated by a "Needs review" status.
- Training and testing of secondary models require at least one enabled intent; prediction accuracy may vary due to language differences.
Model Interaction and Maintenance
- Changes to intents and entities in the primary model reflect automatically in secondary models, including deletions.
- Intents cannot be deleted in secondary models but can be disabled.
- Navigation between model languages is facilitated via a drop-down list on the model details page for easy access and management.
Duplicating Models and Model Groups
- With the nluadmin role, you can duplicate individual primary or secondary models, or entire model groups.
- Duplicated secondary models become standalone primary models outside of any group.
- When duplicating a primary model, you can include secondary models, creating a new group with linked source models.
- You may designate an existing secondary model as the primary model in a duplicated group, which enables all disabled entities in that secondary model.
Practical Benefits for ServiceNow Customers
- Manage multilingual NLU models efficiently to provide consistent user experiences across multiple languages.
- Streamline translation and model updates by using grouping and import features, reducing duplication of effort.
- Maintain control over model content through role-based editing, intent enabling/disabling, and review workflows.
- Facilitate testing and deployment of language-specific models with clear status indicators and training controls.
Use multilingual Natural Language Understanding (NLU) models for the system to understand user input in several languages. The NLU Workbench helps you manage and maintain a consistent structure for content across languages to provide a unified experience.
Primary and secondary languages
A primary language is the source language you choose when creating a model. These models are considered primary models. Primary models can then be translated into different languages. Those translated models are referred to as secondary models. The languages in which they are translated are referred to as secondary languages.
The NLU Workbench home displays primary and secondary language models nested under the model name. Select the arrow to the left of the model name to expand the language group.
- Primary models have a language you assign to them during model creation and listed as English (Primary). The language of the primary model is the source language for the translations that follow later in the secondary models.
- Secondary models are translated copies of the primary model. Each secondary model uses a different language, such as Brazilian Portuguese, Polish, or Finnish.
- Any supported language can be the primary language for a primary model or the secondary language for a secondary model.
- Within a model group, you can't have two secondary models that use the same language.
For more information on the languages available in NLU, see NLU language support.
Implementing language grouping
- You can add a language to a primary model in the model's More options menu, which automatically creates a secondary language model with translation options. For more information on adding and translating a language, see Translate a multilingual model.
- You can access the instance model migration page directly by visiting <instance_name>.service-now.com/$nlu-studio.do#/model-migration. For more information on language grouping using this method, see Model language grouping.
Primary and secondary model interactions
When you add an intent to a primary model, the intent is added to all of its secondary models. Every intent in a secondary model is mapped to its corresponding intent in the primary model. The mapping of intents ensures that any application that uses these intents can access all the secondary intents through their corresponding primary intents.
When you delete an intent or entity in a primary model, its corresponding intents and entities are also deleted in its secondary models. Therefore, the secondary models must always follow the status of the primary model content. Although you can't delete intents in secondary models, you can disable them.
For more information on intent interactions, see Import primary model content to a secondary model.
You can't delete an entity created in a secondary model if it's a copy of a corresponding entity created in the primary model. However, you can add or delete an entity in a secondary model if it doesn't have a corresponding entity in the primary model.
Duplicating grouped models and model groups
Using the nlu_admin role, you can duplicate primary models, secondary models, and entire model groups. You can duplicate just the primary model or a set of secondary models from among the model group.
- If you duplicate a secondary model that's in a model group, the duplicated version becomes a separate primary model that is outside that model group.
- All intents are duplicated. The duplicated intent maintains the same Enabled status as the original intent.
- When duplicating a primary model, you can duplicate a set of secondary models, or all of the secondary models along with it. This action creates a model group comprised of duplicated versions with the respective original models marked as the source models.
- When duplicating a model group, you can choose an existing secondary model to be the primary model for the duplicated group.
- If you select a secondary model in an existing model group as a new primary model while duplicating the group, all the disabled entities are enabled for the duplicated version of the secondary model. The secondary model becomes the primary model in the new duplicated model group.
- If you duplicate a primary model without any secondary model, the duplicated version becomes a separate primary model.
For more information, see Duplicate an NLU model.