Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

short_language_detection-0.1.4.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

short_language_detection-0.1.4-py3-none-any.whl (2.3 MB view details)

Uploaded Python 3

File details

Details for the file short_language_detection-0.1.4.tar.gz.

File metadata

File hashes

Hashes for short_language_detection-0.1.4.tar.gz
Algorithm Hash digest
SHA256 a61b7f347e04aa2023f27f32a8e8a523d8841d6f7957c0cb4bead81f064193b2
MD5 6e8e6b4270275f96c9021452bb11b3ad
BLAKE2b-256 61d9de3d846b2b4fa14f1f0d9c48ba9a98a250e7a9de4b0848f82a65f279cfff

See more details on using hashes here.

File details

Details for the file short_language_detection-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for short_language_detection-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f867d7c0291c8e6a88a0b30ed2d8959004956efcedb51fecba82a4d3f6776632
MD5 5c2cf6fd3a03b4dfcc00ab11cd4273fd
BLAKE2b-256 68bf9fac14590112d2e24f5de5d68c09216821525385fdc7a15d0bc5924fbec8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page