{ "info": { "author": "Tim Mahrt", "author_email": "timmahrt@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "---------\r\npysle\r\n---------\r\n\r\n.. image:: https://travis-ci.org/timmahrt/pysle.svg?branch=master\r\n :target: https://travis-ci.org/timmahrt/pysle\r\n\r\n.. image:: https://coveralls.io/repos/github/timmahrt/pysle/badge.svg?branch=master\r\n :target: https://coveralls.io/github/timmahrt/pysle?branch=master\r\n\r\n.. image:: https://img.shields.io/badge/license-MIT-blue.svg?\r\n :target: http://opensource.org/licenses/MIT\r\n\r\nPronounced like 'p' + 'isle'.\r\n\r\nAn interface to a pronunciation dictionary with stress markings\r\n(ISLEX - the international speech lexicon), \r\nalong with some tools for working with comparing and aligning \r\npronunciations (e.g. a list of phones someone said versus a standard or \r\ncanonical dictionary pronunciation). \r\n\r\n\r\n.. sectnum::\r\n.. contents::\r\n\r\n\r\nCommon Use Cases\r\n================\r\n\r\nWhat can you do with this library?\r\n\r\n- look up the list of phones and syllables for canonical pronunciations \r\n of a word::\r\n\r\n pysle.isletool.LexicalTool.lookup('cat')\r\n\r\n- map an actual pronunciation to a dictionary pronunciation (can be used \r\n to automatically find speech errors)::\r\n\r\n pysle.pronunciationtools.findClosestPronunciation(isleDict, 'cat', ['k', '\u00e6',])\r\n\r\n- automatically syllabify a praat textgrid containing words and phones \r\n (e.g. force-aligned text) -- requires my \r\n `praatIO `_ library::\r\n\r\n pysle.syllabifyTextgrid(isleDict, praatioTextgrid, \"words\", \"phones\")\r\n\r\n- search for words based on pronunciation::\r\n\r\n e.g. Words that start with a sound, or have a sound word medially, or \r\n in stressed vowel position, etc.\r\n\r\n see /tests/dictionary_search.py\r\n\r\nMajor revisions\r\n================\r\n\r\nVer 1.5 (March 3, 2017)\r\n\r\n- substantial bugfixes made, particularly to the syllable-marking code\r\n\r\nVer 1.4 (July 9, 2016)\r\n\r\n- added search functionality\r\n\r\n- ported code to use the new unicode IPA-based isledict\r\n (the old one was ascii)\r\n\r\n- (Oct 20, 2016) Integration tests added; using Travis CI and Coveralls\r\n for build automation. No new functionality added.\r\n\r\nVer 1.3 (March 15, 2016)\r\n\r\n- added indicies for stressed vowels\r\n\r\nVer 1.2 (June 20, 2015)\r\n\r\n- Python 3.x support\r\n\r\nVer 1.1 (January 30, 2015)\r\n\r\n- word lookup ~65 times faster\r\n\r\nVer 1.0 (October 23, 2014)\r\n\r\n- first public release.\r\n\r\n\r\nRequirements\r\n================\r\n\r\n- Before you use this library (before or after installing it) you will need\r\n to download the ILSEX dictionary. It can be downloaded here under the\r\n section 'English' linked under the text 'English Pronlex'\r\n (with a file name of ISLEdict.txt):\r\n\r\n `ISLEX project page `_\r\n\r\n `Direct link to the ISLEX file used in this project\r\n `_ (ISLEdict.txt)\r\n\r\n- ``Python 2.7.*`` or above\r\n\r\n- ``Python 3.3.*`` or above (or below, probably)\r\n\r\n- The `praatIO `_ library is required IF \r\n you want to use the textgrid functionality. It is not required \r\n for normal use.\r\n\r\n\r\nInstallation\r\n================\r\n\r\nIf you on Windows, you can use the installer found here (check that it is up to date though)\r\n`Windows installer `_\r\n\r\nPraatIO is on pypi and can be installed or upgraded from the command-line shell with pip like so::\r\n\r\n pip install praatio --upgrade\r\n\r\nOtherwise, to manually install, after downloading the source from github, from a command-line shell, navigate to the directory containing setup.py and type::\r\n\r\n python setup.py install\r\n\r\nIf python is not in your path, you'll need to enter the full path e.g.::\r\n\r\n\tC:\\Python27\\python.exe setup.py install\r\n\r\n\r\nExample usage\r\n================\r\n\r\nHere is a typical common usage::\r\n\r\n from pysle import isle\r\n isleDict = isle.LexicalTool('C:\\islev2.dict')\r\n print isleDict.lookup('catatonic')[0] # Get the first pronunciation\r\n >> [['k', '\u02cc\u00e6'], ['t\u02fa', '\u0259'], ['t', '\u02c8\u0251'], ['n', '\u026a', 'k']] [2, 0]\r\n\r\nand another::\r\n\r\n from pysle import isle\r\n from psyle import pronunciationTools\r\n\r\n searchWord = 'another'\r\n anotherPhoneList = ['n', '@', 'th', 'r'] # Actually produced (ASCII or IPA ok here)\r\n\r\n returnList = pronunciationTools.findBestSyllabification(isleDict, \r\n searchWord, \r\n anotherPhoneList)\r\n print syllableList\r\n >> [[\"''\"], ['n', '@'], ['th', 'r']]\r\n\r\n\r\nPlease see \\\\examples for example usage\r\n\r\n\r\nCiting pysle\r\n===============\r\n\r\nPysle is general purpose coding and doesn't need to be cited\r\n(you should cite the\r\n`ISLEX project `_\r\ninstead) but if you would like to, it can be cited like so:\r\n\r\nTim Mahrt. Pysle. https://github.com/timmahrt/pysle, 2016.\r\n\r\n\r\nAcknowledgements\r\n================\r\n\r\nDevelopment of Pysle was possible thanks to NSF grant **IIS 07-03624**\r\nto Jennifer Cole and Mark Hasegawa-Johnson, NSF grant **BCS 12-51343**\r\nto Jennifer Cole, Jos\u00e9 Hualde, and Caroline Smith, and\r\nto the A*MIDEX project (n\u00b0 **ANR-11-IDEX-0001-02**) to James Sneed German\r\nfunded by the Investissements d'Avenir French Government program, managed\r\nby the French National Research Agency (ANR).\r\n\r\n\r\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/timmahrt/pysle", "keywords": "", "license": "LICENSE", "maintainer": "", "maintainer_email": "", "name": "pysle", "package_url": "https://pypi.org/project/pysle/", "platform": "", "project_url": "https://pypi.org/project/pysle/", "project_urls": { "Homepage": "https://github.com/timmahrt/pysle" }, "release_url": "https://pypi.org/project/pysle/1.5.7/", "requires_dist": null, "requires_python": "", "summary": "An interface to ISLEX, a pronunciation dictionary with stress markings.", "version": "1.5.7" }, "last_serial": 5208763, "releases": { "1.4.0": [ { "comment_text": "", "digests": { "md5": "dcd3ff11abd41659e5fdee077397e9b9", "sha256": "3c844f986d2712a7a43fdcc3b862f3cf44dafa474e50b0ced36f22bccb53243a" }, "downloads": -1, "filename": "pysle-1.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "dcd3ff11abd41659e5fdee077397e9b9", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 14402, "upload_time": "2016-10-20T12:51:45", "url": "https://files.pythonhosted.org/packages/ce/03/6da7857f43b8ca38e3cae1c10a20a9e3cb000decd77f14b5ee3dd0ed6067/pysle-1.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b13756f50b4ba6acd7f6d0ecb7d5b75f", "sha256": "b29a24774dc64582fbfdb754fc58cb9ebe940073f264c1fa6d3312071a89ce20" }, "downloads": -1, "filename": "pysle-1.4.0.zip", "has_sig": false, "md5_digest": "b13756f50b4ba6acd7f6d0ecb7d5b75f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16837, "upload_time": "2016-10-20T12:51:29", "url": "https://files.pythonhosted.org/packages/42/c1/d236ad660d76d2da62e847d8f3e577aa0a1544d79b367253e1b7b9d3a17c/pysle-1.4.0.zip" } ], "1.5.0": [ { "comment_text": "", "digests": { "md5": "9414d7395eec9a6176a164dd23b2a944", "sha256": "102107ba46f63db90b231c5976017b7dc137c18cbf4ff78bfdd6dab65fb20311" }, "downloads": -1, "filename": "pysle-1.5.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9414d7395eec9a6176a164dd23b2a944", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16019, "upload_time": "2017-03-02T19:57:48", "url": "https://files.pythonhosted.org/packages/f2/0a/533fbaffe199a74e7272d814347604bceaaf76b61f3a08134dd3f25b6b54/pysle-1.5.0-py2.py3-none-any.whl" } ], "1.5.1": [ { "comment_text": "", "digests": { "md5": "c4bdbf00402da73ff2e3411cd91600b9", "sha256": "d2dcd85c44852eb0a142fce3f83fe25e8149d3d3ebecc9dfbd26d39b9e0e65f0" }, "downloads": -1, "filename": "pysle-1.5.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c4bdbf00402da73ff2e3411cd91600b9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16399, "upload_time": "2017-04-06T09:54:56", "url": "https://files.pythonhosted.org/packages/50/6f/2a81ead69380495b7c1da31721b5532dac88a249a2fffe5bc85bf43aab55/pysle-1.5.1-py2.py3-none-any.whl" } ], "1.5.2": [ { "comment_text": "", "digests": { "md5": "1be0916381314377fa52902c60ce67fa", "sha256": "018f887594e3a691264bf0ecb32b0670cd0f49e9cf526ac9faeb6e0d9991407c" }, "downloads": -1, "filename": "pysle-1.5.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1be0916381314377fa52902c60ce67fa", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17844, "upload_time": "2017-04-13T16:47:26", "url": "https://files.pythonhosted.org/packages/d3/fc/5e9856e6f53597b7af212b07d9e2abe3b55c9bceb44ecbc93585061d7922/pysle-1.5.2-py2.py3-none-any.whl" } ], "1.5.5": [ { "comment_text": "", "digests": { "md5": "ca2b80360a8887e08276989c8c0618be", "sha256": "eeeaa082ab4148b0fac7271092a7ae241e0a6c117ae4b1ecf05f9421d829db0a" }, "downloads": -1, "filename": "pysle-1.5.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ca2b80360a8887e08276989c8c0618be", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18150, "upload_time": "2017-05-22T22:21:51", "url": "https://files.pythonhosted.org/packages/3b/93/3c5af25a8ac361faeedf0eafce5e2ce0493919478b73e15ee7eb029c56d2/pysle-1.5.5-py2.py3-none-any.whl" } ], "1.5.6": [ { "comment_text": "", "digests": { "md5": "912a36986a081fe051206a122b7e8d4f", "sha256": "4c3cd5a2528fe799bafcdd8aafb01d9b9158531e09264666a01eb8756c5c94ce" }, "downloads": -1, "filename": "pysle-1.5.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "912a36986a081fe051206a122b7e8d4f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18519, "upload_time": "2017-05-23T11:01:57", "url": "https://files.pythonhosted.org/packages/a0/84/a07b746f40de1c37e8350316da1f3f2ec07e4c9d47305439a35eb7eafcff/pysle-1.5.6-py2.py3-none-any.whl" } ], "1.5.7": [ { "comment_text": "", "digests": { "md5": "58439e4b591f869cabe6f41f228a8863", "sha256": "39b72706a8c43789026a18ddf3eed092642078a23b7f8bc0bc36cc48c0fd3bdb" }, "downloads": -1, "filename": "pysle-1.5.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "58439e4b591f869cabe6f41f228a8863", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18522, "upload_time": "2017-05-23T21:34:57", "url": "https://files.pythonhosted.org/packages/3c/f2/a988a5fd35351dc510c82a944b3f9287818360e40c7ab04701d85ff8ced4/pysle-1.5.7-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a7c3ccaa321c8f17a16b323871b9b32a", "sha256": "de59a72651147a4d7c4455445de9089c9d49ff84068f90799993e532e52f9d75" }, "downloads": -1, "filename": "pysle-1.5.7.tar.gz", "has_sig": false, "md5_digest": "a7c3ccaa321c8f17a16b323871b9b32a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16409, "upload_time": "2019-04-30T15:46:32", "url": "https://files.pythonhosted.org/packages/46/36/f73e213cd72a00fb2f9227b5858e4941edaa6bddc90b754e91a102a1d529/pysle-1.5.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "58439e4b591f869cabe6f41f228a8863", "sha256": "39b72706a8c43789026a18ddf3eed092642078a23b7f8bc0bc36cc48c0fd3bdb" }, "downloads": -1, "filename": "pysle-1.5.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "58439e4b591f869cabe6f41f228a8863", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18522, "upload_time": "2017-05-23T21:34:57", "url": "https://files.pythonhosted.org/packages/3c/f2/a988a5fd35351dc510c82a944b3f9287818360e40c7ab04701d85ff8ced4/pysle-1.5.7-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a7c3ccaa321c8f17a16b323871b9b32a", "sha256": "de59a72651147a4d7c4455445de9089c9d49ff84068f90799993e532e52f9d75" }, "downloads": -1, "filename": "pysle-1.5.7.tar.gz", "has_sig": false, "md5_digest": "a7c3ccaa321c8f17a16b323871b9b32a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16409, "upload_time": "2019-04-30T15:46:32", "url": "https://files.pythonhosted.org/packages/46/36/f73e213cd72a00fb2f9227b5858e4941edaa6bddc90b754e91a102a1d529/pysle-1.5.7.tar.gz" } ] }