Skip to main content

A simple language detection library for short texts.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

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

shortlanguedetect-0.1.0.tar.gz (2.3 MB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: shortlanguedetect-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.2

File hashes

Hashes for shortlanguedetect-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5beff62ab318ee846d56ea9a2aac670e3b8145a5e81275e6f866d788043c2048
MD5 ec3af4501972207f4743bf81e279b67f
BLAKE2b-256 f1b7db33a2c21333f890af1689252a983a78ad500fafa553bd9375b36753c24b

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