一个中文对话系统的设计与实现

 2023-03-05 12:03

论文总字数:24107字

摘 要

对话系统是人机交互的一种新的方式。聊天机器人是一种特殊对话系统。它的特点是模仿人的语言习惯。大多都是通过模式匹配的方式来寻找问题最合适的答案。对于已知问题的答案,往往回答的比较准确。而对于不知道的问题,则通过转移话题猜测,或者回答不知道的方式给出回答。

本课题在充分研究android基本架构、图灵机器人和讯飞语音平台的基础上,设计和实现一个中文对话系统。主要工作有:

系统的需求分析与设计。系统的主要功能分为文本聊天模式,语音聊天模式,以及学习模式,删除记录。以此作为一个中文对话的系统的基本框架。

系统的设计与实现。其中介绍系统的开发环境、系统的工程视图和具体的系统功能实现。在实现了基本的聊天机器人系统功能上,系统整合了图灵机器人与讯飞语音的第三方API的接口,使系统的功能更加完善。系统对用户的输入句子进行中文分词,在分词结束后进行规则匹配算法,在得到最优匹配后从答案库中找出结果,否则进行其他算法。

系统设计完成后,分别在android2.3、android4.0模拟器及HTC、三星、小米等android2.3版本以上平台完成测试且运行效果良好。

关键词:中文对话、android平台、讯飞语音平台、图灵机器人、中文分词

Abstract

Dialogue system is a new way of human-computer interaction . Chatbot is a special dialog system. It is characterized by imitating human language habits. Mostly to find the most appropriate answer by pattern matching approach. For the answer to that question is known, often more accurate answer. And who does not know the problem, change the subject by guessing, or do not know the answer given by way of answer.

The issue in the full study android basic infrastructure, basic Turing robot and iFlyTek voice platform based on the design and implementation of a Chinese dialogue system. The main work:

System requirements analysis and design. The main function of the system is divided into text chat mode, voice chat mode, and the learning mode, delete records. As the basic framework for a Chinese dialogue system.

Design and implementation of the system. Including engineering and view presentation system development environment, systems and specific system function. In the realization of the basic functions chat robot system, the system integrates with third-party API robot Turing"s iFlyTek voice interface makes the system function more perfect. System for user input Chinese word sentences at the end of the rules word matching algorithm to find answers to the library from the results in the optimal match or be other algorithms.

After the completion of the system design were tested in android2.3, android4.0 simulator and HTC, Samsung, millet and other android2.3 version of the above platforms and running well.

Keywords: Chinese dialogue、android platform, IFLY platform, Turing robot, Chinese word

目录

第一章 绪论 1

1.1 课题的背景及意义 1

1.2 国内外的研究现状 1

1.3 研究目标和主要工作内容 2

1.4 课题的结构安排 3

第二章 相关技术基础 4

2.1 Android的基本架构 4

2.2 讯飞语音 5

2.3 中文分词技术 6

2.4中文对话系统的系统结构 6

2.5 Komparse对话系统采用的会话代理 7

2.6 本章小结 8

第三章 系统的需求分析与设计 9

3.1 需求分析 9

3.1.1 功能需求分析 9

3.1.2 性能需求分析 9

3.1.3 数据需求分析 10

3.2 系统总体设计 12

3.2.1 系统功能结构图设计 12

3.2.2 系统工作流程设计 13

3.3 系统详细设计 14

3.4 数据库设计 16

3.5 本章小结 17

第四章 系统的设计与实现 18

4.1 开发环境 18

4.2 包与类视图 18

4.3 聊天机器人系统功能实现 19

4.3.1 文本聊天功能模块实现 19

4.3.2 语音聊天功能模块实现 22

4.3.3 学习模式模块功能实现 25

4.3.4 图灵机器人接口实现 26

4.3.5 分词处理 28

4.3.6 数据库查询流程 30

4.3.7 页面布局 31

4.4 本章小结 32

第五章 运行测试 33

5.1 工程配置 33

5.2 系统模拟器测试 33

5.3 系统真机测试 35

5.4 本章小结 37

第六章 系统总结和展望 38

6.1 总结 38

6.2 展望 38

致谢 39

参考文献 40

第一章 绪论

1.1 课题的背景及意义

随着不断发展的人类科学技术,智能生活已经悄悄的走进了人们的身边,,为人们的生活提供各种信息,甚至手机已经成为了一些人的身体一部分。

移动智能时代已经到来,我们已经不仅仅是通过电脑来获取信息了。一部智能手机就能代替电脑且不受地域限制,随时随地的从网络上获取信息。

剩余内容已隐藏,请支付后下载全文,论文总字数:24107字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;