pywit
pywit
is a Python client to easily use the Wit.ai HTTP API.
Install
pip install wit
Usage
import wit
print(wit.message('MY_ACCESS_TOKEN', 'turn on the lights in the kitchen'))
See below for more examples.
Install from source
git clone https://github.com/wit-ai/pywit
python setup.py install
API
import wit
if __name__ == '__main__':
access_token = 'MY_ACCESS_TOKEN'
# GET /message to extract intent and entities from user request
response = wit.message('turn on the lights in the kitchen', access_token)
print('/message -> {}'.format(response))