Skip to content

Bump lingua-language-detector from 1.4.2 to 2.1.1 #283

New issue

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 23, 2025

Bumps lingua-language-detector from 1.4.2 to 2.1.1.

Release notes

Sourced from lingua-language-detector's releases.

Lingua 1.7.2

Bug Fixes

  • In low accuracy mode, the language detector could produce random results for certain kinds of text. This has been fixed.

Lingua 1.7.1

Bug Fixes

  • The library failed to build when only a subset of language features was selected when declaring the dependency. This has been fixed. (#452)

Lingua 1.7.0

Features

  • This release introduces an absolute confidence metric based on unique and most common ngrams for each supported language. It allows to build a language detector from a single language only. Such a detector serves as a binary classifier, telling you whether some text is written in your selected language or not. (#413)

Improvements

  • The new absolute confidence metric helps to improve accuracy in low accuracy mode. The mean of average detection accuracy (single words, word pairs and sentences combined) increases from 77% to 80%.

  • The rule-based algorithm for the recognition of Japanese texts has been improved. Texts including both Japanese and Chinese characters are now classified more often correctly as Japanese instead of Chinese. (#406)

  • The characters Щщ are now correctly identified as possible indicators for the Ukrainian language, leading to slightly higher accuracy when identifying Ukrainian texts.

  • The accuracy_reports binary now supports the arguments --detectors and --languages, allowing to select only a specific subset of detector / language combinations.

Bug Fixes

  • Text spans created by LanguageDetector.detect_multiple_languages_of() sometimes skipped characters in the last span. This has been fixed.

  • The tokenization of texts written in the Devanagari alphabet was flawed. This has been fixed, leading to better detection accuracy for Hindi and Marathi.

Miscellaneous

  • All dependencies have been updated to their latest versions.

Lingua 1.6.2

Improvements

  • Type stubs for the Python bindings are now available, allowing better static code analysis, better code completion in supported IDEs and easier understanding of the library's API.

Bug Fixes

  • The method LanguageDetector.detect_multiple_languages_of still returned character indices instead of byte indices when only a single DetectionResult was produced. This has been fixed.

Lingua 1.6.1

Bug Fixes

  • The method LanguageDetector.detect_multiple_languages_of returns byte indices. For creating string slices in Python and JavaScript, character indices are needed but were not provided. This resulted in incorrect DetectionResultpemistahl/lingua-py#192

  • Some minor bugs in the WASM module have been fixed to prepare the first release of Lingua for JavaScript.

... (truncated)

Changelog

Sourced from lingua-language-detector's changelog.

Lingua 1.7.2 (released on 27 May 2025)

Bug Fixes

  • In low accuracy mode, the language detector could produce random results for certain kinds of text. This has been fixed.

Lingua 1.7.1 (released on 21 Mar 2025)

Bug Fixes

  • The library failed to build when only a subset of language features was selected when declaring the dependency. This has been fixed. (#452)

Lingua 1.7.0 (released on 20 Mar 2025)

Features

  • This release introduces an absolute confidence metric based on unique and most common ngrams for each supported language. It allows to build a language detector from a single language only. Such a detector serves as a binary classifier, telling you whether some text is written in your selected language or not. (#413)

Improvements

  • The new absolute confidence metric helps to improve accuracy in low accuracy mode. The mean of average detection accuracy (single words, word pairs and sentences combined) increases from 77% to 80%.

  • The rule-based algorithm for the recognition of Japanese texts has been improved. Texts including both Japanese and Chinese characters are now classified more often correctly as Japanese instead of Chinese. (#406)

  • The characters Щщ are now correctly identified as possible indicators for the Ukrainian language, leading to slightly higher accuracy when identifying Ukrainian texts.

  • The accuracy_reports binary now supports the arguments --detectors and --languages, allowing to select only a specific subset of detector / language combinations.

Bug Fixes

  • Text spans created by LanguageDetector.detect_multiple_languages_of() sometimes skipped characters in the last span. This has been fixed.

  • The tokenization of texts written in the Devanagari alphabet was flawed. This has been fixed, leading to better detection accuracy for Hindi and Marathi.

Miscellaneous

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [lingua-language-detector](https://github.com/pemistahl/lingua-rs) from 1.4.2 to 2.1.1.
- [Release notes](https://github.com/pemistahl/lingua-rs/releases)
- [Changelog](https://github.com/pemistahl/lingua-rs/blob/main/RELEASE_NOTES.md)
- [Commits](https://github.com/pemistahl/lingua-rs/commits)

---
updated-dependencies:
- dependency-name: lingua-language-detector
  dependency-version: 2.1.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jun 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants