Skip to main content

ScienceIO Python SDK

Project description


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",
>>>     email='',
>>>     password='Sample_Password_2021!',
>>> )
>>> print(response)

Querying the BioNLP API:

>>> scio_client = ScienceIO(
>>>     login='',
>>>     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)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for scienceio, version 0.1.1
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

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page