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.9.tar.gz (2.4 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.9-py3-none-any.whl (2.3 MB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for short_language_detection-0.1.9.tar.gz
Algorithm Hash digest
SHA256 d3a06a9794e35d69f311ee17632d0748a80785bc9477584f811e534f8748ca5f
MD5 b37cce4d79850da17b4bb6c465807666
BLAKE2b-256 5feebb090ee1813840099f3e22b768eeefa2a3da24fe5a7b4c7f79f5f8eb18bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for short_language_detection-0.1.9.tar.gz:

Publisher: python-publish.yml on Jourdelune/short_language_detection

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for short_language_detection-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 18c875c268b125d2001513bcec3c8a15ca3a3d169f5757a5874a82166c86bc8e
MD5 d3dd7eb2316a421a7400e109279bacda
BLAKE2b-256 d88ee9da2927e9738b48e625c4e1ff8d9fdb24ccb3bc9b5552951c4bc9d99f3e

See more details on using hashes here.

Provenance

The following attestation bundles were made for short_language_detection-0.1.9-py3-none-any.whl:

Publisher: python-publish.yml on Jourdelune/short_language_detection

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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