ScienceIO Python SDK
The official ScienceIO Python SDK for the BioNLP API.
As of today (June 22nd 2021), it supports sending documents to the BioNLP API, and returns the array of spans and the original text. Aggregations are not included.
This package is available via Pypi:scienceIO.
Usage and examples
Creating a new user:
>>> from scienceio import ScienceIO >>> response = ScienceIO.register( >>> first_name="Demo", >>> last_name="User", >>> firstname.lastname@example.org', >>> password='Sample_Password_2021!', >>> ) >>> print(response)
Querying the BioNLP API:
>>> scio_client = ScienceIO( >>> email@example.com', >>> password='Sample_Password_2021!', >>> ) >>> query_text = ( >>> 'The COVID-19 pandemic has shown a markedly low proportion of ' >>> 'cases among children 1–4. Age disparities in observed cases could be ' >>> 'explained by children having lower susceptibility to infection, lower ' >>> 'propensity to show clinical symptoms or both.' >>> ) >>> response = scio_client.annotate(text=query_text) >>> print(response)
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size scienceio-0.1.1-py3-none-any.whl (3.3 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size scienceio-0.1.1.tar.gz (3.2 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for scienceio-0.1.1-py3-none-any.whl