{ "info": { "author": "Xwiz", "author_email": "c.opata@robosyslive.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# spaCy Symspell\n## Spelling correction implementation in spaCy via Symspell\n\nThis package is a [spaCy 2.0 extension](https://spacy.io/usage/processing-pipelines#section-extensions) that adds sentnece/spelling corrections via Symspell to spaCy's text processing pipeline.\n\n## Installation\n\n`pip install spacy_symspell`\n\n## Notes\nThis package is still in Alpha and there may be unforeseen errors. Dictionary loading time is also significant, can take up to 30 seconds on slow machines.\n\n## Usage\n\nAdding the component to the processing pipeline is relatively simple:\n\n import spacy\n from spacy_symspell import SpellingCorrector\n\n nlp = spacy.load('en_core_web_sm')\n corrector = SpellingCorrector()\n nlp.add_pipe(corrector)\n doc = nlp('What doyuoknowabout antyhing')\n\n for s in doc._.suggestions:#iterable\n print(s) #What doyon about anything\n\n doc._.segmentation #::segmented_string - What doyouk now about antyhing ::corrected_string - that dook now about anything\n\nspaCy_symspell operates on `Doc` and `Span` spaCy objects. When called on a `Doc` or `Span`, the object is given two attributes: `suggestions` (a list of all found spelling suggestions) and `segmentation` (a corrected sentence in the case of ommitted spaces).\n\n## Todo\nSymspell accuracy can be improved with the help of spaCy by extracting and analyzing resulting n-grams and cross-referencing with possible n-grams deductible from the character groups in the symspell result. For example the correction 'that dook now' leaves us with a verbless sentence, and on closer analysis will reveal that the character group 'now' is related with the verb 'know', and the verb know is associated with the n-gram 'you know'.\n\n## Under the hood\n[spacy_symspell](https://github.com/xwiz/spacy_symspell) is currently a wrapper of the [python port](https://github.com/mammothb/symspellpy) for [Symspell](https://github.com/wolfgarbe/SymSpell). For additional details, see the linked project pages.\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/xwiz/spacy_symspell", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "spacy-symspell", "package_url": "https://pypi.org/project/spacy-symspell/", "platform": "", "project_url": "https://pypi.org/project/spacy-symspell/", "project_urls": { "Homepage": "https://github.com/xwiz/spacy_symspell" }, "release_url": "https://pypi.org/project/spacy-symspell/0.1.2/", "requires_dist": [ "spacy (<3.0.0,>=2.0.0)", "symspellpy (>=6.3.8)" ], "requires_python": ">=3.5", "summary": "spaCy pipeline component for spelling correction using sysmepll.", "version": "0.1.2" }, "last_serial": 5163854, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f5c7077afdb34870e9ce6c5c0daf31e4", "sha256": "940b0eee74148ad114af1608cd17a973aa03e065359ab878fa1c9b959afc7f39" }, "downloads": -1, "filename": "spacy_symspell-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f5c7077afdb34870e9ce6c5c0daf31e4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 3650402, "upload_time": "2019-04-18T16:55:14", "url": "https://files.pythonhosted.org/packages/50/f2/dec4e9f992328a00da4cfd15ad7e4413943cbea7fb8bdda3136b43417c44/spacy_symspell-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d2ba19c6bb66c9ec1eb8f5206a12f9c0", "sha256": "e51e4237be16bf5c78425ea449ce0731ac695685006053daf11527dbab0d4d1e" }, "downloads": -1, "filename": "spacy_symspell-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d2ba19c6bb66c9ec1eb8f5206a12f9c0", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 3650526, "upload_time": "2019-04-18T16:55:39", "url": "https://files.pythonhosted.org/packages/b3/de/2556819d8b390cf10d13da03cbcb43a96c9b635dced572590abc86ad3325/spacy_symspell-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "484ff782977740433aa63b5b309cfb59", "sha256": "86f2d220eb4532593836e5ae548d76eea613fca4b83044515ef53396f99976bb" }, "downloads": -1, "filename": "spacy_symspell-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "484ff782977740433aa63b5b309cfb59", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 3650488, "upload_time": "2019-04-19T07:30:36", "url": "https://files.pythonhosted.org/packages/1f/00/b6c46a89b46c461c8818bf57adaa5f99cf53e5ae8d3271a67b2b413dfa06/spacy_symspell-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "31695ebf5a2e12e6c2eec0c7582a4f7e", "sha256": "9118ee569c1d90b7df37301d5dbba3a253da85846c850a5a35276a750bab4d40" }, "downloads": -1, "filename": "spacy_symspell-0.1.1.tar.gz", "has_sig": false, "md5_digest": "31695ebf5a2e12e6c2eec0c7582a4f7e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 3650665, "upload_time": "2019-04-19T07:30:57", "url": "https://files.pythonhosted.org/packages/e8/65/2799cde0b58f04d75d0c2d1b711b0d0142864d3666d23039a0afb3b4c415/spacy_symspell-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "29d52a759a66ddfcee3d67f40c92c841", "sha256": "d2c30268095fba6c344bd16c92f1362478402872874069b6224b068c27b7c694" }, "downloads": -1, "filename": "spacy_symspell-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "29d52a759a66ddfcee3d67f40c92c841", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 3650507, "upload_time": "2019-04-19T08:05:27", "url": "https://files.pythonhosted.org/packages/82/c1/9dce7f0f0e2d02692d444ef8b1746b837cf4c1532a2dd3012a8be7f7ba58/spacy_symspell-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9d7556b4c09cdedf8889ddd91225d205", "sha256": "79337bb996f182a9c9e84a4d3d19258020d51820065e3a0291de095d8cd7b608" }, "downloads": -1, "filename": "spacy_symspell-0.1.2.tar.gz", "has_sig": false, "md5_digest": "9d7556b4c09cdedf8889ddd91225d205", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 3650938, "upload_time": "2019-04-19T08:05:49", "url": "https://files.pythonhosted.org/packages/c1/8a/900a5a4f55aeb75daf107789e70bae27475f82b104436378fc1fea3eb4f1/spacy_symspell-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "29d52a759a66ddfcee3d67f40c92c841", "sha256": "d2c30268095fba6c344bd16c92f1362478402872874069b6224b068c27b7c694" }, "downloads": -1, "filename": "spacy_symspell-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "29d52a759a66ddfcee3d67f40c92c841", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 3650507, "upload_time": "2019-04-19T08:05:27", "url": "https://files.pythonhosted.org/packages/82/c1/9dce7f0f0e2d02692d444ef8b1746b837cf4c1532a2dd3012a8be7f7ba58/spacy_symspell-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9d7556b4c09cdedf8889ddd91225d205", "sha256": "79337bb996f182a9c9e84a4d3d19258020d51820065e3a0291de095d8cd7b608" }, "downloads": -1, "filename": "spacy_symspell-0.1.2.tar.gz", "has_sig": false, "md5_digest": "9d7556b4c09cdedf8889ddd91225d205", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 3650938, "upload_time": "2019-04-19T08:05:49", "url": "https://files.pythonhosted.org/packages/c1/8a/900a5a4f55aeb75daf107789e70bae27475f82b104436378fc1fea3eb4f1/spacy_symspell-0.1.2.tar.gz" } ] }