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.
Metadata
Release files for short-language-detection 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| short_language_detection-0.1.9.tar.gz | 2.4 MB | With provenance | Details for short_language_detection-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| short_language_detection-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for short_language_detection-0.1.9-py3-none-any.whl |
Total release size: 4.7 MB
Release files / short_language_detection-0.1.9.tar.gz
| Download URL | short_language_detection-0.1.9.tar.gz |
|---|---|
| Size | 2.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d3a06a9794e35d69f311ee17632d0748a80785bc9477584f811e534f8748ca5f
|
|
BLAKE2b-256 checksum How to use checksums |
5feebb090ee1813840099f3e22b768eeefa2a3da24fe5a7b4c7f79f5f8eb18bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 2, 2025.
Transparency logRelease files / short_language_detection-0.1.9-py3-none-any.whl
| Download URL | short_language_detection-0.1.9-py3-none-any.whl |
|---|---|
| Size | 2.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
18c875c268b125d2001513bcec3c8a15ca3a3d169f5757a5874a82166c86bc8e
|
|
BLAKE2b-256 checksum How to use checksums |
d88ee9da2927e9738b48e625c4e1ff8d9fdb24ccb3bc9b5552951c4bc9d99f3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 2, 2025.
Transparency logSecurity for short-language-detection 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for short_language_detection-0.1.9.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 2, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.