摘要
对话机器人是使用自然语言处理与生成技术,模拟人类对话逻辑并与人进行交流的计算机程序。作为新一代人工智能产品的人机交互主要入口,逻辑实现方式与交互是对话机器人设计的关键。本文结合对话机器人的技术特点,在实现过程中采用基于Python语言的Django微服务Web应用开发框架,将对话算法模型与逻辑处理过程进行微服务化API封装,使其他应用能够请求对话服务的接口进行功能的二次开发。为了提高对话响应速度,本文采用了关系型数据库MySQL与基于内存的非关系型数据库Redis结合的方式,减少算法模型对硬盘的读取次数,优化了用户体验。
A chatbot is a computer program that simulates human conversation and communicates with human through natural language processing and generation technology.As main access to human-computer interaction for a new generation of artificial intelligence products,logical implementation and interaction are critical to the design of chatbots.Based on technical characteristics of chatbots,this paper adopts Python-based Django micro-service web application development framework in the implementation and encapsulates dialogue algorithm model and logic processing process into a microservice API(Application Programming Interface).Thus,other applications can request the interface of dialogue service for a secondary development of functions.In order to improve the efficiency of query processing,a memory-based non-relational database Redis(Remote Dictionary Server)is used with relational database MySQL(Structured Query Language)to reduce the number of reads from hard disk and so to optimize system performance.
作者
孙小鱼
SUN Xiaoyu(Dalian Neusoft University of Information,Dalian 116023,China;Research Institute,Dalian Neusoft Education Technology Group Co.Limited,Dalian 116023,China)
出处
《软件工程》
2021年第2期45-48,29,共5页
Software Engineering