Skip to content

Commit e491416

Browse files
author
guoyongzhi
committed
update compare benchmarks
1 parent 159467b commit e491416

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,21 +63,21 @@ We tested four language identification packages: `LanguageIdentification.jl` (th
6363
We calculated the average accuracy for the languages supported by multiple packages, and the results are as follows:
6464
- tatoeba
6565

66-
| | 50 languages | 39 languages | 35 languages | 24 languages |
67-
|-------------------------------|--------------|--------------|--------------|--------------|
68-
| **LanguageIdentification.jl** | **94.58%** | **94.24%** | **93.77%** | **95.87%** |
69-
| Languages.jl | - | 74.72% | 73.65% | 74.14% |
70-
| LanguageDetect.jl | - | - | 80.81% | 80.61% |
71-
| LanguageFinder.jl | - | - | - | 79.70% |
66+
| | 50 languages | 39 languages | 38 languages | 35 languages | 24 languages |
67+
|-------------------------------|--------------|--------------|--------------|--------------|--------------|
68+
| LanguageIdentification.jl | **94.58%** | **94.24%** | **93.89%** | **93.77%** | **95.87%** |
69+
| Languages.jl | - | 74.72% | - | 73.65% | 74.14% |
70+
| LanguageDetect.jl | - | - | 79.72% | 80.81% | 80.61% |
71+
| LanguageFinder.jl | - | - | - | - | 79.70% |
7272

7373
- wikipedia
7474

75-
| | 50 languages | 39 languages | 35 languages | 24 languages |
76-
|-------------------------------|--------------|--------------|--------------|--------------|
77-
| **LanguageIdentification.jl** | **98.20%** | **98.22%** | **98.09%** | **98.79%** |
78-
| Languages.jl | - | 95.12% | 94.80% | 95.02% |
79-
| LanguageDetect.jl | - | - | 85.49% | 86.23% |
80-
| LanguageFinder.jl | - | - | - | 94.75% |
75+
| | 50 languages | 39 languages | 38 languages | 35 languages | 24 languages |
76+
|-------------------------------|--------------|--------------|--------------|--------------|--------------|
77+
| LanguageIdentification.jl | **98.20%** | **98.22%** | **98.14%** | **98.09%** | **98.79%** |
78+
| Languages.jl | - | 95.12% | - | 94.80% | 95.02% |
79+
| LanguageDetect.jl | - | - | 85.36% | 85.49% | 86.23% |
80+
| LanguageFinder.jl | - | - | - | - | 94.75% |
8181

8282
# Parameter Tuning
8383
You can manually initialize the package using the `LanguageIdentification.initialize` function. By adjusting the parameters, you can achieve different balances between accuracy, speed, and memory usage. The default setting is `ngram=1:4`, `cutoff=0.85`, and `vocabulary=1000:5000`. However, this setting may not be optimal for your specific use case.

0 commit comments

Comments
 (0)