Releases: pemistahl/lingua-go
Releases · pemistahl/lingua-go
Lingua 1.4.0
Features
- The new functions
GetIsoCode639_1FromValue()
andGetIsoCode639_3FromValue()
have been introduced to return the properIsoCode639_1
andIsoCode639_3
for a given name string. (#44)
Changes
- The functions
GetLanguageFromIsoCode639_1()
andGetLanguageFromIsoCode639_3()
now correctly returnUnknown
instead of-1
if a language cannot be found for the given iso code. (#44)
Bug Fixes
- The method
LanguageDetector.DetectMultipleLanguagesOf()
returned wrong values for start and end indices for texts consisting of only a single word. This has been fixed. (#43)
Lingua 1.3.4
Bug Fixes
- When trying to detect multiple languages in a text consisting of only a single word, a panic occurred. This has been fixed. (#41)
Lingua 1.3.3
Bug Fixes
- For long input texts, a panic occurred while computing the confidence values due to an accidental division by zero. This has been fixed. (#27)
Lingua 1.3.2
Improvements
- After applying some internal optimizations, language detection is now faster, at least between 20% and 30%, approximately. For long input texts, the speed improvement is greater than for short input texts.
Lingua 1.3.1
Bug Fixes
- For long input texts, an error occurred while computing the confidence values due to numerical underflow when converting probabilities. This has been fixed.
Lingua 1.3.0
Improvements
- The min-max normalization method for the confidence values has been replaced with applying the softmax function. This gives more realistic probabilities. (#25)
Lingua 1.2.2
Bug Fixes
- Under certain circumstances, calling the method
LanguageDetector.DetectMultipleLanguagesOf()
caused an index error. This has been fixed.
Lingua 1.2.1
Bug Fixes
- A misconfiguration in a
go.mod
file caused errors when trying to download the library via thego get
command. This has been fixed. Thanks to @benstigsen for the pointer. (#23)
Lingua 1.2.0
Features
- The new method
LanguageDetector.DetectMultipleLanguagesOf()
has been introduced. It allows to detect multiple languages in mixed-language text. (#9)
Lingua 1.1.1
Documentation
- Some documentation mistakes have been fixed and missing information has been added.