Skip to content

Language Config

The language configuration specifies the language of the dataset and model, for the purpose of determining default values used for Syntax Analysis, Similarity Analysis, and Behavioral Testing.

For language-specific defaults, see Syntax Analysis Config, Similarity Analysis Config, and Behavioral Testing Config.

Config Scopes

from enum import Enum

class SupportedLanguage(str, Enum):
    en = "en"
    fr = "fr"

class LanguageConfig:
    language: SupportedLanguage = SupportedLanguage.en

For example, to change the language to French:

{
  "language": "fr"
}