colrev.env.language_service.LanguageService
- class colrev.env.language_service.LanguageService[source]
Bases:
objectService to detect languages and handle language codes.
Initialize the instance.
Methods
compute_languageCompute the most likely language code.
compute_language_confidence_valuesCompute the most likely languages of a string and their language codes.
unify_to_iso_639_3_language_codesUnify a language_code string to the ISO 639-3 standard.
validate_iso_639_3_language_codesValidates whether a list of language codes complies with the ISO 639-3 standard.
- compute_language_confidence_values(*, text)[source]
Compute the most likely languages of a string and their language codes.
- Return type:
list