nithinmurali / pywit

Python library for Wit.ai

Home Page:https://wit.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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))

About

Python library for Wit.ai

https://wit.ai

License:Other


Languages

Language:Python 100.0%