Skip to content

Commit

Permalink
feat(project): Add Python 3.8-3.11 support only
Browse files Browse the repository at this point in the history
chore: Update pyproject.toml to include Python version constraint

chore: Update GitHub Actions workflow to remove Python 3.12
  • Loading branch information
sudoskys committed Jan 18, 2024
1 parent 13e5e56 commit 2ca55b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,11 @@ from fast_langdetect import detect, parse_sentence, detect_multilingual
print(detect("Hello, world!"))
# {'lang': 'en', 'score': 0.1520957201719284}

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

print(detect_multilingual("Hello, world!你好世界!Привет, мир!"))
# [{'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}]

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

## Accuracy
Expand Down

0 comments on commit 2ca55b6

Please sign in to comment.