Skip to content

Constants

gllm_intl.detection.constants

Constant definitions for detection module.

Authors

Dimitrij Ray (dimitrij.ray@gdplabs.id)

References

NONE

DEFAULT_DETECTED_LANGUAGE = DetectionLanguage(language_code='en', confidence=0.0) module-attribute

MAXIMUM_CONFIDENCE = 0.99999 module-attribute

DetectionLanguage

Bases: BaseModel

Represents a single language detection candidate.

Attributes:

Name Type Description
language_code str

ISO 639-1 language code (e.g., "en").

confidence float

Detection confidence score between 0.0 and 1.0.

confidence: ConfidenceScore = Field(description='Detection confidence score between 0.0 and 1.0.') class-attribute instance-attribute

language_code: LanguageCode = Field(description='ISO 639-1 language code (two lowercase letters).') class-attribute instance-attribute

model_config = ConfigDict(frozen=True) class-attribute instance-attribute