GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - chatopera/clause-sdk-python: Python SDK for Clause, 语义理解服务

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
clause
clause
 
 
dist
dist
 
 
scripts
scripts
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
requirements.txt
requirements.txt
 
 
setup.cfg
setup.cfg
 
 
setup.py
setup.py
 
 

Repository files navigation

py-clause

开源语义理解服务Clause的 Python 客户端。

安装

该Python包已经上传至pypi,用户可以使用pip直接安装。

pip install clause

当前稳定版本为 1.x。

示例代码:

from clause import Client, Data
from clause import CustomDict

bot = Client(HOST_IP, HOST_PORT)
# 创建自定义词典
data = Data()
data.customdict = CustomDict(name=customDictName, chatbotID=chatbot_id)
response = self.bot.postCustomDict(data)

更多使用请参考示例程序。

示例程序

前提是已经部署了 Clause 服务,该示例程序介绍了如何在 Python 应用中,使用 Clause 服务构建聊天机器人,包括创建意图、创建说法、创建词典、引用系统词典、创建槽位、训练机器人和对话等部分。

该示例程序实现的对话场景介绍,熟悉对话场景有助于更好的掌握程序。

git clone https://github.com/chatopera/py-clause.git
cd py-clause
cp scripts/localrc.sample scripts/localrc
vim scripts/localrc # 使用文本编辑器编辑 scripts/localrc,更新CL_HOST和CL_PORT
./scripts/test.sh   # 执行测试程序

更详细的代码请参考链接。

API 接口详细介绍

参考链接。

开源许可协议

Copyright (2019) 北京华夏春松科技有限公司

Apache License Version 2.0

chatoper banner

About

Python SDK for Clause, 语义理解服务

github.com/chatopera/clause

Topics

chatbotnatural-language-processingnatural-language-understandingpython

Resources

Readme
License

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

9 stars

Watchers

3 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.