python ai对话系统_TaTk是由清华大学会话AI小组开发的面向任务的开源对话系统工具包。...

Task-oriented Dialog System Toolkits

TaTk is an open-source task-oriented dialog system toolkits developed by Tsinghua University Conversational AI group (THU-coai). We provide several models for each module in dialog system, as well as some joint models and end-to-end models. It's easy to combine the modules to build a dialog system and replace some modules with yours to evaluate them in system level. Further more, user simulator (policy for user agent) is provided for system policy training. Our unified agent definition also supports symmetric agents for negotiation dialog and multiple agents for multiparty dialog.

Features included:

Complete and configurable framework for task-oriented dialog system.

Pre-trained models on Multiwoz, Camrest, Dealornot dataset.

Simple interfaces for adapting your models.

Rule simulators on Multiwoz and Camrest dataset for RL policy training.

Unified agent definition which allows customized dialog scene such as multiparty dialog.

This project is a part of dialtk (Toolkits for Dialog System by Tsinghua University), you can follow dialtk or tatk on our home page. Some code are shared with Convlab.

Installation

Require python 3.6.

Clone this repository:

git clone https://github.com/thu-coai/tatk.git

Install tatk via pip:

cd tatk

pip install -e .

Tutorials

Tutorials are under tutorials directory. You can also view it on dialtk/tatk.

Documents

Models

We provide following models:

NLU: SVMNLU, BERTNLU

DST: rule, MDBT

Policy: rule, Imitation, REINFORCE, PPO, MDRG

Simulator policy: Agenda, VHUS

NLG: Template, SCLSTM

End2End: Sequicity, RNN_rollout

For more details about these models, You can refer to README.md under tatk/$module/$model/$dataset dir such as tatk/nlu/bert/multiwoz/README.md.

Supported Dataset

Multiwoz

We add user dialog act (inform, request, bye, greet, thank), remove 5 sessions that have incomplete dialog act annotation and place it under data/multiwoz dir.

Train/val/test size: 8434/999/1000. Split as original data.

LICENSE: Attribution 4.0 International, url: http://creativecommons.org/licenses/by/4.0/

Camrest

We add system dialog act (inform, request, nooffer) and place it under data/camrest dir.

Train/val/test size: 406/135/135. Split as original data.

LICENSE: Attribution 4.0 International, url: http://creativecommons.org/licenses/by/4.0/

Dealornot

Place it under data/dealornot dir.

Train/val/test size: 5048/234/526. Split as original data.

LICENSE: Attribution-NonCommercial 4.0 International, url: https://creativecommons.org/licenses/by-nc/4.0/

Issues

You are welcome to create an issue if you want to request a feature, report a bug or ask a general question.

Contributions

We welcome contributions from community.

If you want to make a big change, we recommend first creating an issue with your design.

Small contributions can be directly made by a pull request.

If you like make contributions for our library, see issues to find what we need.

Team

tatk is maintained and developed by Tsinghua university conversational AI group (THU-coai). Check our main pages (In Chinese).

License

Apache License 2.0

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值