{ "info": { "author": "Heramb Devbhankar", "author_email": "heramb1711@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# Spoken English to Written English translator\n\nThere exits a difference between how we write and how we speak. e.g While speaking we say \"I paid twenty thousand dollars to xyz organization\". But, we don't write above example as it is, instead we write it as \"I paid $20000 to xyz organization.\"\nThis is a python module is to translates such spoken english language to its written form.\n\ne.g. It will translate: \"I watched movie named triple H .\" to \"I watched movie named HHH\"\n \"My weight is fifty five kilograms .\" to \"My weight is 55 kg\"\n \"I paid twenty thousand dollars to xyz organization .\" to \"I paid $20000 to xyz organization .\"\n\n

Installation guide

\n\nRun this command in terminal:\n```\npip install spoken2written\n```\nThe dependencies spaCy,word2number will also be installed after installing the package.\nIt is better to have english language dependency requirement of spacy which is en_core_web_sm\n\nTo install this en_core_web_sm, run following command in terminal\n```\npython -m spacy download en_core_web_sm\n```\n

Usage

\n\nFirst you have to import the module using the below code.\n```\nimport spoken2written\n```\nIf it shows error during importing then spacy english dependency package is not installed in your device. In this case,\ninstall en_core_web_sm library using the command mentioned above.\n\nAfter importing the package use TextTraslator method to translate spoken English to written form.\n\nExample script:\n```\n>>>from spoken2written import TextTranslator\n...test= \"My life is triple B . European authorities fined Google a record sixty five thousand dollars on Wednesday for abusing its power in the mobile phone market and ordered the company to alter its practices . Furthermore , My T - Shirt size is double X in 2019 and it costs six dollars . My weight is fifty kilograms .\"\n...result=TextTranslator(test)\n...print(result)\n```\nOutput:\n```\nMy life is BBB . European authorities fined Google a record $65000 on Wednesday for abusing its power in the mobile phone market and ordered the company to alter its practices . Furthermore , My T - Shirt size is XX in 2019 and it costs $6 . My weight is 50 kg .\n```\n\n

Features Used to Develop this package

\n\n1. Name Entity Recognition technique is used to detect entities from given input. Name Entity Recognition is done using the library named 'spaCy'. Entities such as QUANTITY (E.g weight: fifty kilograms), MONEY(e.g. amount: thousand dollars), PROPER NOUNS are detected using this technique.\n\n2. The package word2number is used to convert numbers written as 'two thousand' to '2000'. Furthermore, few lines of logical code adds suffix/prefix as $/kg,etc. depending upon type of entity.\n\n3. In some texts entity such as\"double X\" may occur. In this case, the word double acts as adjective followed by X as noun. To detect such texts along with their corresponding parts of speech spacy Token Matcher is used. Again, after detection of entity few lines of logical code will translate \"double X\" to \"XX\".\n\nThe logical code for all functions in this package could be found in file spoken2written/spoken2written/spoken2written.py of this repository\n\n

Bugs/ Errors

\nPlease ensure that you have installed dependency en_core_web_sm of spacy before importing package written2spoken. If you find any bugs/errors in the usage of above code, please raise an issue through GitHub. Else, send an email to heramb1711@gmail.com.\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/HerambVD/spoken2written", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "spoken2written", "package_url": "https://pypi.org/project/spoken2written/", "platform": "", "project_url": "https://pypi.org/project/spoken2written/", "project_urls": { "Homepage": "https://github.com/HerambVD/spoken2written" }, "release_url": "https://pypi.org/project/spoken2written/0.1.4/", "requires_dist": [ "spacy", "word2number" ], "requires_python": ">=3.5", "summary": "This package is to translate spoken languag to its written form", "version": "0.1.4", "yanked": false, "yanked_reason": null }, "last_serial": 6033774, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "08411c15027770b3fdb4ec8acb3f6647", "sha256": "3d1d65c6f6fb4c3cd034f014e106dfb42a76f81689cb35f164dcbed9d64dad5d" }, "downloads": -1, "filename": "spoken2written-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "08411c15027770b3fdb4ec8acb3f6647", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4860, "upload_time": "2019-10-24T13:05:11", "upload_time_iso_8601": "2019-10-24T13:05:11.397049Z", "url": "https://files.pythonhosted.org/packages/ad/7a/593c131bd80fb92e43acc82e9bb1de8a57b6692dd3261e7f45b9956da2bc/spoken2written-0.1.1-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "659d0f060ca158af95fc8307dc63be87", "sha256": "93020e95bf84f8a2d6fe3e2a558cd527940295bb42766f9c4139c95cfbe8c476" }, "downloads": -1, "filename": "spoken2written-0.1.1.tar.gz", "has_sig": false, "md5_digest": "659d0f060ca158af95fc8307dc63be87", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2616, "upload_time": "2019-10-24T13:05:13", "upload_time_iso_8601": "2019-10-24T13:05:13.010101Z", "url": "https://files.pythonhosted.org/packages/89/0e/e763e7ff05c18fe19a740255b31b14dcfa420ff1bac87df43890313a9a44/spoken2written-0.1.1.tar.gz", "yanked": false, "yanked_reason": null } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "6c7328b833f4663ba7d3c1e10c7c8e57", "sha256": "baf60466280ec05f0113d4182eb0caf9ee976df2d1ee1e7200cb948f29cb2a9b" }, "downloads": -1, "filename": "spoken2written-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "6c7328b833f4663ba7d3c1e10c7c8e57", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 3347, "upload_time": "2019-10-24T18:01:20", "upload_time_iso_8601": "2019-10-24T18:01:20.803342Z", "url": "https://files.pythonhosted.org/packages/55/b0/05f2b2762de2fad5e8d2399c4d900565c12d4173a791312fac989c50e5ec/spoken2written-0.1.2-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "b99f747ce53dc6f09f15c0f528f3b902", "sha256": "02458d482786bfbf5c4b16865ac67f86fc5ad7bb5c045a08abdb78cb4b80c2fd" }, "downloads": -1, "filename": "spoken2written-0.1.2.tar.gz", "has_sig": false, "md5_digest": "b99f747ce53dc6f09f15c0f528f3b902", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 2867, "upload_time": "2019-10-24T18:01:22", "upload_time_iso_8601": "2019-10-24T18:01:22.440944Z", "url": "https://files.pythonhosted.org/packages/13/6f/55fcd5ed4439b84b07e0700b272782387d1eaa1fb4f2810a83b71fcda074/spoken2written-0.1.2.tar.gz", "yanked": false, "yanked_reason": null } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "0b6e83121b4459705b7a8b701301eeec", "sha256": "b5e93903c0f79825203ad624ca793f286917a8284bec3a632dae53695ab733e4" }, "downloads": -1, "filename": "spoken2written-0.1.4-py3-none-any.whl", "has_sig": false, "md5_digest": "0b6e83121b4459705b7a8b701301eeec", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 4710, "upload_time": "2019-10-26T12:50:13", "upload_time_iso_8601": "2019-10-26T12:50:13.211077Z", "url": "https://files.pythonhosted.org/packages/e8/94/603cbff1564a07c55d2553778b9b366f583ef0c557b81eba3bb3a0a38abe/spoken2written-0.1.4-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "50cacee7d25dcba9726a9968f3da08e4", "sha256": "cf2018c519e103222811e204a41872255068ce0af7aab534c1ce584134b3eb0e" }, "downloads": -1, "filename": "spoken2written-0.1.4.tar.gz", "has_sig": false, "md5_digest": "50cacee7d25dcba9726a9968f3da08e4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 4360, "upload_time": "2019-10-26T12:50:14", "upload_time_iso_8601": "2019-10-26T12:50:14.933977Z", "url": "https://files.pythonhosted.org/packages/28/d0/e044f9531b970b4208303cd22823257982e16e7b88169a2a73c148f0df11/spoken2written-0.1.4.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0b6e83121b4459705b7a8b701301eeec", "sha256": "b5e93903c0f79825203ad624ca793f286917a8284bec3a632dae53695ab733e4" }, "downloads": -1, "filename": "spoken2written-0.1.4-py3-none-any.whl", "has_sig": false, "md5_digest": "0b6e83121b4459705b7a8b701301eeec", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 4710, "upload_time": "2019-10-26T12:50:13", "upload_time_iso_8601": "2019-10-26T12:50:13.211077Z", "url": "https://files.pythonhosted.org/packages/e8/94/603cbff1564a07c55d2553778b9b366f583ef0c557b81eba3bb3a0a38abe/spoken2written-0.1.4-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "50cacee7d25dcba9726a9968f3da08e4", "sha256": "cf2018c519e103222811e204a41872255068ce0af7aab534c1ce584134b3eb0e" }, "downloads": -1, "filename": "spoken2written-0.1.4.tar.gz", "has_sig": false, "md5_digest": "50cacee7d25dcba9726a9968f3da08e4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 4360, "upload_time": "2019-10-26T12:50:14", "upload_time_iso_8601": "2019-10-26T12:50:14.933977Z", "url": "https://files.pythonhosted.org/packages/28/d0/e044f9531b970b4208303cd22823257982e16e7b88169a2a73c148f0df11/spoken2written-0.1.4.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }