{ "info": { "author": "Michal Mimino Danilak", "author_email": "michal.danilak@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3" ], "description": "langdetect\n==========\n\nPort of Google's [language-detection](https://code.google.com/p/language-detection/) library (version from 03/03/2014) to Python.\n\n\nInstallation\n============\n\n $ pip install langdetect\n\nSupported Python versions 2.6, 2.7, 3.x.\n\n\nLanguages\n=========\n\n``langdetect`` supports 55 languages out of the box ([ISO 639-1 codes](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)):\n\n af, ar, bg, bn, ca, cs, cy, da, de, el, en, es, et, fa, fi, fr, gu, he,\n hi, hr, hu, id, it, ja, kn, ko, lt, lv, mk, ml, mr, ne, nl, no, pa, pl,\n pt, ro, ru, sk, sl, so, sq, sv, sw, ta, te, th, tl, tr, uk, ur, vi, zh-cn, zh-tw\n\n\nBasic usage\n===========\n\nTo detect the language of the text:\n\n```python\n>>> from langdetect import detect\n>>> detect(\"War doesn't show who's right, just who's left.\")\n'en'\n>>> detect(\"Ein, zwei, drei, vier\")\n'de'\n```\n\nTo find out the probabilities for the top languages:\n\n```python\n>>> from langdetect import detect_langs\n>>> detect_langs(\"Otec matka syn.\")\n[sk:0.572770823327, pl:0.292872522702, cs:0.134356653968]\n```\n\n**NOTE**\n\nLanguage detection algorithm is non-deterministic, which means that if you try to run it on a text which is either too short or too ambiguous, you might get different results everytime you run it.\n\nTo enforce consistent results, call following code before the first language detection:\n\n```python\nfrom langdetect import DetectorFactory\nDetectorFactory.seed = 0\n```\n\nHow to add new language?\n========================\n\nYou need to create a new language profile. The easiest way to do it is to use the [langdetect.jar](https://github.com/shuyo/language-detection/raw/master/lib/langdetect.jar) tool, which can generate language profiles from Wikipedia abstract database files or plain text.\n\nWikipedia abstract database files can be retrieved from \"Wikipedia Downloads\" ([http://download.wikimedia.org/](http://download.wikimedia.org/)). They form '(language code)wiki-(version)-abstract.xml' (e.g. 'enwiki-20101004-abstract.xml' ).\n\nusage: ``java -jar langdetect.jar --genprofile -d [directory path] [language codes]``\n\n- Specify the directory which has abstract databases by -d option.\n- This tool can handle gzip compressed file.\n\nRemark: The database filename in Chinese is like 'zhwiki-(version)-abstract-zh-cn.xml' or zhwiki-(version)-abstract-zh-tw.xml', so that it must be modified 'zh-cnwiki-(version)-abstract.xml' or 'zh-twwiki-(version)-abstract.xml'.\n\nTo generate language profile from a plain text, use the genprofile-text command.\n\nusage: ``java -jar langdetect.jar --genprofile-text -l [language code] [text file path]``\n\nFor more details see [language-detection Wiki](https://code.google.com/archive/p/language-detection/wikis/Tools.wiki).\n\n\nOriginal project\n================\n\nThis library is a direct port of Google's [language-detection](https://code.google.com/p/language-detection/) library from Java to Python. All the classes and methods are unchanged, so for more information see the project's website or wiki.\n\nPresentation of the language detection algorithm: [http://www.slideshare.net/shuyo/language-detection-library-for-java](http://www.slideshare.net/shuyo/language-detection-library-for-java).", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Mimino666/langdetect", "keywords": "language detection library", "license": "Copyright 2014-2015 Michal \"Mimino\" Danilak\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.", "maintainer": null, "maintainer_email": null, "name": "langdetect", "package_url": "https://pypi.org/project/langdetect/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/langdetect/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Mimino666/langdetect" }, "release_url": "https://pypi.org/project/langdetect/1.0.7/", "requires_dist": null, "requires_python": null, "summary": "Language detection library ported from Google's language-detection.", "version": "1.0.7" }, "last_serial": 2376976, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "c575d3fc2ea5fc0e4f2c54a83072c1c8", "sha256": "eab4fad9472224d04dc24f9d8a31586d56c2b3b21946019875edbbe703c6f729" }, "downloads": -1, "filename": "langdetect-0.1.0.zip", "has_sig": false, "md5_digest": "c575d3fc2ea5fc0e4f2c54a83072c1c8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 924147, "upload_time": "2014-05-14T00:28:13", "url": "https://files.pythonhosted.org/packages/c6/be/72922c8d0f2d37291e903149687045f83c9e1e40ba2f0295442719a6c86e/langdetect-0.1.0.zip" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "7ec701e3bbcf2d5c1fa9b29e0677430f", "sha256": "58ecd571ab003b417895cdedaba2b8de1619ec7330a5c711ec9ac281d5feaa47" }, "downloads": -1, "filename": "langdetect-1.0.0.zip", "has_sig": false, "md5_digest": "7ec701e3bbcf2d5c1fa9b29e0677430f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 934451, "upload_time": "2014-05-17T14:51:23", "url": "https://files.pythonhosted.org/packages/81/5a/bdd083c0adccc7c059e56753565bf1f976ae3ebc3c5166ea3b2dbdf5c82c/langdetect-1.0.0.zip" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "e7fd2d823a734bc3edccd9cc6311f84a", "sha256": "214050b1dd7bb8faae9e056b231311abb6a53441466e964e73013f08935ffa4f" }, "downloads": -1, "filename": "langdetect-1.0.1.zip", "has_sig": false, "md5_digest": "e7fd2d823a734bc3edccd9cc6311f84a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 934465, "upload_time": "2014-05-17T18:28:46", "url": "https://files.pythonhosted.org/packages/88/0a/aa345201f6639bab39c75530426a932c1405c4c6e8667e52a381e383c42f/langdetect-1.0.1.zip" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "f818569220ce5683b9e77eeeb3dc134e", "sha256": "b6486d76b072a32d10945150f1412b0f3eb3da7bff64fb153ccc741eec49edb9" }, "downloads": -1, "filename": "langdetect-1.0.2.zip", "has_sig": false, "md5_digest": "f818569220ce5683b9e77eeeb3dc134e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 934527, "upload_time": "2015-02-16T16:18:02", "url": "https://files.pythonhosted.org/packages/18/b5/27d123cbeba5807b5dbeb574e4381d03a0c66025dfd999cc542031d11af6/langdetect-1.0.2.zip" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "ca85b53f06d532657d07fda0ec538372", "sha256": "8644b202f1753ea1959b9a0c148a05275c583c9e65ed95aa48edc3fc73cfab70" }, "downloads": -1, "filename": "langdetect-1.0.3.zip", "has_sig": false, "md5_digest": "ca85b53f06d532657d07fda0ec538372", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 934553, "upload_time": "2015-02-23T13:26:48", "url": "https://files.pythonhosted.org/packages/5b/ad/fd349da369d4670588182eef4e48479c46bfe6c2bd05d61e44ae71ff3d74/langdetect-1.0.3.zip" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "5392b7624ed891b92d5fe55ad68b5d47", "sha256": "2e456e158ac9e917bce4539606388f08e68ba174cb12369e7acdbdf3333f9a5c" }, "downloads": -1, "filename": "langdetect-1.0.4.zip", "has_sig": false, "md5_digest": "5392b7624ed891b92d5fe55ad68b5d47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 960964, "upload_time": "2015-03-16T14:40:25", "url": "https://files.pythonhosted.org/packages/8d/32/0ceaf511f818dbd3b48eeb65e9ad61c5f645446d4f41fefebd85a0b9a4f3/langdetect-1.0.4.zip" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "61ddf98f3977ce9622ebe086220af786", "sha256": "b6eb72f4774fd735e797379b66a760c3b43d8ecad00db0695ac91bb7d20597c8" }, "downloads": -1, "filename": "langdetect-1.0.5.zip", "has_sig": false, "md5_digest": "61ddf98f3977ce9622ebe086220af786", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 993651, "upload_time": "2015-04-01T13:30:05", "url": "https://files.pythonhosted.org/packages/c2/18/f01433f13d45fc873ddf51e07cb2c533e5af0c478057f634488cb1486913/langdetect-1.0.5.zip" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "4e31fbb1ba3530f2498ca81b2c1e57ab", "sha256": "0275dc679100641bc3328f5ff20d0dc6a4e1c0fac22eac36e45a27cf410a8114" }, "downloads": -1, "filename": "langdetect-1.0.6.zip", "has_sig": false, "md5_digest": "4e31fbb1ba3530f2498ca81b2c1e57ab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 995813, "upload_time": "2016-04-03T18:08:02", "url": "https://files.pythonhosted.org/packages/4f/ad/e6789fd51ce941e2b9cfb77503e16b447c969c148b004c2645935f20ce58/langdetect-1.0.6.zip" } ], "1.0.7": [ { "comment_text": "", "digests": { "md5": "6675db2d8abccb97246372767270e912", "sha256": "91a170d5f0ade380db809b3ba67f08e95fe6c6c8641f96d67a51ff7e98a9bf30" }, "downloads": -1, "filename": "langdetect-1.0.7.zip", "has_sig": false, "md5_digest": "6675db2d8abccb97246372767270e912", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 998060, "upload_time": "2016-10-03T07:22:09", "url": "https://files.pythonhosted.org/packages/59/59/4bc44158a767a6d66de18c4136c8aa90491d56cc951c10b74dd1e13213c9/langdetect-1.0.7.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6675db2d8abccb97246372767270e912", "sha256": "91a170d5f0ade380db809b3ba67f08e95fe6c6c8641f96d67a51ff7e98a9bf30" }, "downloads": -1, "filename": "langdetect-1.0.7.zip", "has_sig": false, "md5_digest": "6675db2d8abccb97246372767270e912", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 998060, "upload_time": "2016-10-03T07:22:09", "url": "https://files.pythonhosted.org/packages/59/59/4bc44158a767a6d66de18c4136c8aa90491d56cc951c10b74dd1e13213c9/langdetect-1.0.7.zip" } ] }