Skip to content

Commit 36f3150

Browse files
committed
🚀 fix: Update README.md with fast-langdetect information
1 parent 727eeb1 commit 36f3150

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ pip install fast-langdetect
3636
from fast_langdetect import detect_langs
3737

3838
print(detect_langs("Hello, world!"))
39-
# [en:0.9999961853027344]
39+
# EN
4040

4141
print(detect_langs("Привет, мир!"))
42-
# [ru:0.9999961853027344]
42+
# RU
4343

4444

4545
print(detect_langs("你好,世界!"))
46-
# [zh:0.9999961853027344]
46+
# ZH
4747

4848
```
4949

feature_test/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
# @Author : sudoskys
44
# @File : __init__.py.py
55
# @Software: PyCharm
6-
from fast_langdetect import detect, detect_multilingual
6+
from fast_langdetect import detect, detect_multilingual, detect_langs
77
from fast_langdetect import parse_sentence
88

99
print(parse_sentence("你好世界"))
1010
print(parse_sentence("你好世界!Hello, world!Привет, мир!"))
1111
print(detect_multilingual("Hello, world!你好世界!Привет, мир!"))
1212

1313
print(detect("hello world"))
14+
print(detect_langs("Привет, мир!"))

0 commit comments

Comments
 (0)