Skip to content

Commit 5125087

Browse files
committed
Add fixes to documentation
1 parent 0555133 commit 5125087

File tree

5 files changed

+14
-17
lines changed

5 files changed

+14
-17
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
## 1. What does this library do?
1616

17-
Its task is simple: It tells you which language some provided textual data is written in.
17+
Its task is simple: It tells you which language some text is written in.
1818
This is very useful as a preprocessing step for linguistic data in natural language
1919
processing applications such as text classification and spell checking.
2020
Other use cases, for instance, might include routing e-mails to the right geographically
@@ -1816,7 +1816,7 @@ Erroneously classified as Dutch: 0.20%, Latin: 0.10%
18161816

18171817
## 7. How to add it to your project?
18181818

1819-
go get github.com/pemistahl/lingua-go@v1.1.0
1819+
go get github.com/pemistahl/lingua-go@v1.1.1
18201820

18211821
## 8. How to build?
18221822

@@ -1974,7 +1974,7 @@ confidence := detector.ComputeLanguageConfidence("languages are awesome", lingua
19741974
fmt.Printf("%.2f", confidence)
19751975

19761976
// Output:
1977-
// French: 0.32
1977+
// 0.32
19781978
```
19791979

19801980
The value that this method computes is a number between 0.0 and 1.0.

RELEASE_NOTES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## Lingua 1.1.1 (released on 22 Nov 2022)
2+
3+
### Documentation
4+
5+
- Some documentation mistakes have been fixed and missing information has been added.
6+
17
## Lingua 1.1.0 (released on 21 Nov 2022)
28

39
### Features

cmd/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.18
55
require (
66
github.com/abadojack/whatlanggo v1.0.1
77
github.com/jmhodges/gocld3 v0.0.0-20211031064447-cc40e88f7505
8-
github.com/pemistahl/lingua-go v1.0.5
8+
github.com/pemistahl/lingua-go v1.1.1
99
)
1010

1111
require (

doc.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Package lingua accurately detects the natural language of written text, be it lo
1919
2020
# What this library does
2121
22-
Its task is simple: It tells you which language some provided textual data is written in.
22+
Its task is simple: It tells you which language some text is written in.
2323
This is very useful as a preprocessing step for linguistic data in natural language
2424
processing applications such as text classification and spell checking.
2525
Other use cases, for instance, might include routing e-mails to the right geographically
@@ -77,13 +77,7 @@ Whatlanggo running over the data of Lingua's supported 75 languages.
7777
Additionally, I have added Google's CLD3 (https://github.com/google/cld3/) to the comparison
7878
with the help of the gocld3 bindings (https://github.com/jmhodges/gocld3). Languages that are not
7979
supported by CLD3 or Whatlanggo are simply ignored during the detection process.
80-
81-
The bar and box plots (https://github.com/pemistahl/lingua-go/blob/main/ACCURACY_PLOTS.md)
82-
show the measured accuracy values for all three performed tasks: Single word detection,
83-
word pair detection and sentence detection. Lingua clearly outperforms its contenders.
84-
Detailed statistics including mean, median and standard deviation values for each language
85-
and classifier are available in
86-
tabular form (https://github.com/pemistahl/lingua-go/blob/main/ACCURACY_TABLE.md) as well.
80+
Lingua clearly outperforms its contenders.
8781
8882
# Why it is better than other libraries
8983

example_test.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,10 @@ func Example_eagerLoading() {
137137
// can become better in such cases if you exclude certain languages from the
138138
// decision process or just explicitly include relevant languages.
139139
func Example_builderApi() {
140-
// Including all languages available in the library
141-
// consumes at least 2GB of memory and might
142-
// lead to slow runtime performance.
140+
// Include all languages available in the library.
143141
lingua.NewLanguageDetectorBuilder().FromAllLanguages()
144142

145-
// Include only languages that are not yet extinct
146-
// (= currently excludes Latin).
143+
// Include only languages that are not yet extinct (= currently excludes Latin).
147144
lingua.NewLanguageDetectorBuilder().FromAllSpokenLanguages()
148145

149146
// Include only languages written with Cyrillic script.

0 commit comments

Comments
 (0)