Yoctol Natural Language Understanding SDK
Project description
# yoctol-nlu-py
[![Build Status](https://travis-ci.org/Yoctol/yoctol-nlu-py.svg?branch=master)](https://travis-ci.org/Yoctol/yoctol-nlu-py)
[![PyPI version](https://badge.fury.io/py/yoctol-nlu.svg)](https://badge.fury.io/py/yoctol-nlu)
Yoctol Natural Language Understanding SDK for python.
## Install
Use Python3
```
pip install yoctol-nlu
```
## Usage
### Intent Classifier Service
For existing classifier:
```python
from time import sleep
from ynlu import NLUClient
client = NLUClient(
token='TOKEN_HERE',
classifier_ids=['clf_id1', 'clf_id2', 'more_clf_ids']
)
# get the model given the classifier_id
model = client['clf_id1']
intent_result, entity_result = model.predict('飲料喝到飽')
```
[![Build Status](https://travis-ci.org/Yoctol/yoctol-nlu-py.svg?branch=master)](https://travis-ci.org/Yoctol/yoctol-nlu-py)
[![PyPI version](https://badge.fury.io/py/yoctol-nlu.svg)](https://badge.fury.io/py/yoctol-nlu)
Yoctol Natural Language Understanding SDK for python.
## Install
Use Python3
```
pip install yoctol-nlu
```
## Usage
### Intent Classifier Service
For existing classifier:
```python
from time import sleep
from ynlu import NLUClient
client = NLUClient(
token='TOKEN_HERE',
classifier_ids=['clf_id1', 'clf_id2', 'more_clf_ids']
)
# get the model given the classifier_id
model = client['clf_id1']
intent_result, entity_result = model.predict('飲料喝到飽')
```
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.4.0.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for yoctol_nlu-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e2042b554e7019bfbcd22f5d61fe378869effaaebb11aec9cca08caf7ba40b9 |
|
MD5 | deabc860fc743d5d20d973e0abb768b3 |
|
BLAKE2b-256 | 6c9d1ee5698f53ab73a456c94e3b00470ed0487cbf2569c10718fcab68af812d |