Yoctol Natural Language Understanding SDK
Project description
# yoctol-nlu-py
Yoctol Natural Language Understanding SDK for python.
## Install
```
pip install yoctol-nlu
```
## Usage
###Intent Classifier Service
For new user:
```python
from yoctol_nlu import IntentClassifierClient
client = IntentClassifierClient(
url='xxx.xxx.xxx.x' # will be removed after 1.0.0
token='TOKEN',
)
client.create_classifier(
name='clf_for_test'
)
client.create_intents([])
print(client.data)
client.train()
```
For existing classifier:
```python
from yoctol_nlu import IntentClassifierClient
client = IntentClassifierClient(
url='xxx.xxx.xxx.x' # will be removed after 1.0.0
token='TOKEN',
classifier_id='CLASSIFIER_ID'
)
```
Yoctol Natural Language Understanding SDK for python.
## Install
```
pip install yoctol-nlu
```
## Usage
###Intent Classifier Service
For new user:
```python
from yoctol_nlu import IntentClassifierClient
client = IntentClassifierClient(
url='xxx.xxx.xxx.x' # will be removed after 1.0.0
token='TOKEN',
)
client.create_classifier(
name='clf_for_test'
)
client.create_intents([])
print(client.data)
client.train()
```
For existing classifier:
```python
from yoctol_nlu import IntentClassifierClient
client = IntentClassifierClient(
url='xxx.xxx.xxx.x' # will be removed after 1.0.0
token='TOKEN',
classifier_id='CLASSIFIER_ID'
)
```
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
yoctol-nlu-0.1.0.tar.gz
(1.2 kB
view hashes)