kevwan/chatbot
소개
Go로 작성된 빠르고 응답성이 뛰어난 머신러닝 대화 엔진으로, 챗봇을 만들 수 있습니다.
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalchatbot
English | 简体中文
chatbot is a conversational dialog engine build in Go which makes it possible to generate responses based on collections of known conversations. The language independent design of chatbot allows it to be trained to speak any language. It’s much faster than ChatterBot, our benchmark on 120 million conversations:
- ChatterBot takes 21s to answer
- chatbot takes 18ms to answer
Project layout and command line tools
bot
Conversational dialog engine
cli
train
Train the given conversation data and generate corpus format file
.gob-dreads alljsonandyamlcorpus files in the specified directory-iread the specifiedjsonoryamlcorpus files, splitting multiple files by commas-ospecify the output.gobfile-mprint memory usage at regular intervals
ask
An example question and answer command line tool
-vverbose-ctrained.gobfile-tdata for several possible answers
Data format
The data format can be provided via yaml or json files, refer to the format in https://github.com/kevwan/chatterbot-corpus. Roughly, it is as follows.
categories:
- AI
- artificial intelligence
conversations:
- - What is AI?
- Artificial Intelligence is the branch of engineering and science devoted to constructing machines that think.
- - Are you sentient?
- Sort of.
Example of a question and answer
user: how are you?
bot: I am doing well, how about you?
user: I'm doing well, thanks!
bot: That is good to hear
Acknowledgements
go-zero - https://github.com/zeromicro/go-zero
The MapReduce implementation of go-zero in core/mr package gives chatbot a huge performance boost!
ChatterBot - https://github.com/gunthercox/ChatterBot
I was using ChatterBot at first, but it responds too slow, so I decided to implement it myself. Thanks to ChatterBot, great project!
Give a Star! ⭐
If you like or are using this project to learn or start your solution, please give it a star. Thanks!
관련 프로젝트 살펴보기
불러오는 중…