{ "info": { "author": "Roman Kutlak", "author_email": "kutlak.roman@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering :: Artificial Intelligence", "Topic :: Software Development :: Libraries", "Topic :: Text Processing :: Linguistic" ], "description": "Current Status |build|\n======================\n\n.. |build| image:: https://travis-ci.org/roman-kutlak/nlglib.svg?branch=master\n :target: https://travis-ci.org/roman-kutlak/nlglib\n\nThis is just a starting point - an alpha version - mainly a wrapper\naround SimpleNLG_.\n\nAlthough it is possible to go from first order logic to text,\nthere is no sophistication in how things are processed.\nThe library is still missing basics like aggregation or referring expression generation.\n\n\nInstallation\n============\n\nEither download the code from the repository and run `python setup.py install` or use pip:\n`pip install nlglib`.\n\n\nIntro\n=====\n\nNLGlib is a library for natural language generation (NLG) written in Python.\nIt seeks to fill a gap in the NLG field. There are currently no off-the-shelf\nlibraries that one could take and incorporate into other projects.\nThe aim of this library is to be useful for general projects that would like\nto add a bit of text generation to their capabilities.\n\n\nAudience\n========\n\nThe library should be usable by programmers with no prior linguistic knowledge.\nGiven that the aim of the library is language generation,\nsome linguistic knowledge is necessary but you should be able to pick it up\nfrom the examples.\n\n\nScope\n=====\n\nThe aim of the library is to create a base for NLG system starting from content\nselection all the way to realisation. The library will cover document structuring\ntools, lexicalisation, referring expression generation and aggregation.\nRealisation will be done using other realisation libraries (SimpleNLG_ or pynlg_).\n\n\nHistory\n=======\n\nNLGlib started as a part of the EPSRC project\nScrutable Autonomous Systems (SAsSy): www.scrutable-systems.org\nWhen the project finished, the code was moved to this repository to create\na stand-alone re-usable library.\n\n\nExample\n=======\n\n.. code-block:: python\n\n from nlglib.realisation.simplenlg.realisation import Realiser\n from nlglib.microplanning import *\n\n realise_en = Realiser(host='nlg.kutlak.info', port=40000)\n realise_es = Realiser(host='nlg.kutlak.info', port=40001)\n\n\n def main():\n p = Clause(\"Mar\u00eda\", \"perseguir\", \"un mono\")\n p['TENSE'] = 'PAST'\n # expected = 'Mar\u00eda persigue un mono.'\n print(realise_es(p))\n p = Clause(NP(\"la\", \"r\u00e1pida\", \"corredora\"), VP(\"perseguir\"), NP(\"un\", \"mono\"))\n subject = NP(\"la\", \"corredora\")\n objekt = NP(\"un\", \"mono\")\n verb = VP(\"perseguir\")\n subject.premodifiers.append(\"r\u00e1pida\")\n p.subject = subject\n p.predicate = verb\n p.object = objekt\n # expected = 'La r\u00e1pida corredora persigue un mono.'\n print(realise_es(p))\n p = Clause(NP('this', 'example'), VP('show', 'how cool simplenlg is'))\n # expected = This example shows how cool simplenlg is.\n print(realise_en(p))\n\n\n if __name__ == '__main__':\n main()\n\n\n.. _SimpleNLG: https://github.com/simplenlg/simplenlg\n.. _pynlg: https://github.com/mapado/pynlg\n\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/roman-kutlak/nlglib", "keywords": "natural language generation,NLG,text generation,nlglib,library", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "nlglib", "package_url": "https://pypi.org/project/nlglib/", "platform": "", "project_url": "https://pypi.org/project/nlglib/", "project_urls": { "Homepage": "https://github.com/roman-kutlak/nlglib" }, "release_url": "https://pypi.org/project/nlglib/0.2.1/", "requires_dist": [ "nltk", "coverage; extra == 'dev'", "nose; extra == 'dev'", "pycodestyle; extra == 'dev'", "rednose; extra == 'dev'" ], "requires_python": "", "summary": "Natural Language Generation library for Python", "version": "0.2.1" }, "last_serial": 4775639, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "59d02e24201ac51be4f548fde646cf8a", "sha256": "de502aabbd3d8fd020868f7e2340aec88f953cea327e5efeaf909773bf14213c" }, "downloads": -1, "filename": "nlglib-0.1.0.tar.gz", "has_sig": false, "md5_digest": "59d02e24201ac51be4f548fde646cf8a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 49401, "upload_time": "2017-12-29T22:40:05", "url": "https://files.pythonhosted.org/packages/04/65/e831b88f7d9ab6be4508d27eb5db361120c08e706d28ef2b840d48da66dd/nlglib-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "9146560af99d264c3e90c2560029f3c7", "sha256": "07e6384a2ab0712955e216355d8ecfd33c7b20ecb979de995f2167bab864e0d3" }, "downloads": -1, "filename": "nlglib-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "9146560af99d264c3e90c2560029f3c7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3289859, "upload_time": "2019-02-03T19:49:11", "url": "https://files.pythonhosted.org/packages/d5/52/5b0e38a90d4fdaed5557665019042b7c4782f856366d66ad6a967ca72085/nlglib-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7adc6768597cb007df8ff822090d2c78", "sha256": "9b82c572c323a56de475706e9288fb849ed3574fae62496083c66bd1087cb5ab" }, "downloads": -1, "filename": "nlglib-0.2.0.tar.gz", "has_sig": false, "md5_digest": "7adc6768597cb007df8ff822090d2c78", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 54657, "upload_time": "2019-02-03T19:49:13", "url": "https://files.pythonhosted.org/packages/65/cc/c01cf220e4cc7cb310f8e5fdfc3359569365e10fa9af7191f29ddf12728b/nlglib-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "73d07e415d4abfef88742fe05b62c398", "sha256": "85953dcf24fd01c1ed2a957e590dbc3f3c8f5dc5bf30c5b4062ca0fc34582d1d" }, "downloads": -1, "filename": "nlglib-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "73d07e415d4abfef88742fe05b62c398", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3290554, "upload_time": "2019-02-03T20:54:56", "url": "https://files.pythonhosted.org/packages/d2/bd/e3572164a3aaa806019c6f51c53d036d256b7c8fc03a880d3a2e073675cd/nlglib-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4992ba1ec0963bf6fe1d6efa8196c3ca", "sha256": "1bc4f9fc03efd9e744f0ddaadd324a13e61da47ac238427f25094e6164d5617f" }, "downloads": -1, "filename": "nlglib-0.2.1.tar.gz", "has_sig": false, "md5_digest": "4992ba1ec0963bf6fe1d6efa8196c3ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 54964, "upload_time": "2019-02-03T20:54:59", "url": "https://files.pythonhosted.org/packages/8b/7e/6ec0cab56865c6ad845118d88f9c1e7a95e4769e9dc3c400fd8bbc720fbd/nlglib-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "73d07e415d4abfef88742fe05b62c398", "sha256": "85953dcf24fd01c1ed2a957e590dbc3f3c8f5dc5bf30c5b4062ca0fc34582d1d" }, "downloads": -1, "filename": "nlglib-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "73d07e415d4abfef88742fe05b62c398", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3290554, "upload_time": "2019-02-03T20:54:56", "url": "https://files.pythonhosted.org/packages/d2/bd/e3572164a3aaa806019c6f51c53d036d256b7c8fc03a880d3a2e073675cd/nlglib-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4992ba1ec0963bf6fe1d6efa8196c3ca", "sha256": "1bc4f9fc03efd9e744f0ddaadd324a13e61da47ac238427f25094e6164d5617f" }, "downloads": -1, "filename": "nlglib-0.2.1.tar.gz", "has_sig": false, "md5_digest": "4992ba1ec0963bf6fe1d6efa8196c3ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 54964, "upload_time": "2019-02-03T20:54:59", "url": "https://files.pythonhosted.org/packages/8b/7e/6ec0cab56865c6ad845118d88f9c1e7a95e4769e9dc3c400fd8bbc720fbd/nlglib-0.2.1.tar.gz" } ] }