Skip to main content

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)

Source distribution for short-language-detection 0.1.9
File Size Uploaded
short_language_detection-0.1.9.tar.gz 2.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for short-language-detection 0.1.9
File Interpreter ABI Platform
short_language_detection-0.1.9-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page