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()

# Detect the language of a text
print(predictor.detect("hello the world"))
# ({'language': 'en', 'score': 1.0, 'prefered': True, 'reliable': True}, {'language': 'sk', 'score': 0.33, 'prefered': False, 'reliable': False})

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.0.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.0-py3-none-any.whl (2.3 MB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for short_language_detection-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6eda263aeaffe9d1c7e39cab94dbee029ed472f3eae9c5829d11b6c2fd219bec
MD5 bcb5dec8f2134aa124559eddb368db1b
BLAKE2b-256 8d40aab273f1bcc02c25b80fd4c0c72088166958cba510ef3ca0ff0f7bffe21a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for short_language_detection-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a9400a51e9fbae4f4ffe354ec1af70e0f7fcf000e0f44ac76eabdb423606b412
MD5 ea024e7f1634a886fcad8c42bca7fc4f
BLAKE2b-256 777f306f979af7137c1cfad676cd30dbb234fc05202ce6a32a3e10d5fde23bd4

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