Skip to content

Commit 2ca55b6

Browse files
committed
feat(project): Add Python 3.8-3.11 support only
chore: Update pyproject.toml to include Python version constraint chore: Update GitHub Actions workflow to remove Python 3.12
1 parent 13e5e56 commit 2ca55b6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,11 @@ from fast_langdetect import detect, parse_sentence, detect_multilingual
5353
print(detect("Hello, world!"))
5454
# {'lang': 'en', 'score': 0.1520957201719284}
5555

56-
print(parse_sentence("你好世界!Hello, world!Привет, мир!"))
57-
# [{'text': '你好世界!Hello, world!', 'lang': 'ZH', 'length': 18}, {'text': 'Привет, мир!', 'lang': 'UK', 'length': 12}, {'text': '', 'lang': 'EN', 'length': 0}]
58-
5956
print(detect_multilingual("Hello, world!你好世界!Привет, мир!"))
6057
# [{'lang': 'ru', 'score': 0.39008623361587524}, {'lang': 'zh', 'score': 0.18235979974269867}, {'lang': 'ja', 'score': 0.08473210036754608}, {'lang': 'sr', 'score': 0.057975586503744125}, {'lang': 'en', 'score': 0.05422825738787651}]
6158

59+
print(parse_sentence("你好世界!Hello, world!Привет, мир!"))
60+
# [{'text': '你好世界!Hello, world!', 'lang': 'ZH', 'length': 18}, {'text': 'Привет, мир!', 'lang': 'UK', 'length': 12}, {'text': '', 'lang': 'EN', 'length': 0}]
6261
```
6362

6463
## Accuracy

0 commit comments

Comments
 (0)