graph LR
LangProfile["LangProfile"]
Profile_Loader["Profile Loader"]
Profile_Integrator["Profile Integrator"]
Profile_Loader -- "creates" --> LangProfile
Profile_Loader -- "uses" --> Profile_Integrator
Profile_Integrator -- "integrates" --> LangProfile
The Language Profile Store subsystem is responsible for managing the statistical language profiles (n-gram frequencies) used by the language detection algorithm, handling their storage, retrieval, and optimization.
The fundamental data model that encapsulates and manages the statistical n-gram data defining a language's profile. It serves as the core storage for all profile-related information, including n-gram frequencies. It also provides internal methods (update, add) for modifying its data.
Related Classes/Methods:
This component is responsible for orchestrating the process of loading language profiles from external data sources (e.g., JSON files). It parses the raw data and constructs LangProfile objects. load_json_profile is a specialized variant for JSON-formatted profiles.
Related Classes/Methods:
This component handles the integration of a fully constructed LangProfile object into the DetectorFactory's internal collection. It makes the loaded profile accessible for subsequent language detection operations, effectively bridging the loaded profiles with the core detection logic.
Related Classes/Methods: