{ "info": { "author": "Dalton Fury", "author_email": "daltonfury42@disroot.org", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# TrueCase\n\nA language independent, statistical, language modeling\nbased tool in Python that restores case information for text.\n\nThe model was inspired by the paper of [Lucian Vlad Lita et al., tRuEcasIng](https://www.cs.cmu.edu/~llita/papers/lita.truecasing-acl2003.pdf) but with some simplifications.\n\n\nA model trained on NLTK English corpus comes with the package by default, \nand for other languages, a script is provided to create the model. This model is \nnot perfect, train the system on a large and recent dataset to achieve \nthe best results (e.g. on a recent dump of Wikipedia).\n\n### Prerequisites\n\nPython 3\n\nThe project uses NLTK. Find install instructions [here](https://www.nltk.org/install.html).\n\n### Installing\n\n\n```\npip install truecase\n```\n\n## Usage\n\nSimple usecase:\n```\n>>> import truecase\n>>> truecase.get_true_case('hey, what is the weather in new york?')\n'Hey, what is the weather in New York?''\n```\n\n## Training your own model\n\nTODO. For now refer to Trainer.py\n\n## Contributing\n\nI see a lot of space for improvement. Feel free to fork and improve. Do sent a pull request.\n\n## Authors\n\n* **Dalton Fury** - *Initial work* - [daltonfury42](https://github.com/daltonfury42)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n\n## Acknowledgments\n\n* [Lucian Vlad Lita et al., tRuEcasIng](https://www.cs.cmu.edu/~llita/papers/lita.truecasing-acl2003.pdf)\n* Borrowed a lot of code, and the idea from [truecaser](https://github.com/nreimers/truecaser/blob/master/README.md) by [nreimers](https://github.com/nreimers)\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/daltonfury42/truecase", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "truecase", "package_url": "https://pypi.org/project/truecase/", "platform": "", "project_url": "https://pypi.org/project/truecase/", "project_urls": { "Homepage": "https://github.com/daltonfury42/truecase" }, "release_url": "https://pypi.org/project/truecase/0.0.5/", "requires_dist": [ "nltk" ], "requires_python": "", "summary": "A library to restore capitalization for text", "version": "0.0.5" }, "last_serial": 5648138, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "6f9b3e86f88d7dd211bf52987b4feb85", "sha256": "45fcb259f0c18cbd22b9bdda48f9233e1a85233869dc739cb83d95dcd5eaf0c4" }, "downloads": -1, "filename": "truecase-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "6f9b3e86f88d7dd211bf52987b4feb85", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 28378458, "upload_time": "2019-04-28T06:48:46", "url": "https://files.pythonhosted.org/packages/c5/a0/fb499698c1e6c31d1345235faea9953775f322b0b30822a7f81ac543d499/truecase-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "46ef459ebb5c2ee473a71bd3b71fc8ed", "sha256": "8a5a2c9409486702d82fddfe55955697657fa63bb5788bf4cf56a0c1a74a65e8" }, "downloads": -1, "filename": "truecase-0.0.1.tar.gz", "has_sig": false, "md5_digest": "46ef459ebb5c2ee473a71bd3b71fc8ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28798228, "upload_time": "2019-04-28T06:51:56", "url": "https://files.pythonhosted.org/packages/82/89/b0443ce918d8aab586b311cad3b4cbd0c39ba8b88c06c5d0ddd9d820606e/truecase-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "6bd7aed331c3877d1f1f17e090187cd2", "sha256": "4ffccb94344f62375f04d880b6a508d86309b3b54e8ca8e7b45ad265b049eb9d" }, "downloads": -1, "filename": "truecase-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "6bd7aed331c3877d1f1f17e090187cd2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 28379068, "upload_time": "2019-04-28T07:40:45", "url": "https://files.pythonhosted.org/packages/c0/55/f76546f9d563b6eccee9489975854c194c960ffd18d8fda398c19863d103/truecase-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "01507e86bc1f228a770e4f2d5ff1a465", "sha256": "35941725c8343de7c98b5c937f072bc23f802d20b4651e35ce5219de3f8f18f8" }, "downloads": -1, "filename": "truecase-0.0.2.tar.gz", "has_sig": false, "md5_digest": "01507e86bc1f228a770e4f2d5ff1a465", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28799199, "upload_time": "2019-04-28T07:42:11", "url": "https://files.pythonhosted.org/packages/2b/fd/b137a6bf98697bb4c10fbe282b868220e5fc0d84879e3cdf6e73b798d88c/truecase-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "edaf668cb1bcb5e25af00bf21c78626c", "sha256": "e0064bfa2dd76f689629a90f4476287d525a618e594573fa287174ccc9468695" }, "downloads": -1, "filename": "truecase-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "edaf668cb1bcb5e25af00bf21c78626c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 28379081, "upload_time": "2019-04-28T08:37:22", "url": "https://files.pythonhosted.org/packages/0f/2f/3c4a67bedc57608527240da7f8835ccf07629bd6fee71f27b0a6b86eaed7/truecase-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a115879fadc32a961149db1a586fd68a", "sha256": "78c0a2e5b81df8c8a5bf6ce18b8f01f16f85e453012f531cebaf2a4c1f760671" }, "downloads": -1, "filename": "truecase-0.0.3.tar.gz", "has_sig": false, "md5_digest": "a115879fadc32a961149db1a586fd68a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28799167, "upload_time": "2019-04-28T08:38:19", "url": "https://files.pythonhosted.org/packages/bd/d0/b178a321a9ce861ba55cf000b65b75eedb2ea72ca0814468d7aa2512229f/truecase-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "833d149c647bc25eef7c17a3e31daa5e", "sha256": "f34ea7afaf04cadef7580f16fb22e382613d149fe0239c6b7a117ac893871d00" }, "downloads": -1, "filename": "truecase-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "833d149c647bc25eef7c17a3e31daa5e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 28379335, "upload_time": "2019-04-28T09:16:12", "url": "https://files.pythonhosted.org/packages/ef/e2/fe40f5a11020fc1c5f8736fbb7885e8c202a2e01178c720184fc39f45503/truecase-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cacb7dbb6ce090013aeeb4d11064fead", "sha256": "039df8b9bb10a9971ae4b6167ae426d9b8534dee5ff729472286074a147ceb54" }, "downloads": -1, "filename": "truecase-0.0.4.tar.gz", "has_sig": false, "md5_digest": "cacb7dbb6ce090013aeeb4d11064fead", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28799471, "upload_time": "2019-04-28T09:17:13", "url": "https://files.pythonhosted.org/packages/10/49/db6ecc7c2485282928b6f6cedf300e9a76c58ee4c1bf8f1073344c2aa6d9/truecase-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "f163254971ae1cc5cf542c6a316c02cb", "sha256": "8d627504f4acd4e99cd397146d23009d9e34723542f5d64f1dd3a463116e9814" }, "downloads": -1, "filename": "truecase-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "f163254971ae1cc5cf542c6a316c02cb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 28379334, "upload_time": "2019-08-08T04:39:21", "url": "https://files.pythonhosted.org/packages/6d/5e/7b42125518edba99b496072e541385e1253f2d536f5826c4a421110bfc7c/truecase-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a182aad89e9a7dc7da9363e3a3753deb", "sha256": "f18c35743109a982201caf482bf87c0cbd1e5231b1384bb7bbe3c1e90d012225" }, "downloads": -1, "filename": "truecase-0.0.5.tar.gz", "has_sig": false, "md5_digest": "a182aad89e9a7dc7da9363e3a3753deb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28799089, "upload_time": "2019-08-08T04:40:19", "url": "https://files.pythonhosted.org/packages/bf/fe/9a7b70cd7efe0de83b371fb30d2cb68d91616f0b89717ef6d37fd34565ea/truecase-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f163254971ae1cc5cf542c6a316c02cb", "sha256": "8d627504f4acd4e99cd397146d23009d9e34723542f5d64f1dd3a463116e9814" }, "downloads": -1, "filename": "truecase-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "f163254971ae1cc5cf542c6a316c02cb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 28379334, "upload_time": "2019-08-08T04:39:21", "url": "https://files.pythonhosted.org/packages/6d/5e/7b42125518edba99b496072e541385e1253f2d536f5826c4a421110bfc7c/truecase-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a182aad89e9a7dc7da9363e3a3753deb", "sha256": "f18c35743109a982201caf482bf87c0cbd1e5231b1384bb7bbe3c1e90d012225" }, "downloads": -1, "filename": "truecase-0.0.5.tar.gz", "has_sig": false, "md5_digest": "a182aad89e9a7dc7da9363e3a3753deb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28799089, "upload_time": "2019-08-08T04:40:19", "url": "https://files.pythonhosted.org/packages/bf/fe/9a7b70cd7efe0de83b371fb30d2cb68d91616f0b89717ef6d37fd34565ea/truecase-0.0.5.tar.gz" } ] }