-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Chinese and Japanese language detection logic
Refactor code to correctly increment language counters and update logic for handling uncertainty between Chinese and Japanese languages. Adjust accuracy reports to reflect updated detection accuracy metrics.
- Loading branch information
1 parent
951c720
commit e3fee27
Showing
4 changed files
with
56 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
##### Chinese ##### | ||
|
||
>>> Accuracy on average: 73.12% | ||
>>> Accuracy on average: 100% | ||
|
||
>> Detection of 1000 single words (average length: 1 chars) | ||
Accuracy: 61.1% | ||
Erroneously classified as Unknown: 38.9% | ||
Accuracy: 100% | ||
Erroneously classified as | ||
|
||
>> Detection of 1000 word pairs (average length: 2 chars) | ||
Accuracy: 58.4% | ||
Erroneously classified as Unknown: 41.6% | ||
Accuracy: 100% | ||
Erroneously classified as | ||
|
||
>> Detection of 729 sentences (average length: 48 chars) | ||
Accuracy: 99.86% | ||
Erroneously classified as Unknown: 0.13% | ||
Accuracy: 100% | ||
Erroneously classified as | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters