File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,14 @@ pip install fast-langdetect
36
36
from fast_langdetect import detect_langs
37
37
38
38
print (detect_langs(" Hello, world!" ))
39
- # [en:0.9999961853027344]
39
+ # EN
40
40
41
41
print (detect_langs(" Привет, мир!" ))
42
- # [ru:0.9999961853027344]
42
+ # RU
43
43
44
44
45
45
print (detect_langs(" 你好,世界!" ))
46
- # [zh:0.9999961853027344]
46
+ # ZH
47
47
48
48
```
49
49
Original file line number Diff line number Diff line change 3
3
# @Author : sudoskys
4
4
# @File : __init__.py.py
5
5
# @Software: PyCharm
6
- from fast_langdetect import detect , detect_multilingual
6
+ from fast_langdetect import detect , detect_multilingual , detect_langs
7
7
from fast_langdetect import parse_sentence
8
8
9
9
print (parse_sentence ("你好世界" ))
10
10
print (parse_sentence ("你好世界!Hello, world!Привет, мир!" ))
11
11
print (detect_multilingual ("Hello, world!你好世界!Привет, мир!" ))
12
12
13
13
print (detect ("hello world" ))
14
+ print (detect_langs ("Привет, мир!" ))
You can’t perform that action at this time.
0 commit comments