| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| lingua-1.2.0-javadoc.jar | 2022-06-07 | 348.9 kB | |
| lingua-1.2.0-sources.jar | 2022-06-07 | 34.5 kB | |
| lingua-1.2.0-with-dependencies.jar | 2022-06-07 | 109.1 MB | |
| lingua-1.2.0.jar | 2022-06-07 | 80.4 MB | |
| Lingua 1.2.0 source code.tar.gz | 2022-06-07 | 97.8 MB | |
| Lingua 1.2.0 source code.zip | 2022-06-07 | 98.2 MB | |
| README.md | 2022-06-07 | 1.1 kB | |
| Totals: 7 Items | 385.8 MB | 0 | |
Features
- The library can now be used as a Java 9 module. Thanks to @Marcono1234 for helping with the implementation. (#120, [#138])
- The new method
LanguageDetectorBuilder.withLowAccuracyMode()has been introduced. By activating it, detection accuracy for short text is reduced in favor of a smaller memory footprint and faster detection performance. (#136)
Improvements
- The memory footprint has been reduced significantly by applying several internal optimizations. Thanks to @Marcono1234, @fvasco and @sigpwned for their help. (#101, [#127])
- Several language model files have become obsolete and could be deleted without decreasing detection accuracy. This results in a smaller memory footprint and a 36% smaller jar file.
Bug Fixes
- A bug in the rule engine has been fixed that caused incorrect language detection for certain texts. Thanks to @bdecarne who has found it.
Other changes
- Due to a refactoring of how the internal thread pool works, the method
LanguageDetector.destroy()has been deprecated in favor of the newly introduced methodLanguageDetector.unloadLanguageModels().