{ "info": { "author": "Jerry Nieuviarts", "author_email": "jerry@mapado.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Linguistic" ], "description": "pynlg\n=====\n\n.. image:: https://travis-ci.org/mapado/pynlg.svg\n :target: https://travis-ci.org/mapado/pynlg\n\n``pynlg`` is a pure python re-implementation of `SimpleNLG-EnFr `_, a java library enabling french and english `text surface realisation `_, based on `SimpleNLG `_.\n\nFor more information about what SimpleNLG and SimpleNLG-EnFr, have a look at their documentation:\n\n- `SimpleNLG-EnFr `_ (in french)\n- `SimpleNLG `_\n\n``pynlg`` supports Python2.7 and 3.5. Python 3.3 and 3.4 should work, but are untested.\n\nExamples\n--------\n\nDefinition of a nominal sentence, with a feminine noun\n******************************************************\n\n.. code-block:: python\n\n from pynlg.lexicon.fr import FrenchLexicon\n from pynlg.lexicon.feature.category import NOUN, ADJECTIVE, DETERMINER\n from pynlg.lexicon.feature.gender import FEMININE\n from pynlg import make_noun_phrase\n\n lex = FrenchLexicon()\n un = lex.first(u'un', category=DETERMINER)\n maison = lex.first(u'maison', category=NOUN)\n maison = maison.inflex(gender=FEMININE)\n beau = lex.first(u'beau', category=ADJECTIVE)\n perdu = lex.first(u'perdu', category=ADJECTIVE)\n phrase = make_noun_phrase(lexicon=lex, specifier=un, noun=maison, modifiers=[beau, perdu])\n syntaxically_realised_phrase = phrase.realise()\n morphologically_realised_phrase = syntaxically_realised_phrase.realise_morphology()\n morphologically_realised_phrase.components\n [,\n ,\n ,\n ]\n\nSupported languages\n--------------------\n\nFor now, the following languages are supported:\n\n- french (in process)\n- english (in process)\n\nHow can I contribute?\n---------------------\n\nFirst, clone the repository, and create a new local branch. Once the new feature is implemented (or the bug is fixed) and everything is **tested** properly, push your work and create a pull request.\n\nNote: you should run the tests beforehand, and make sure they pass:\n\n.. code-block:: bash\n\n $ tox\n\n\nHow do I add support for a new language?\n----------------------------------------\n\nTODO\n\n\nLicense\n-------\n\nThe MIT License (MIT)\n\nCopyright (c) 2015 Mapado\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/mapado/pynlg", "keywords": "text realisation,pynlg,simplenlg", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pynlg", "package_url": "https://pypi.org/project/pynlg/", "platform": "", "project_url": "https://pypi.org/project/pynlg/", "project_urls": { "Homepage": "http://github.com/mapado/pynlg" }, "release_url": "https://pypi.org/project/pynlg/0.1.1/", "requires_dist": [ "six" ], "requires_python": "", "summary": "Natural Language Generation in Python", "version": "0.1.1" }, "last_serial": 3563277, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "0de4ce77d7acdc55fe6a255bd6abff5e", "sha256": "444968e80f0457af473288f5842b9073a0bbbd41ca1686385a4dd65b2301e25f" }, "downloads": -1, "filename": "pynlg-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "0de4ce77d7acdc55fe6a255bd6abff5e", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 66957, "upload_time": "2018-02-08T10:58:26", "url": "https://files.pythonhosted.org/packages/a0/5b/f261ef9fda0366d631a11c482511daab9b2b38545cfafd192b05056e7c0c/pynlg-0.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1ad54a2a4075414b27206bd33eb5ad78", "sha256": "d9237c293aa46d120dafeba02b5d5adc57371a489d545b7f077de5a360a45a14" }, "downloads": -1, "filename": "pynlg-0.1.1.tar.gz", "has_sig": false, "md5_digest": "1ad54a2a4075414b27206bd33eb5ad78", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 49195, "upload_time": "2018-02-08T10:58:28", "url": "https://files.pythonhosted.org/packages/de/9b/38111392e7d3223d4ad6defe661a3d1afbbd85615efd0fd71f1e995dfece/pynlg-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0de4ce77d7acdc55fe6a255bd6abff5e", "sha256": "444968e80f0457af473288f5842b9073a0bbbd41ca1686385a4dd65b2301e25f" }, "downloads": -1, "filename": "pynlg-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "0de4ce77d7acdc55fe6a255bd6abff5e", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 66957, "upload_time": "2018-02-08T10:58:26", "url": "https://files.pythonhosted.org/packages/a0/5b/f261ef9fda0366d631a11c482511daab9b2b38545cfafd192b05056e7c0c/pynlg-0.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1ad54a2a4075414b27206bd33eb5ad78", "sha256": "d9237c293aa46d120dafeba02b5d5adc57371a489d545b7f077de5a360a45a14" }, "downloads": -1, "filename": "pynlg-0.1.1.tar.gz", "has_sig": false, "md5_digest": "1ad54a2a4075414b27206bd33eb5ad78", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 49195, "upload_time": "2018-02-08T10:58:28", "url": "https://files.pythonhosted.org/packages/de/9b/38111392e7d3223d4ad6defe661a3d1afbbd85615efd0fd71f1e995dfece/pynlg-0.1.1.tar.gz" } ] }