You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bazarr/libs/guess_language_spirit-0.5.3.../METADATA

72 lines
1.9 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

Metadata-Version: 2.1
Name: guess-language-spirit
Version: 0.5.3
Summary: Guess the natural language of a text
Home-page: https://bitbucket.org/spirit/guess_language
Download-URL: https://bitbucket.org/spirit/guess_language/downloads
Author: spirit
Author-email: hiddenspirit@gmail.com
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
guess_language Guess the natural language of a text
=====================================================
Example usage
-------------
>>> from guess_language import guess_language
>>> guess_language("Ces eaux regorgent de renégats et de voleurs.")
'fr'
>>> guess_language("Tienes que seguir tu corazón.")
'es'
>>> guess_language("いいえ!忍者がいます")
'ja'
>>> not guess_language("??")
True
If your text is less than 20 characters long,
you need `PyEnchant <http://packages.python.org/pyenchant>`_
and the appropriate dictionaries installed:
>>> guess_language("Hello, World!")
'en'
Installation
------------
To install the package for Python 3, use::
$ ./setup.py install
To install the package for Python 2, use::
$ python2 setup.py install
To install with pip, use::
$ pip install guess_language-spirit
On Windows, you may use one of the MSI binary packages provided on the
`download page <https://bitbucket.org/spirit/guess_language/downloads>`_.
Prerequisites
-------------
- `Python 3.2+ <http://www.python.org>`_ (or 2.7)
- `PyEnchant <http://packages.python.org/pyenchant>`_ (optional)
- `lib3to2 <https://bitbucket.org/amentajo/lib3to2>`_
(if installing for Python 2)
This is a Python 3 version of
`guess-language <http://code.google.com/p/guess-language>`_
with further improvements.