We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given a text in Ukrainian, two methods provide two completely different results.
detector = LanguageDetectorBuilder.from_all_languages().build() string = "Що найбільше подобається читачам у жанрі \"Фентезі\"?" print(detector.compute_language_confidence_values(string)) >>> [ConfidenceValue(language=Language.KAZAKH, value=1), ConfidenceValue(language=Language.AFRIKAANS, value=0), ConfidenceValue(language=Language.ALBANIAN, value=0), ...] print(detector.detect_multiple_languages_of(string)) >>> [DetectionResult(start_index=0, end_index=51, word_count=7, language=Language.UKRAINIAN)]
The text was updated successfully, but these errors were encountered:
Both methods use different algorithms, so this can happen. I will try to improve them with each new release.
Sorry, something went wrong.
No branches or pull requests
Given a text in Ukrainian, two methods provide two completely different results.
The text was updated successfully, but these errors were encountered: