I“心灵助手”3D聊天机器人的设计与开发摘要近年来自杀已成为一种极为严重的现象,其所产生的影响极其恶劣,这种现象在大学生中尤为突出。据调查大学生中自杀的原因大多是因为心理、情感方面的问题,当代大学生中很大一部分都存在或轻或重的各种心理问题,严重者极易产生轻生的念头。因此,关注在校大学生的心理健康状况变得极为重要。设计一款聊天机器人,对于这种现象或许会有好的帮助。聊天机器人种类众多,根据适用的范围不同,所运用的技术也存在着区别,本文所研究的是使用检索模型的机器人。检索型聊天机器人是自动问答系统的另一种特殊形式,它的特点是通过匹配的方式,类似于模仿人类平时说话的语言习惯,找到与所提出的问题匹配度最高的答案。检索模型所使用的回复语句通常是预先存储且事先定义的数据集,并不像生成式模型,类似于人类说话一样,创造出未知的回复内容。该系统所使用的语料库则是研究人员亲自在专业的心理文档网站上下载并进行整理的,其中包括有了几百条心理咨询师与咨询者的对话记录。关键词:聊天机器人;检索;语料库;关键字IIABSTRACTInrecentyears,suicidehasbecomeanextremelyseriousphenomenon,anditsimpactisextremelybad.Thisphenomenonisparticularlyprominentamongcollegestudents.Accordingtothesurvey,mostofthereasonsforsuicideamongcollegestudentsarepsychologicalandemotionalproblems.Alargepartofcontemporarycollegestudentshavevariouspsychologicalproblemsofminororseriousseverity.Inseverecases,theyarepronetocommitsuicide.Therefore,itisextremelyimportanttopayattentiontothementalhealthofcollegestudents.Designingachatbotmaybeofgoodhelptothisphenomenon.Therearemanytypesofchatbots,andtherearedifferencesinthetechnologyusedaccordingtothescopeofapplication.Thisarticleisstudyingthebotsthatuseretrievalmodels.Retrievalchatbotisanotherspecialformofautomaticquestionansweringsystem.Itscharacteristicistofindtheanswerwiththehighestmatchingdegreetothequestionraisedbythewayofmatching,whichissimilartoimitatingthelanguagehabitsofhumanbeings.Thereplysentenceusedbytheretrievalmodelisusuallyapre-storedandpre-defineddataset.Itisnotlikeagenerativemodel,whichissimilartohumanspeech,whichcreatesunknownreplycontent.Thecorpususedbythesystemwaspersonallydownloadedandsortedbytheresearcherontheprofessionalpsychologicaldocumentwebsite,includinghundredsofconversationrecordsbetweenthecounselorandthecounselor.Keywords:chatbot;Search;Corpus;KeywordIII目录第1章绪论.............................................................11.1概述..............................................................11.2项目开发工具及技术...................................................................................................11.2.1UnityHub2.4.4下载及环境配置.................................11.2.2VisualStudioCode开发环境配置................................21.2.3中文语料库....................................................2第2章系统总体结构设计..................................................22.1系统可行性...................................................................................................................22.1.1技术可行性....................................................22.1.2经济可行性....................................................32.1.3操作可行性....................................................32.2系统需求分析...............................................................................................................32.2.1功能需求分析..................................................32.2.2非功能需求分析.................................................