{ "info": { "author": "Eranroz", "author_email": "eranroz@cs.huji.ac.il", "bugtrack_url": null, "classifiers": [], "description": "This is simple python wrapper to [Hspell](http://hspell.ivrix.org.il/).\n\nHspell is free Hebrew spellchecker and morphology engine.\nThis is just a python wrapping of Hspell.\n\nYou can get Hspell from:\n\thttp://hspell.ivrix.org.il/\n\nHspell was written by Nadav Har'El and Dan Kenigsberg:\n```\n\tnyh @ math.technion.ac.il\n\tdanken @ cs.technion.ac.il\n```\n\n# Install\n1. Get Hspell: \n 1. Download Hspell: http://hspell.ivrix.org.il/\n 2. Configure: ./configure --enable-shared --enable-linginfo\n 3. Build: make\n 4. Install: make install\n2. python setup.py install\n\nYou can install HspellPy using pip:\n```\npip install HspellPy\n```\n\nIf you fail to import HspellPy with the following error:\n```python\n>>> import HspellPy\nTraceback (most recent call last):\n File \"\", line 1, in \nImportError: libhspell.so.0: cannot open shared object file: No such file or directory\n```\nYou should validate libhspell.so.0 is accessible in LD_LIBRARY_PATH.\n\n# Usage\nUsage example (python 3)\n```python\n>>> from __future__ import unicode_literals\n>>> import HspellPy\n>>> speller = HspellPy.Hspell(linguistics=True)\n \n>>> speller.check_word('\u05d1\u05d9\u05ea') # check whether word exist in dictionary\nTrue\n>>> speller.check_word('\u05d4\u05d1\u05d9\u05ea') # words with prefix are also valid\nTrue\n>>> speller.check_word('\u05d1\u05e2\u05e2\u05e2\u05e2') # invalid word\nFalse\n>>> '\u05d1\u05d9\u05ea' in speller # syntactic sugar\nTrue\n>>> speller.try_correct('\u05e2\u05d3\u05d2') # corrections (doesn't correct typo. see Hspell doc)\n['\u05d4\u05d3\u05d2', '\u05e2\u05d3\u05d4']\n>>> speller.enum_splits('\u05d5\u05d9\u05dc\u05d3\u05d5\u05ea\u05d9\u05d4') # list all splits of a word\n>[WordEnumSplit(word='\u05d5\u05d9\u05dc\u05d3\u05d5\u05ea\u05d9\u05d4', baseword='\u05d9\u05dc\u05d3\u05d5\u05ea\u05d9\u05d4', preflen=1, prefspec=60)]\n>>> speller.linginfo('\u05d9\u05dc\u05d3\u05d4') # morphology\n[LinginfoWord(word='\u05d9\u05dc\u05d3\u05d4', linginfo='\u05e4,\u05e0,3,\u05d9\u05d7\u05d9\u05d3,\u05e2\u05d1\u05e8'), \n LinginfoWord(word='\u05d9\u05dc\u05d3\u05d4', linginfo='\u05e2,\u05e0,\u05d9\u05d7\u05d9\u05d3'),\n LinginfoWord(word='\u05d9\u05dc\u05d3\u05d4', linginfo='\u05e2,\u05d6,\u05d9\u05d7\u05d9\u05d3,\u05db\u05d9\u05e0\u05d5\u05d9/\u05e0,3,\u05d9\u05d7\u05d9\u05d3')]\n```\n\n", "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/eranroz/HspellPy", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "HspellPy", "package_url": "https://pypi.org/project/HspellPy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/HspellPy/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/eranroz/HspellPy" }, "release_url": "https://pypi.org/project/HspellPy/0.1.4/", "requires_dist": null, "requires_python": null, "summary": "Python wrapper for Hspell", "version": "0.1.4" }, "last_serial": 2853852, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "78a3a7a5837b17d1b5f185ced9b7fd09", "sha256": "18a212f82767127a5a20b9dc41aae57184ae399499eaf2c1de7fbe322a7ac551" }, "downloads": -1, "filename": "HspellPy-0.1.tar.gz", "has_sig": false, "md5_digest": "78a3a7a5837b17d1b5f185ced9b7fd09", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28996, "upload_time": "2015-05-08T16:58:25", "url": "https://files.pythonhosted.org/packages/15/0f/22f31fd359d360c99e40a54a794cb364e663885f122cf267f23aa886c97c/HspellPy-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "17d4305fd50deb6fae446b7ef094e3df", "sha256": "151c12addd4797b2980299022a7e5382d6c05cf492a7a48b5b23ce561052d123" }, "downloads": -1, "filename": "HspellPy-0.1.1.tar.gz", "has_sig": false, "md5_digest": "17d4305fd50deb6fae446b7ef094e3df", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28913, "upload_time": "2015-05-16T06:35:37", "url": "https://files.pythonhosted.org/packages/02/51/0c4c38dfd38f8d0b836f406d0f79c6a8539279b0271ce265beeb07ef8cc4/HspellPy-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "695f629b1b1e2ad964854ef53632db6a", "sha256": "6c6287766077191345b8c2f2539f12d8648eb51de52edaa3c058b6c43f9b4698" }, "downloads": -1, "filename": "HspellPy-0.1.2.tar.gz", "has_sig": false, "md5_digest": "695f629b1b1e2ad964854ef53632db6a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28731, "upload_time": "2015-05-16T17:51:29", "url": "https://files.pythonhosted.org/packages/e5/9e/bedf33d16d164c74286dd7e791714520a8750d480f3daeb39e6ffbbfe0d9/HspellPy-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "0c40760f26f655079ead60570b6527d8", "sha256": "bdd1bbe72c8eb9f7a13bac307ec8af69266c3232052fc5e72e59e9412ead3cab" }, "downloads": -1, "filename": "HspellPy-0.1.3.tar.gz", "has_sig": false, "md5_digest": "0c40760f26f655079ead60570b6527d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28717, "upload_time": "2015-07-26T21:02:13", "url": "https://files.pythonhosted.org/packages/23/43/a043b7c3e5da18d75d5e4c9adc6efa9302cc59b4f6ff95c19d39818c347b/HspellPy-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "4316e4f31180276329f5cc705e177763", "sha256": "928b67aee11e34e192af6bbfe2b745405ca8caeae22fcdce8ca4ce2e13dfb0cd" }, "downloads": -1, "filename": "HspellPy-0.1.4.tar.gz", "has_sig": false, "md5_digest": "4316e4f31180276329f5cc705e177763", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33132, "upload_time": "2017-05-05T14:05:25", "url": "https://files.pythonhosted.org/packages/94/fb/d56f7809bae4a8376bc79974559a99c7deca3b3fe039acb4a4d67abd7f39/HspellPy-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4316e4f31180276329f5cc705e177763", "sha256": "928b67aee11e34e192af6bbfe2b745405ca8caeae22fcdce8ca4ce2e13dfb0cd" }, "downloads": -1, "filename": "HspellPy-0.1.4.tar.gz", "has_sig": false, "md5_digest": "4316e4f31180276329f5cc705e177763", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33132, "upload_time": "2017-05-05T14:05:25", "url": "https://files.pythonhosted.org/packages/94/fb/d56f7809bae4a8376bc79974559a99c7deca3b3fe039acb4a4d67abd7f39/HspellPy-0.1.4.tar.gz" } ] }