Skip to content

Releases: pemistahl/lingua-go

Lingua 1.4.0

05 Sep 15:22
Compare
Choose a tag to compare

Features

  • The new functions GetIsoCode639_1FromValue() and GetIsoCode639_3FromValue() have been introduced to return the proper IsoCode639_1 and IsoCode639_3 for a given name string. (#44)

Changes

  • The functions GetLanguageFromIsoCode639_1() and GetLanguageFromIsoCode639_3() now correctly return Unknown 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

09 Jun 07:34
Compare
Choose a tag to compare

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

03 Feb 12:44
Compare
Choose a tag to compare

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

30 Jan 09:44
Compare
Choose a tag to compare

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

08 Jan 00:08
Compare
Choose a tag to compare

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

01 Jan 21:36
Compare
Choose a tag to compare

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

27 Dec 22:07
Compare
Choose a tag to compare

Bug Fixes

  • Under certain circumstances, calling the method LanguageDetector.DetectMultipleLanguagesOf() caused an index error. This has been fixed.

Lingua 1.2.1

13 Dec 20:34
Compare
Choose a tag to compare

Bug Fixes

  • A misconfiguration in a go.mod file caused errors when trying to download the library via the go get command. This has been fixed. Thanks to @BenStigsen for the pointer. (#23)

Lingua 1.2.0

12 Dec 21:45
Compare
Choose a tag to compare

Features

  • The new method LanguageDetector.DetectMultipleLanguagesOf() has been introduced. It allows to detect multiple languages in mixed-language text. (#9)

Lingua 1.1.1

22 Nov 09:02
Compare
Choose a tag to compare

Documentation

  • Some documentation mistakes have been fixed and missing information has been added.