{
"info": {
"author": "Charles Marsh",
"author_email": "crmarsh@princeton.edu",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Human Machine Interfaces",
"Topic :: Text Processing :: Linguistic"
],
"description": "===========\nSemantic\n===========\n\n.. image:: https://badge.fury.io/py/semantic.png\n :target: http://badge.fury.io/py/semantic\n\nSemantic is a Python library for extracting semantic information from text, including dates, numbers, mathematical equations, and unit conversions.\n\nFor each of these four semantic types, semantic provides a service module. Typical usage often looks like this::\n\n #!/usr/bin/env python\n from semantic.dates import DateService\n\n service = DateService()\n date = service.extractDate(\"On March 3 at 12:15pm...\")\n ...\n\nThe full documentation can be found `here `_, while the source code itself is also available on `GitHub `_.\n\nInstallation\n============\n\nInstalling semantic is simple::\n\n $ pip install semantic\n\nFeatures\n========\n\nsemantic contains four main modules, each of which corresponds to a different semantic extractor.\n\nDates (*date.py*)\n-----------------\n\nUseful for:\n\n* Extracting relative (e.g., \"a week from today\") and absolute (e.g., \"December 11, 2013\") dates from text snippets.\n* Converting date objects to human-ready phrasing.\n\nNumbers (*number.py*)\n---------------------\n\nUseful for:\n\n* Extracting numbers (integers or floats) from text snippets.\n* Converting numbers to human-readable strings.\n\nExample usage::\n\n #!/usr/bin/env python\n from semantic.numbers import NumberService\n\n service = NumberService()\n\n print service.parse(\"Two hundred and six\")\n # 206\n\n print service.parse(\"Five point one five\")\n # 5.15\n\n print service.parse(\"Eleven and two thirds\")\n # 11.666666666666666\n\n print service.parseMagnitude(\"7e-05\")\n # \"seven to the negative five\"\n\n\nMath (*solver.py*)\n------------------\n\nUseful for performing mathematical operations expressed as words.\n\nExample usage::\n\n #!/usr/bin/env python\n from semantic.solver import MathService\n\n service = MathService()\n\n print service.parseEquation(\"Log one hundred and ten\")\n # 4.70048\n\nUnits (*units.py*)\n------------------\n\nUseful for converting between units expressed as words.\n\nExample usage::\n\n #!/usr/bin/env python\n from semantic.units import ConversionService\n\n service = ConversionService()\n\n print service.convert(\"Seven and a half kilograms to pounds\")\n # (16.534, 'lbs')\n\n print service.convert(\"Seven and a half pounds per square foot to kilograms per meter squared\")\n # (36.618, 'kg/m**2')\n\n\nTesting\n=======\n\nThe test suite (*test.py*) contains tons of examples and use-cases for each of the four modules.\n\nRequirements\n============\n\nThe Dates, Numbers, and Math modules can run in isolation (i.e., without any dependencies), while the Units module requires `quantities `_ and `Numpy `_.\n\nLicense\n=======\n\nMIT \u00a9 `Charles Marsh `_",
"description_content_type": null,
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/crm416/semantic",
"keywords": "",
"license": "",
"maintainer": "",
"maintainer_email": "",
"name": "semantic3",
"package_url": "https://pypi.org/project/semantic3/",
"platform": "",
"project_url": "https://pypi.org/project/semantic3/",
"project_urls": {
"Homepage": "https://github.com/crm416/semantic"
},
"release_url": "https://pypi.org/project/semantic3/1.0.2/",
"requires_dist": null,
"requires_python": "",
"summary": "Common Natural Language Processing Tasks for Python",
"version": "1.0.2"
},
"last_serial": 2957093,
"releases": {
"1.0.2": [
{
"comment_text": "",
"digests": {
"md5": "bb5598af5827125c24a2854eafe329b1",
"sha256": "1bd33892dee8b637222570f90e71dad47da1235fc1904eaff7c1f153449d2d41"
},
"downloads": -1,
"filename": "semantic3-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "bb5598af5827125c24a2854eafe329b1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 14776,
"upload_time": "2017-06-18T03:46:49",
"url": "https://files.pythonhosted.org/packages/55/db/64642ec40db6547485894bd58946bb01343c4ec8411ca8baf07607cb28f0/semantic3-1.0.2.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "bb5598af5827125c24a2854eafe329b1",
"sha256": "1bd33892dee8b637222570f90e71dad47da1235fc1904eaff7c1f153449d2d41"
},
"downloads": -1,
"filename": "semantic3-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "bb5598af5827125c24a2854eafe329b1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 14776,
"upload_time": "2017-06-18T03:46:49",
"url": "https://files.pythonhosted.org/packages/55/db/64642ec40db6547485894bd58946bb01343c4ec8411ca8baf07607cb28f0/semantic3-1.0.2.tar.gz"
}
]
}