connect-umls-0.0.2
توضیحات
Make connecting to the UMLS rest APIs easier
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | connect-umls-0.0.2 |
| نام | connect-umls |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Grace Turner |
| ایمیل نویسنده | gracekatherineturner@gmail.com |
| آدرس صفحه اصلی | https://gitlab.com/gracekatherineturner/umls_connect |
| آدرس اینترنتی | https://pypi.org/project/connect-umls/ |
| مجوز | - |
Super light UMLS connection. The goal is to feel similar to the UMLS browser.
Requires no downloading, but the UMLS rest connection is somewhat slow so user beware.
You need to make an account with UMLS.
```python
import connect_umls as um
umls = um.UMLS(apikey)
```
Your api key can be found here: https://documentation.uts.nlm.nih.gov/rest/authentication.html
You only need to supply the api key in step 1. We take care of all the ticket nonsense.
Example:
```python
#get top 10 search results
results = umls.search("joint pain hip", k=10)
#"CUI"|"Term"|"Code" default Term. CUI - the cui. Term - the text words. Code - the code.
for result in results:
code = result.cui() # the CUI
name = result.name() # the main name
synonyms = result.synonyms() # all the different names of the atoms
if result.hasMapping("LNC"):
# check if this result maps to a certain codeset, eg. SNOMED-CT.
## Note: you will need to give the UMLS short hand version of the codeset name.
## e.g. "LNC" not "LOINC"
print("There is a map to LOIN-C!")
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl connect-umls-0.0.2:
pip install connect-umls-0.0.2.whl
نصب پکیج tar.gz connect-umls-0.0.2:
pip install connect-umls-0.0.2.tar.gz