A simple language detection library for short texts.
Project description
Short Language Detection
This project is designed to detect the language of short text snippets. It uses machine learning models to accurately identify the language of a given input.
Features
- Detects language from short text inputs
- Supports multiple languages
- High accuracy and performance
Installation
To install the necessary dependencies, run:
pip install short-language-detection
Usage
To use the language detection model, run the following command:
import short_language_detection as sld
# Create a detector
predictor = sld.Detector()
print(
predictor.supported_languages
) # {'ro': 'ROMANIAN', 'ru': 'RUSSIAN', 'nl': 'DUTCH', ...}
# Detect the language of a text
print(predictor.detect("hello"))
# ({'language': 'ENGLISH', 'code': 'EN', 'score': 1.0, 'prefered': True, 'reliable': True},)
Contributing
We welcome contributions! Please fork the repository and submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
For any questions or suggestions, please open an issue or contact us at jourdelune863@gmail.com.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file short_language_detection-0.1.5.tar.gz.
File metadata
- Download URL: short_language_detection-0.1.5.tar.gz
- Upload date:
- Size: 2.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2497d5d1d63d70900a416cd1f08eb3ad1a212f1ea7878c9cbc7b6a7f979eaf04
|
|
| MD5 |
244579568fa8c114887968649f206d12
|
|
| BLAKE2b-256 |
4b705d10fd0b9ea7ccdb7dafab8d31abddbbcbae4f8ac58dd95c9fbaa61e1a49
|
Provenance
The following attestation bundles were made for short_language_detection-0.1.5.tar.gz:
Publisher:
python-publish.yml on Jourdelune/short_language_detection
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
short_language_detection-0.1.5.tar.gz -
Subject digest:
2497d5d1d63d70900a416cd1f08eb3ad1a212f1ea7878c9cbc7b6a7f979eaf04 - Sigstore transparency entry: 175136022
- Sigstore integration time:
-
Permalink:
Jourdelune/short_language_detection@0465d4b8d71ae22a0e8dc0e60c37a4b78a13bf67 -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/Jourdelune
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@0465d4b8d71ae22a0e8dc0e60c37a4b78a13bf67 -
Trigger Event:
release
-
Statement type:
File details
Details for the file short_language_detection-0.1.5-py3-none-any.whl.
File metadata
- Download URL: short_language_detection-0.1.5-py3-none-any.whl
- Upload date:
- Size: 2.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a0cfd8b2afc8ff5f4db7360ac2ca647e98cfdbe8e348713d6157e9735079321
|
|
| MD5 |
bf44f3e56bee5e18663e9e7fd19b2c57
|
|
| BLAKE2b-256 |
f817e2354ea023aa441de2c16ccf5a94eedd4026bb671e0565a820f0edca11f7
|
Provenance
The following attestation bundles were made for short_language_detection-0.1.5-py3-none-any.whl:
Publisher:
python-publish.yml on Jourdelune/short_language_detection
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
short_language_detection-0.1.5-py3-none-any.whl -
Subject digest:
0a0cfd8b2afc8ff5f4db7360ac2ca647e98cfdbe8e348713d6157e9735079321 - Sigstore transparency entry: 175136024
- Sigstore integration time:
-
Permalink:
Jourdelune/short_language_detection@0465d4b8d71ae22a0e8dc0e60c37a4b78a13bf67 -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/Jourdelune
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@0465d4b8d71ae22a0e8dc0e60c37a4b78a13bf67 -
Trigger Event:
release
-
Statement type: