Skip to content

Commit

Permalink
Prepare release 1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
pemistahl committed Sep 29, 2022
1 parent 66c1be8 commit 3d4f4e0
Show file tree
Hide file tree
Showing 13 changed files with 105 additions and 23 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[![docs](https://img.shields.io/badge/docs-API-yellowgreen)](https://pemistahl.github.io/lingua-py)

![supported Python versions](https://img.shields.io/badge/Python-%3E%3D%203.8-blue)
[![pypi](https://img.shields.io/badge/PYPI-v1.1.2-blue)](https://pypi.org/project/lingua-language-detector)
[![pypi](https://img.shields.io/badge/PYPI-v1.1.3-blue)](https://pypi.org/project/lingua-language-detector)
[![license](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)

## 1. What does this library do?
Expand Down Expand Up @@ -2752,7 +2752,7 @@ your own knowledge of the input text is always preferable.
If you want to reproduce the accuracy results above, you can generate the test
reports yourself for all classifiers and languages by executing:

poetry install --extras "fasttext langdetect langid gcld3 pycld2 pandas matplotlib seaborn"
poetry install --only script
poetry run python3 scripts/accuracy_reporter.py

For each detector and language, a test report file is then written into
Expand Down
11 changes: 11 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## Lingua 1.1.3 (released on 29 Sep 2022)

### Improvements

- An `__all__` variable has been added indicating which types are exported
by the library. This helps with type checking programs using Lingua. Big
thanks to @bscan for the pull request. (#76)
- The rule-based language filter has been improved for German texts. (#71)
- A further bottleneck in the code has been removed, making language detection
30 % faster compared to version 1.1.2, approximately.

## Lingua 1.1.2 (released on 06 Sep 2022)

### Improvements
Expand Down
Binary file modified images/plots/barplot-average.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/plots/barplot-sentences.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/plots/barplot-single-words.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/plots/barplot-word-pairs.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/plots/boxplot-average.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/plots/boxplot-sentences.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/plots/boxplot-single-words.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/plots/boxplot-word-pairs.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 18 additions & 18 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

73 changes: 72 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

[tool.poetry]
name = "lingua-language-detector"
version = "1.1.2"
version = "1.1.3"
description = "An accurate natural language detection library, suitable for long and short text alike"
authors = ["Peter M. Stahl <pemistahl@gmail.com>"]
license = "Apache-2.0"
Expand All @@ -25,6 +25,77 @@ repository = "https://github.com/pemistahl/lingua-py"
packages = [
{ include = "lingua" }
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: Afrikaans",
"Natural Language :: Arabic",
"Natural Language :: Basque",
"Natural Language :: Bengali",
"Natural Language :: Bosnian",
"Natural Language :: Bulgarian",
"Natural Language :: Catalan",
"Natural Language :: Chinese (Simplified)",
"Natural Language :: Chinese (Traditional)",
"Natural Language :: Croatian",
"Natural Language :: Czech",
"Natural Language :: Danish",
"Natural Language :: Dutch",
"Natural Language :: English",
"Natural Language :: Esperanto",
"Natural Language :: Finnish",
"Natural Language :: French",
"Natural Language :: German",
"Natural Language :: Greek",
"Natural Language :: Hebrew",
"Natural Language :: Hindi",
"Natural Language :: Hungarian",
"Natural Language :: Icelandic",
"Natural Language :: Indonesian",
"Natural Language :: Irish",
"Natural Language :: Italian",
"Natural Language :: Japanese",
"Natural Language :: Korean",
"Natural Language :: Latin",
"Natural Language :: Latvian",
"Natural Language :: Lithuanian",
"Natural Language :: Macedonian",
"Natural Language :: Malay",
"Natural Language :: Marathi",
"Natural Language :: Norwegian",
"Natural Language :: Panjabi",
"Natural Language :: Persian",
"Natural Language :: Polish",
"Natural Language :: Portuguese",
"Natural Language :: Romanian",
"Natural Language :: Russian",
"Natural Language :: Serbian",
"Natural Language :: Slovak",
"Natural Language :: Slovenian",
"Natural Language :: Spanish",
"Natural Language :: Swedish",
"Natural Language :: Tamil",
"Natural Language :: Telugu",
"Natural Language :: Thai",
"Natural Language :: Turkish",
"Natural Language :: Ukrainian",
"Natural Language :: Urdu",
"Natural Language :: Vietnamese",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Internationalization",
"Topic :: Software Development :: Localization",
"Topic :: Text Processing :: Linguistic",
"Typing :: Typed"
]

[tool.poetry.dependencies]
python = "^3.8"
Expand Down
4 changes: 2 additions & 2 deletions scripts/accuracy_plot_drawer.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ class AccuracyPlotDrawer:
"langid 1.1.6",
"fastText 0.9.2",
"langdetect 1.0.9",
"Lingua 1.1.2\nlow accuracy mode",
"Lingua 1.1.2\nhigh accuracy mode",
"Lingua 1.1.3\nlow accuracy mode",
"Lingua 1.1.3\nhigh accuracy mode",
)
_hatches = ("-", "/", "x", "+", ".", "*", "O")
_palette = (
Expand Down

0 comments on commit 3d4f4e0

Please sign in to comment.