ScienceIO Python SDK
Project description
ScienceIO
The official ScienceIO Python SDK for the BioNLP API.
This package is available via Pypi:scienceIO. View full documentation at ScienceIO Docs.
Usage and examples
-
Install ScienceIO
pip install scienceio
-
Register:
from scienceio import ScienceIO ScienceIO.register( first_name="Demo name", last_name="Demo lastname", email="your@email.com" )
You will be sent an email asking you to verify your account. As part of the process you will be asked to create a password.
-
Create a directory
.scio
in your home directory (Mac users, your home directory is/Users/{username}
. Linux users, your home directory is/home/{username}
. Windows users, your home directory isC:\\Users\{username})
Inside this directory, create a text file calledconfig
containing your credentials:[SETTINGS] email=your@email.com
-
Query the BioNLP API:
scio = ScienceIO() 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.' ) results = scio.annotate(query_text) print(results)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for scienceio-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 194c12974d6347c207c77a8206747dc687c5834fc63ef27e17ad5536221ef925 |
|
MD5 | 8323e30e57a55e236b6e20141cc6233a |
|
BLAKE2b-256 | e2d4edab56c6d23a100788f5e2f3114ee906995fa2ed631089132d77e5ca1c32 |