alt text

PyPI version Contributions welcome License Apache 2.0 Language Python3

dialogbot

dialogbot, provide complete dialogue model technology. Combining task-based dialogue model, search-based dialogue model and generative dialogue model, output the optimal dialogue response.

Base on semantic analysis(tensorflow), knowledge graph(neo4j) and data mining(spider).


Feature

Retrieval Dialogue Bot

Compute questions similarity, use

Goal Oriented Dialogue Bot

Generative Dialogue Bot

Quick Start

Requirements and Installation

The project is based on Tensorflow 1.12.0+ and Python 3.6+. Then, simply do:

pip3 install dialogbot

or

git clone https://github.com/shibing624/dialogbot.git
cd dialogbot
python3 setup.py install

Example Usage

Let's run chat bot:

import dialogbot import Bot

bot = Bot()
response = bot.answer('亲 吃了吗?')
print(response)

Done!

This should print:

query: "亲 吃了吗?"

answer: "吃了的,你好呀"

Demo

http://www.borntowin.cn:8821

Contact

Please email your questions or comments to xuming(shibing624).

Contributing

Thanks for your interest in contributing! There are many ways to get involved; start with our contributor guidelines and then check these open issues for specific tasks.

For contributors looking to get deeper into the API we suggest cloning the repository and checking out the unit tests for examples of how to call methods. Nearly all classes and methods are documented, so finding your way around the code should hopefully be easy.

reference

License

The Apache License 2.0