Skip to main content

What is this package

The languagedet package implements language detection using stopwords and trigrams. It has three clases:

  • languagedet.stopwords.StopWordsDetector: detects language using stopword lists.

  • languagedet.textcat.TextCatDetector: uses the libexttexcat library for language detection.

  • languagedet.mixed.MixedDetector: uses StopWordsDetector and if it fails then use TextCatDetector.

Intallation

This package depends on the libexttextcat library. To install it in Ubuntu:

$ sudo apt-get install build-essential python-dev libexttextcat-dev

Now you can install using pip:

$ pip install languagedet

Example

In [1]: from languagedet.mixed import MixedDetector

In [2]: det = MixedDetector()

In [3]: det.available
Out[3]:
['fr',
 'en',
 'de',
 'it',
 'da',
 'fi',
 'hu',
 'es',
 'ru',
 'nl',
 'pt',
 'no',
 'tr',
 'sv']

In [4]: det('biblioteca para la detectar idioma')
Out[4]: 'es'

Changelog

Version 0.1.1

  • Modified setup.py.

  • Added a README.txt.

  • Added a MANIFEST.in to include data files missing in version 0.1.

  • Removed dependencies form cython and setuptools-cython.

Version 0.1

  • Initial version.

  • Support for language detectión using stopwords and the exttextcat library.

Metadata

Release files for languagedet 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for languagedet 0.1.1
File Size Uploaded Provenance Actions
languagedet-0.1.1.tar.gz 44.1 kB Without provenance Details for languagedet-0.1.1.tar.gz

Release files / languagedet-0.1.1.tar.gz

Download URL languagedet-0.1.1.tar.gz
Size 44.1 kB
Tags Source
SHA-256 checksum
How to use checksums
836bf86cd0add39db628702a5d46a29f90b36733dd01d021704a664233810558
BLAKE2b-256 checksum
How to use checksums
d3496bc919fd6b3fb000daa795b597bb1472f5cf9f4616e9f9d043a93d4d75ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for languagedet 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file No provenance

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