ScienceIO Python SDK
Project description
ScienceIO
The official ScienceIO Python SDK for the BioNLP API.
This package is available via Pypi:scienceIO.
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
scienceio-0.3.3.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for scienceio-0.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a022ab87d8b028c1c657f726eccb2c3f9176f1ca616d0a82bbda6c9c88fefd65 |
|
MD5 | 17bdc4a0b49cc9014bb43737266f04ac |
|
BLAKE2b-256 | d4204739afcc5c0146420346e76d12a6d7d0e3255878879aafb749daa42f0937 |