读取excel中问题,配置默认返回值,数据存储为mongo
Apdater类型:
logic_adapters:机器人应答逻辑
Closest Match Adapter :字符串模糊匹配(编辑距离)
Closest Meaning Adapter :借助nltk的WordNet,近义词评估
Time Logic Adapter :处理涉及时间的提问
Mathematical Evaluation Adapter: 涉及数学运算
storage_adapters:存储器后端
Read Only Mode :只读模式,当有输入数据到chatterbot的时候,数据库并不会发生改变
Json Database Adapter :用以存储对话数据的接口,对话数据以Json格式进行存储。
Mongo Database Adapter 以MongoDB database:方式来存储对话数据
input_adapters:输入形式
Variable input type adapter :允许chatter bot接收不同类型的输入的,如strings,dictionaries和Statements
Terminal adapter :使得ChatterBot可以通过终端进行对话
HipChat Adapter :使得ChatterBot 可以从HipChat聊天室获取输入语句,通过HipChat 和 ChatterBot 进行对话
Speech recognition :语音识别输入,详见chatterbot-voice
output_adapters:输出形式
Output format adapter:支持text,json和object格式的输出
Terminal adapter
HipChat Adapter
Mailgun adapter:允许chat bot基于Mailgun API进行邮件的发送
Speech synthesisTTS(Text to speech)部分,详见chatterbot-voice
1 | #!/usr/bin/python |
@http://www.shareditor.com/blogshow?blogId=64
开发文档:
@https://chatterbot.readthedocs.io/en/stable/index.html
github:
@https://github.com/gunthercox/ChatterBot