Skip to content

Commit 014bb68

Browse files
committed
Update version and release notes
1 parent ec897ae commit 014bb68

File tree

7 files changed

+20
-21
lines changed

7 files changed

+20
-21
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ name: Release
1818
on:
1919
push:
2020
tags:
21-
- v1.8.*
21+
- v1.7.*
2222

2323
jobs:
2424
python-linux-release-build:

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
[package]
1616
name = "lingua"
17-
version = "1.7.1"
17+
version = "1.7.2"
1818
authors = ["Peter M. Stahl <[email protected]>"]
1919
description = """
2020
An accurate natural language detection library, suitable for short text and mixed-language text

README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
[![docs.rs](https://docs.rs/lingua/badge.svg)](https://docs.rs/lingua)
88
[![codecov](https://codecov.io/gh/pemistahl/lingua-rs/branch/main/graph/badge.svg)](https://codecov.io/gh/pemistahl/lingua-rs)
99
[![supported languages](https://img.shields.io/badge/supported%20languages-75-green.svg)](#3-which-languages-are-supported)
10-
[![dependency status](https://deps.rs/crate/lingua/1.7.1/status.svg)](https://deps.rs/crate/lingua/1.7.1)
10+
[![dependency status](https://deps.rs/crate/lingua/1.7.2/status.svg)](https://deps.rs/crate/lingua/1.7.2)
1111
[![downloads](https://img.shields.io/crates/d/lingua.svg)](https://crates.io/crates/lingua)
1212
[![crates.io](https://img.shields.io/crates/v/lingua.svg)](https://crates.io/crates/lingua)
13-
[![lib.rs](https://img.shields.io/badge/lib.rs-v1.7.1-blue)](https://lib.rs/crates/lingua)
13+
[![lib.rs](https://img.shields.io/badge/lib.rs-v1.7.2-blue)](https://lib.rs/crates/lingua)
1414
[![license](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
1515
</div>
1616

@@ -435,7 +435,7 @@ Add *Lingua* to your `Cargo.toml` file like so:
435435

436436
```toml
437437
[dependencies]
438-
lingua = "1.7.1"
438+
lingua = "1.7.2"
439439
```
440440

441441
By default, this will download the language model dependencies for all 75 supported languages,
@@ -445,7 +445,7 @@ separate features in your `Cargo.toml`:
445445

446446
```toml
447447
[dependencies]
448-
lingua = { version = "1.7.1", default-features = false, features = ["french", "italian", "spanish"] }
448+
lingua = { version = "1.7.2", default-features = false, features = ["french", "italian", "spanish"] }
449449
```
450450

451451
## 9. How to build?
@@ -636,12 +636,8 @@ or unlikely to occur.
636636

637637
If you build a `LanguageDetector` from one language only it will operate in single-language mode.
638638
This means the detector will try to find out whether a given text has been written in the given language or not.
639-
If not, then `None` will be returned, otherwise the given language.
640-
641-
In single-language mode, the detector decides based on a set of unique and most common n-grams which
642-
have been collected beforehand for every supported language. It turns out that unique and most common
643-
n-grams help to improve accuracy in low accuracy mode, so they are used for that mode as well. In high
644-
accuracy mode, however, they do not make a significant difference, that's why they are left out.
639+
If not, then `None` will be returned, otherwise the given language. In single-language mode, the detector decides based on a set of unique and most common n-grams which
640+
have been collected beforehand for every supported language.
645641

646642
### 10.7 Detection of multiple languages in mixed-language texts
647643

README_PYPI.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![codecov](https://codecov.io/gh/pemistahl/lingua-rs/branch/main/graph/badge.svg)](https://codecov.io/gh/pemistahl/lingua-rs)
77
[![supported languages](https://img.shields.io/badge/supported%20languages-75-green.svg)](#3-which-languages-are-supported)
88
![supported Python versions](https://img.shields.io/badge/Python-%3E%3D%203.10-blue)
9-
[![pypi](https://img.shields.io/badge/PYPI-v2.1.0-blue)](https://pypi.org/project/lingua-language-detector)
9+
[![pypi](https://img.shields.io/badge/PYPI-v2.1.1-blue)](https://pypi.org/project/lingua-language-detector)
1010
[![license](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
1111
</div>
1212

@@ -559,12 +559,8 @@ or unlikely to occur.
559559

560560
If you build a `LanguageDetector` from one language only it will operate in single-language mode.
561561
This means the detector will try to find out whether a given text has been written in the given language or not.
562-
If not, then `None` will be returned, otherwise the given language.
563-
564-
In single-language mode, the detector decides based on a set of unique and most common n-grams which
565-
have been collected beforehand for every supported language. It turns out that unique and most common
566-
n-grams help to improve accuracy in low accuracy mode, so they are used for that mode as well. In high
567-
accuracy mode, however, they do not make a significant difference, that's why they are left out.
562+
If not, then `None` will be returned, otherwise the given language. In single-language mode, the detector decides based on a set of unique and most common n-grams which
563+
have been collected beforehand for every supported language.
568564

569565
### 11.7 Detection of multiple languages in mixed-language texts
570566

RELEASE_NOTES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## Lingua 1.7.2 (released on 27 May 2025)
2+
3+
### Bug Fixes
4+
5+
- In low accuracy mode, the language detector could produce random results for
6+
certain kinds of text. This has been fixed.
7+
18
## Lingua 1.7.1 (released on 21 Mar 2025)
29

310
### Bug Fixes

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
[project]
1717
name = "lingua-language-detector"
18-
version = "2.1.0"
18+
version = "2.1.1"
1919
authors = [{name = "Peter M. Stahl", email = "[email protected]"}]
2020
description = "An accurate natural language detection library, suitable for short text and mixed-language text"
2121
readme = "README_PYPI.md"

0 commit comments

Comments
 (0)