{
"info": {
"author": "Anthony Rios",
"author_email": "anthonymrios@gmail.com",
"bugtrack_url": null,
"classifiers": [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English"
],
"description": "pymetamap\n=========\n\nPython wrapper around `MetaMap `_.\nThis will take a list of sentences and extract concepts using MetaMap\nthen return them in the form of a list of Concept objects.\n\n**Note:** This code does **not** work with Windows because of my use of NamedTemporaryFile in SubprocessBackend.py.\n\nHow to Install\n--------------\n\nFirst, install MetaMap by using the following instructions: https://metamap.nlm.nih.gov/Installation.shtml\n\nNext, pymetamap can be installed using the following command:\n\n>>> python setup.py install\n\nExample Usage\n-------------\n\nTo start you must create a MetaMap instance from the pymetamap package.\n::\n >>> from pymetamap import MetaMap\n >>> mm = MetaMap.get_instance('/opt/public_mm/bin/metamap12')\n\nYou must supply the metamap binary to ``get_instance()`` in order to\nextract concepts. Depending on where you installed MetaMap and depending on the version you are using, you will need to change the ``/opt/public_mm/bin/metamap12`` to the correct location. For example, if you installed the 2016 version of MetaMap, then the binary will be called ``metamap16``.\n\nTo extract concepts from a sentence use the ``extract_concepts()``\nmethod. This method taks a list of sentences as input and will return\na list of Concept objects.\n::\n >>> sents = ['Heart Attack', 'John had a huge heart attack']\n >>> concepts,error = mm.extract_concepts(sents,[1,2])\n >>> for concept in concepts:\n ... print concept\n Concept(index='1', mm='MM', score='14.64', preferred_name='Myocardial Infarction', cui='C0027051', semtypes='[dsyn]', trigger='[\"Heart attack\"-tx-1-\"Heart Attack\"]', location='TX', pos_info='1:12', tree_codes='C14.280.647.500;C14.907.585.500')\n Concept(index='2', mm='MM', score='13.22', preferred_name='Myocardial Infarction', cui='C0027051', semtypes='[dsyn]', trigger='[\"Heart attack\"-tx-1-\"heart attack\"]', location='TX', pos_info='17:12', tree_codes='C14.280.647.500;C14.907.585.500')\n\nThis example shows two seperate concepts extracted via MetaMap from two\ndifferent sentences (sentence 1 and sentence 2).\n\nMore Information\n----------------\n\nLicensed under `Apache 2.0 `_.\n\nWritten by Anthony Rios\n\nSpecial thanks to `joaopalotti `_ and others for their contributions.\n\nwebpage: `https://github.com/AnthonyMRios/pymetamap `_",
"description_content_type": null,
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/AnthonyMRios/pymetamap",
"keywords": "",
"license": "Apache 2.0",
"maintainer": "",
"maintainer_email": "",
"name": "pymetamap",
"package_url": "https://pypi.org/project/pymetamap/",
"platform": "",
"project_url": "https://pypi.org/project/pymetamap/",
"project_urls": {
"Homepage": "https://github.com/AnthonyMRios/pymetamap"
},
"release_url": "https://pypi.org/project/pymetamap/0.1/",
"requires_dist": null,
"requires_python": "",
"summary": "Python wrapper around MetaMap",
"version": "0.1"
},
"last_serial": 3567337,
"releases": {
"0.1": [
{
"comment_text": "",
"digests": {
"md5": "03e93df7f5265290ef5dc76b60f3cdcb",
"sha256": "a39e284bb6dd26a29e3be46c92bede347be983c2cb75bccec28618059d92a209"
},
"downloads": -1,
"filename": "pymetamap-0.1-py2.7.egg",
"has_sig": false,
"md5_digest": "03e93df7f5265290ef5dc76b60f3cdcb",
"packagetype": "bdist_egg",
"python_version": "2.7",
"requires_python": null,
"size": 11795,
"upload_time": "2018-02-09T13:40:34",
"url": "https://files.pythonhosted.org/packages/63/da/bb1f3674699814df45f086b3e332978cd5c3dbace74e9e8f5b51dc931749/pymetamap-0.1-py2.7.egg"
},
{
"comment_text": "",
"digests": {
"md5": "a097985c1ad4b66f22f1d86cd01b253e",
"sha256": "b7a060651865ad2f10b245d931935c1bfe8f07ea3f9988aedbb36e14e5e15c94"
},
"downloads": -1,
"filename": "pymetamap-0.1.tar.gz",
"has_sig": false,
"md5_digest": "a097985c1ad4b66f22f1d86cd01b253e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4922,
"upload_time": "2018-02-09T13:40:36",
"url": "https://files.pythonhosted.org/packages/37/4f/495dbe34bb7cd5ce06d24360e3634a15ec8561133f7c142aec549cb2a59d/pymetamap-0.1.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "03e93df7f5265290ef5dc76b60f3cdcb",
"sha256": "a39e284bb6dd26a29e3be46c92bede347be983c2cb75bccec28618059d92a209"
},
"downloads": -1,
"filename": "pymetamap-0.1-py2.7.egg",
"has_sig": false,
"md5_digest": "03e93df7f5265290ef5dc76b60f3cdcb",
"packagetype": "bdist_egg",
"python_version": "2.7",
"requires_python": null,
"size": 11795,
"upload_time": "2018-02-09T13:40:34",
"url": "https://files.pythonhosted.org/packages/63/da/bb1f3674699814df45f086b3e332978cd5c3dbace74e9e8f5b51dc931749/pymetamap-0.1-py2.7.egg"
},
{
"comment_text": "",
"digests": {
"md5": "a097985c1ad4b66f22f1d86cd01b253e",
"sha256": "b7a060651865ad2f10b245d931935c1bfe8f07ea3f9988aedbb36e14e5e15c94"
},
"downloads": -1,
"filename": "pymetamap-0.1.tar.gz",
"has_sig": false,
"md5_digest": "a097985c1ad4b66f22f1d86cd01b253e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4922,
"upload_time": "2018-02-09T13:40:36",
"url": "https://files.pythonhosted.org/packages/37/4f/495dbe34bb7cd5ce06d24360e3634a15ec8561133f7c142aec549cb2a59d/pymetamap-0.1.tar.gz"
}
]
}