{ "info": { "author": "Motoki Wu", "author_email": "tokestermw@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "## spacy_hunspell: Hunspell extension for spaCy\n\nThis package uses the [spaCy 2.0 extensions](https://spacy.io/usage/processing-pipelines#extensions)\nto add [Hunspell](http://hunspell.github.io) support for spellchecking.\nInspired from [this discussion here](https://github.com/explosion/spaCy/issues/315#issuecomment-346194645).\n\n## Usage\n\nAdd the spaCyHunSpell to the spaCy pipeline.\n\n```\nimport spacy\nfrom spacy_hunspell import spaCyHunSpell\n\nnlp = spacy.load('en_core_web_sm')\nhunspell = spaCyHunSpell('mac')\nnlp.add_pipe(hunspell)\n\ndoc = nlp('I can haz cheezeburger.')\nhaz = doc[2]\nhaz._.hunspell_spell # False\nhaz._.hunspell_suggest # ['ha', 'haze', 'hazy', 'has', 'hat', 'had', 'hag', 'ham', 'hap', 'hay', 'haw', 'ha z']\n```\n\nThere are two default locations for Hunspell dictionaries for each platform\n(`mac`, and `linux`). If there are not you can specify the two files manually.\n\n```\nhunspell = spaCyHunSpell('mac')\nhunspell = spaCyHunSpell('linux')\nhunspell = spaCyHunSpell('en_US.dic', 'en_US.aff')\n```\n\nYou can find the [English dictionary files here](http://wordlist.aspell.net/dicts/).\n\n## Installation\n\nYou can install the package directly if you have the prerequisites to\ninstall Hunspell. If it errors out, manually install Hunspell (see below).\n\n```\npip install spacy_hunspell\n```\n\nInstall Hunspell on Linux.\n\n```\nsudo apt-get install libhunspell-dev\n```\n\nInstall Hunspell on Mac.\n\n```\nbrew install hunspell\n```\n\nInstall the Python bindings for Hunspell ([`pyhunspell`](https://github.com/blatinier/pyhunspell)):\n\n```\npip install hunspell\n```\n\nFor Mac, you may have to add a few steps before pip installing:\n\n```\nexport C_INCLUDE_PATH=/usr/local/include/hunspell\nln -s /usr/local/lib/libhunspell-{VERSION_NUMBER}.a /usr/local/lib/libhunspell.a\n```\n\nFor Mac 10.13 High Sierra, you may have to set the C flags ([issue](https://github.com/blatinier/pyhunspell/issues/33)).\n\n```\nCFLAGS=$(pkg-config --cflags hunspell) LDFLAGS=$(pkg-config --libs hunspell) pip install hunspell\n```\n\nInstall the rest of the requirements.\n\n```\npip install -r requirements.txt\n```\n\nAnd download at least one spaCy model.\n\n```\npython -m spacy download en_core_web_sm\n```\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tokestermw/spacy_hunspell", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "spacy_hunspell", "package_url": "https://pypi.org/project/spacy_hunspell/", "platform": "", "project_url": "https://pypi.org/project/spacy_hunspell/", "project_urls": { "Homepage": "https://github.com/tokestermw/spacy_hunspell" }, "release_url": "https://pypi.org/project/spacy_hunspell/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "spaCy extension for Hunspell.", "version": "0.1.0" }, "last_serial": 3369767, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "5a1448af06dd52951774ff865b16e03e", "sha256": "d3c34cc7197d0d484c41f4c58bc6282aca48be2178f53aac93121fac6fedd7c6" }, "downloads": -1, "filename": "spacy_hunspell-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5a1448af06dd52951774ff865b16e03e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2841, "upload_time": "2017-11-28T01:40:12", "url": "https://files.pythonhosted.org/packages/d9/6a/d977f74eff8354a5fdd6b5c0d8b4f8caa8d676970e18ff961694d978e7f7/spacy_hunspell-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5a1448af06dd52951774ff865b16e03e", "sha256": "d3c34cc7197d0d484c41f4c58bc6282aca48be2178f53aac93121fac6fedd7c6" }, "downloads": -1, "filename": "spacy_hunspell-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5a1448af06dd52951774ff865b16e03e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2841, "upload_time": "2017-11-28T01:40:12", "url": "https://files.pythonhosted.org/packages/d9/6a/d977f74eff8354a5fdd6b5c0d8b4f8caa8d676970e18ff961694d978e7f7/spacy_hunspell-0.1.0.tar.gz" } ] }