Using the Python SDK
Video
Installing the Python SDK
In order to start using Lettria you will need to install the Python SDK and obtain an API key.
pip install lettria
If you don’t have PIP you can use the following command to install it.
$ curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python
Obtaining an API key
Next you are going to need an API key. In order to obtainn a free API key you can sign up to lettria and login to your account. Access the tokens from the dashboard. Copy the token and add it to the following command.
api_key = ‘personal API_key’
nlp = lettria.NLP(api_key)
Now you’re ready to start using the SDK. Add a document and start making calls to the API.
Code set
pip install lettria
# if you don't have pip installed use the following command
$ curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python
api_key = ‘personal API_key’
nlp = lettria.NLP(api_key)