Skip to main content

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('飲料喝到飽')

```


Project details


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)

Uploaded Source

Built Distribution

yoctol_nlu-0.4.0-py3-none-any.whl (9.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page