{ "info": { "author": "Fantomas42", "author_email": "fantomas42@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "==========\r\nMots vides\r\n==========\r\n\r\n|travis-develop| |coverage-develop|\r\n\r\nPython library for managing common stop words in 39 languages.\r\n\r\n.. contents::\r\n\r\nUsage\r\n=====\r\n\r\nSimple\r\n------\r\n\r\nBetter than a long speech, here a direct introduction: ::\r\n\r\n >>> from mots_vides import stop_words\r\n\r\n >>> english_stop_words = stop_words('en')\r\n >>> text = \"\"\"\r\n ... Even though using \"lorem ipsum\" often arouses curiosity\r\n ... due to its resemblance to classical Latin,\r\n ... it is not intended to have meaning.\r\n ... \"\"\"\r\n\r\n >>> print(english_stop_words.rebase(text))\r\n XXXX XXXXXX XXXXX \"lorem ipsum\" XXXXX arouses curiosity\r\n XXX XX XXX resemblance XX classical Latin,\r\n XX XX XXX intended XX XXXX meaning.\r\n\r\n >>> print(english_stop_words.rebase(text, '').split())\r\n ['\"lorem', 'ipsum\"', 'arouses', 'curiosity', 'resemblance',\r\n 'classical', 'Latin,', 'intended', 'meaning.']\r\n\r\nAdvanced\r\n--------\r\n\r\n*Mots vides* also provides two classes for managing the stop words in your\r\nlanguage.\r\n\r\n``StopWord`` which is a container for a collection of stop words.\r\nBy default is language agnostic, but can be easily manipulated to create\r\nthe collection: ::\r\n\r\n >>> from mots_vides import StopWord\r\n\r\n >>> french_stop_words = StopWord('french', ['le', 'la', 'les'])\r\n >>> french_stop_words += StopWord('french', ['un', 'une', 'des'])\r\n >>> french_stop_words += ['or', 'ni', 'car']\r\n >>> french_stop_words += 'assez'\r\n >>> french_stop_words += u'aussit\u00f4t'\r\n >>> print(sorted(french_stop_words))\r\n ['assez', u'aussit\u00f4t', 'car', 'des', 'la', 'le', 'les', 'ni', 'or', 'un', 'une']\r\n\r\n``StopWordFactory`` is a factory for initializing ``StopWord`` objects by\r\nlanguage and the appropriate collection of stop words. ::\r\n\r\n >>> from mots_vides import StopWordFactory\r\n\r\n >>> factory = StopWordFactory()\r\n >>> french_stop_words = factory.get_stop_words('french')\r\n >>> print(len(french_stop_words))\r\n 577\r\n\r\nYou can also use international language code to query a collection: ::\r\n\r\n >>> french_stop_words = factory.get_stop_words('fr')\r\n >>> print(len(french_stop_words))\r\n 577\r\n\r\nIf the required language does not exist a ``StopWordError`` is raised,\r\nunless the ``fail_safe`` parameter is set to ``True``: ::\r\n\r\n >>> klingon_stop_words = factory.get_stop_words('klingon')\r\n StopWordError: Stop words are not available in \"klingon\".\r\n >>> klingon_stop_words = factory.get_stop_words('klingon', fail_safe=True)\r\n >>> print(len(klingon_stop_words))\r\n 0\r\n\r\nSupported languages\r\n===================\r\n\r\n* Arabic\r\n* Armenian\r\n* Basque\r\n* Bengali\r\n* Bulgarian\r\n* Catalan\r\n* Chinese\r\n* Czech\r\n* Danish\r\n* Dutch\r\n* English\r\n* Finnish\r\n* French\r\n* Galician\r\n* German\r\n* Greek\r\n* Hindi\r\n* Hungarian\r\n* Indonesian\r\n* Irish\r\n* Italian\r\n* Japanese\r\n* Korean\r\n* Latvian\r\n* Lithuanian\r\n* Marathi\r\n* Norwegian\r\n* Persian\r\n* Polish\r\n* Portuguese\r\n* Romanian\r\n* Russian\r\n* Slovak\r\n* Spanish\r\n* Swedish\r\n* Thai\r\n* Turkish\r\n* Ukrainian\r\n* Urdu\r\n\r\nCompatibility\r\n=============\r\n\r\nTested with Python 2.6, 2.7, 3.2, 3.3, 3.4.\r\n\r\nAuthors\r\n=======\r\n\r\n* https://github.com/Fantomas42\r\n* https://github.com/chrisdavisgithub\r\n\r\nNotes\r\n=====\r\n\r\n*Mots vides* means *stop words* in french.\r\n\r\nInspired from https://github.com/Alir3z4/python-stop-words\r\n\r\nChangelog\r\n=========\r\n\r\n2015.5.11\r\n---------\r\n\r\n- Fix cache system for Python 3\r\n\r\n2015.2.6\r\n--------\r\n\r\n- Fix potential issue in factory.get_available_languages\r\n\r\n2015.2.5\r\n--------\r\n\r\n- Fix packaging\r\n- Add a rebaser command script\r\n\r\n2015.2.4\r\n--------\r\n\r\n- Initial release\r\n\r\n2015.1.21.dev0\r\n--------------\r\n\r\n- Development release\r\n\r\n.. |travis-develop| image:: https://travis-ci.org/Fantomas42/mots-vides.png?branch=develop\r\n :alt: Build Status - develop branch\r\n :target: http://travis-ci.org/Fantomas42/mots-vides\r\n.. |coverage-develop| image:: https://coveralls.io/repos/Fantomas42/mots-vides/badge.png?branch=develop\r\n :alt: Coverage of the code\r\n :target: https://coveralls.io/r/Fantomas42/mots-vides", "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/Fantomas42/mots-vides", "keywords": "stop,words,text,parsing", "license": "Copyright (c) 2015, Julien Fache\r\nAll rights reserved.\r\n\r\nRedistribution and use in source and binary forms, with or without\r\nmodification, are permitted provided that the following conditions are\r\nmet:\r\n\r\n * Redistributions of source code must retain the above copyright\r\n notice, this list of conditions and the following disclaimer.\r\n * Redistributions in binary form must reproduce the above\r\n copyright notice, this list of conditions and the following\r\n disclaimer in the documentation and/or other materials provided\r\n with the distribution.\r\n * Neither the name of the author nor the names of other\r\n contributors may be used to endorse or promote products derived\r\n from this software without specific prior written permission.\r\n\r\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\r\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\r\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\r\nA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\r\nOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\r\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\r\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\r\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.", "maintainer": "", "maintainer_email": "", "name": "mots-vides", "package_url": "https://pypi.org/project/mots-vides/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/mots-vides/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Fantomas42/mots-vides" }, "release_url": "https://pypi.org/project/mots-vides/2015.5.11/", "requires_dist": null, "requires_python": null, "summary": "Python library for managing stop words in many languages.", "version": "2015.5.11" }, "last_serial": 1541964, "releases": { "2015.2.4": [ { "comment_text": "", "digests": { "md5": "92a06e1ddd19f5ae24e20b05920ce1ea", "sha256": "b2bdcb953cd893bee47acedc3626914c10dd06406ac0b906733e189f54b475e7" }, "downloads": -1, "filename": "mots-vides-2015.2.4.tar.gz", "has_sig": false, "md5_digest": "92a06e1ddd19f5ae24e20b05920ce1ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 52266, "upload_time": "2015-02-04T21:53:39", "url": "https://files.pythonhosted.org/packages/01/2a/70ef1d94fff3b28d209016e13f6d712f69f05f2761904cc476aa2a97d78e/mots-vides-2015.2.4.tar.gz" } ], "2015.2.5": [ { "comment_text": "", "digests": { "md5": "aaa664c10ebb305eed5779cecb6d90d1", "sha256": "585c4e4d5b9d138638130fbc9f56fc1be903a53ca93307831eb847bbd1e850a9" }, "downloads": -1, "filename": "mots_vides-2015.2.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "aaa664c10ebb305eed5779cecb6d90d1", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 59329, "upload_time": "2015-02-05T11:58:34", "url": "https://files.pythonhosted.org/packages/76/21/9c1d9aafe3a8bd66c607eb01f288254a4b504a847f2ad8883f989bc1c4da/mots_vides-2015.2.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "07cbec0a972d5e2bad91668e238d79c9", "sha256": "1155c0bbe50bca1d98f08d397510706d0980bbab73c826fc439c52717971bce9" }, "downloads": -1, "filename": "mots-vides-2015.2.5.tar.gz", "has_sig": false, "md5_digest": "07cbec0a972d5e2bad91668e238d79c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 51816, "upload_time": "2015-02-05T11:58:30", "url": "https://files.pythonhosted.org/packages/cb/dd/63d25e780b64d75c7b295075b5c1e204713a412b14910429e6472d5065d6/mots-vides-2015.2.5.tar.gz" } ], "2015.2.6": [ { "comment_text": "", "digests": { "md5": "98526a9cf092e4b6cb6c313706bf6afa", "sha256": "3fe735baba2d0b423caca09ef7ec89bcf0522e5bbd342c09620597227a713fad" }, "downloads": -1, "filename": "mots_vides-2015.2.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "98526a9cf092e4b6cb6c313706bf6afa", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 59426, "upload_time": "2015-02-05T17:00:06", "url": "https://files.pythonhosted.org/packages/8b/8e/8a511f0a9f4bf1b748009641a85ef17c3e498a28e39d0c3a141d422948cb/mots_vides-2015.2.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "30f62c3068a919ca69dcf0ac1cb114d3", "sha256": "de05826de28cc32639dd33698d4867d248f885c90fe15baf6fba90a60df61a07" }, "downloads": -1, "filename": "mots-vides-2015.2.6.tar.gz", "has_sig": false, "md5_digest": "30f62c3068a919ca69dcf0ac1cb114d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 60020, "upload_time": "2015-02-05T17:00:03", "url": "https://files.pythonhosted.org/packages/05/a7/b948701021b2e86212d3fb662ab2325b4ed0df8b1744da9fe37e6030c2d0/mots-vides-2015.2.6.tar.gz" } ], "2015.5.11": [ { "comment_text": "", "digests": { "md5": "609dbfa50fbd094feefcfd2964faaa87", "sha256": "5c00af05234f4021396c6d888c8e34142cfe880fe732ff063f6cfad2d6342dc8" }, "downloads": -1, "filename": "mots_vides-2015.5.11-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "609dbfa50fbd094feefcfd2964faaa87", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 59484, "upload_time": "2015-05-11T13:16:43", "url": "https://files.pythonhosted.org/packages/95/34/f5a4ec9cfad0e484b087de46e381efc991d5fde07412de51b85f59853ed7/mots_vides-2015.5.11-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3ff563a9a9fa306b604b32c059db7c1d", "sha256": "cfbc05d38538af21e20e7b1c44c82076f1489c8d4949019f184f0765c8bf6a44" }, "downloads": -1, "filename": "mots-vides-2015.5.11.tar.gz", "has_sig": false, "md5_digest": "3ff563a9a9fa306b604b32c059db7c1d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 53017, "upload_time": "2015-05-11T13:16:40", "url": "https://files.pythonhosted.org/packages/ce/f3/5e55cedd94550cbfd9dd62d48cd0d535de049e8a49e066ca720326101bbe/mots-vides-2015.5.11.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "609dbfa50fbd094feefcfd2964faaa87", "sha256": "5c00af05234f4021396c6d888c8e34142cfe880fe732ff063f6cfad2d6342dc8" }, "downloads": -1, "filename": "mots_vides-2015.5.11-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "609dbfa50fbd094feefcfd2964faaa87", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 59484, "upload_time": "2015-05-11T13:16:43", "url": "https://files.pythonhosted.org/packages/95/34/f5a4ec9cfad0e484b087de46e381efc991d5fde07412de51b85f59853ed7/mots_vides-2015.5.11-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3ff563a9a9fa306b604b32c059db7c1d", "sha256": "cfbc05d38538af21e20e7b1c44c82076f1489c8d4949019f184f0765c8bf6a44" }, "downloads": -1, "filename": "mots-vides-2015.5.11.tar.gz", "has_sig": false, "md5_digest": "3ff563a9a9fa306b604b32c059db7c1d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 53017, "upload_time": "2015-05-11T13:16:40", "url": "https://files.pythonhosted.org/packages/ce/f3/5e55cedd94550cbfd9dd62d48cd0d535de049e8a49e066ca720326101bbe/mots-vides-2015.5.11.tar.gz" } ] }