一種網(wǎng)絡(luò)聊天機(jī)器人的研究與實(shí)現(xiàn)
本文關(guān)鍵詞: 聊天機(jī)器人 服務(wù)匹配 REST 分詞 微服務(wù) 出處:《浙江大學(xué)》2017年碩士論文 論文類(lèi)型:學(xué)位論文
【摘要】:近年來(lái),隨著語(yǔ)音識(shí)別和自然語(yǔ)言處理技術(shù)的進(jìn)步,聊天機(jī)器人(Chatbot)以其更友好體驗(yàn)被看成是人機(jī)交互的未來(lái),市場(chǎng)上出現(xiàn)了大量的聊天機(jī)器人產(chǎn)品。然而,當(dāng)前基于知識(shí)檢索模型或生成模型的聊天機(jī)器人遠(yuǎn)沒(méi)有達(dá)到期望的效果,甚至不實(shí)用。伴隨著當(dāng)前Web服務(wù)/APIs的大爆發(fā),在這一背景下,本文提出了一種基于服務(wù)匹配的聊天機(jī)器人。該系統(tǒng)根據(jù)用戶(hù)的輸入,借助中文自然語(yǔ)言處理技術(shù)進(jìn)行服務(wù)匹配,通過(guò)調(diào)用Web服務(wù)來(lái)響應(yīng)用戶(hù)意圖。該系統(tǒng)可以解決知識(shí)檢索模型維護(hù)知識(shí)庫(kù)困難的問(wèn)題以及生成模型很不成熟的問(wèn)題,能給用戶(hù)返回直接的和結(jié)構(gòu)化的信息,在一定程度上使得聊天機(jī)器人可以代替現(xiàn)有APP。本文提出了聊天機(jī)器人服務(wù)匹配算法。通過(guò)中文分詞、詞性標(biāo)注和命名實(shí)體識(shí)別等技術(shù)從用戶(hù)輸入的文本中提取關(guān)鍵詞和命名實(shí)體,然后通過(guò)關(guān)鍵詞搜索合適的API,根據(jù)API的信息,將提取的關(guān)鍵詞和命名實(shí)體與API的調(diào)用參數(shù)匹配。本文采用CRF-BiLSTM模型進(jìn)行中文分詞,基于SIGHANBakeoff2005數(shù)據(jù)集對(duì)該模型分詞效果進(jìn)行了實(shí)驗(yàn)分析。結(jié)果證明較基于詞典的機(jī)械分詞方法MWSEG,CRF-BiLSTM的準(zhǔn)確率、召回率和F值有接近10%的提升,達(dá)到了 Bakeoff 2005大賽Open組的最好水平。本文提出了適用于網(wǎng)絡(luò)聊天機(jī)器人的RESTbot風(fēng)格。RESTbot基于REST風(fēng)格實(shí)現(xiàn),針對(duì)網(wǎng)絡(luò)聊天機(jī)器人的使用場(chǎng)景做了進(jìn)一步的規(guī)范。聊天機(jī)器人調(diào)用RESTbot風(fēng)格的Web服務(wù)無(wú)需人工編寫(xiě)格式轉(zhuǎn)換代碼,直接供前端使用,減少了重復(fù)的無(wú)意義的數(shù)據(jù)格式轉(zhuǎn)換工作。然后本文針對(duì)RESTbot風(fēng)格,提出了推薦的可視化方案。最后對(duì)RESTbot的可擴(kuò)展性進(jìn)行論述。最后,本文采用微服務(wù)架構(gòu)實(shí)現(xiàn)了該網(wǎng)絡(luò)聊天機(jī)器人系統(tǒng)。本文對(duì)網(wǎng)絡(luò)聊天機(jī)器人系統(tǒng)的微服務(wù)架構(gòu)、API網(wǎng)關(guān)、服務(wù)管理器和Web服務(wù)的實(shí)現(xiàn)細(xì)節(jié)進(jìn)行了介紹。
[Abstract]:In recent years, with the development of speech recognition and natural language processing technology, chat robot Chatbott is regarded as the future of human-computer interaction with its more friendly experience. However, there are a lot of chat robot products on the market. The current chat robot based on knowledge retrieval model or generation model is far from achieving the desired effect or even being practical. In this context, with the explosion of current Web services / APIs, In this paper, a chat robot based on service matching is proposed. The system can solve the problem that the knowledge retrieval model is difficult to maintain the knowledge base and generate the immature model, and can return the direct and structured information to the user, by calling the Web service to respond to the user's intention, the system can solve the problem that the knowledge retrieval model is difficult to maintain the knowledge base. To a certain extent, the chat robot can replace the existing app. This paper proposes a matching algorithm for the chat robot service. Parts of speech tagging and named entity recognition are used to extract keywords and named entities from the text input by the user, and then search the appropriate API through keywords, according to the information of API. The extracted keywords and named entities are matched with the call parameters of API. This paper uses the CRF-BiLSTM model for Chinese word segmentation. The experimental results based on the SIGHANBakeoff2005 data set show that the accuracy of the model is higher than that of the dictionary-based mechanical word segmentation method MWSEG / CRF-BiLSTM, and the recall rate and F value are improved by nearly 10%. It reaches the best level of Open group in Bakeoff 2005 contest. This paper presents the implementation of RESTbot style. RESTbot is based on REST style, which is suitable for network chat robot. For the use of network chat robot to do a further specification. Chat robot calls RESTbot style of Web services without manual writing format conversion code, directly for the front-end use, This paper proposes a recommended visualization scheme for RESTbot style. Finally, the extensibility of RESTbot is discussed. In this paper, the microservice architecture is used to implement the web chat robot system, and the implementation details of the micro service architecture such as API gateway, service manager and Web service are introduced in this paper.
【學(xué)位授予單位】:浙江大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2017
【分類(lèi)號(hào)】:TP242
【相似文獻(xiàn)】
相關(guān)期刊論文 前10條
1 蔡鶴皋;機(jī)器人將是21世紀(jì)技術(shù)發(fā)展的熱點(diǎn)[J];中國(guó)機(jī)械工程;2000年Z1期
2 ;世界機(jī)器人最新統(tǒng)計(jì)數(shù)據(jù)[J];機(jī)器人技術(shù)與應(yīng)用;2000年01期
3 ;警衛(wèi)和保潔兩用機(jī)器人[J];機(jī)器人技術(shù)與應(yīng)用;2000年03期
4 ;案例分析之四 機(jī)器人碼垛單元[J];機(jī)器人技術(shù)與應(yīng)用;2000年04期
5 李成桐;對(duì)中國(guó)機(jī)器人產(chǎn)業(yè)的思考(之二) 未來(lái)之路[J];機(jī)器人技術(shù)與應(yīng)用;2000年05期
6 賈培發(fā),王全福;團(tuán)結(jié)奮斗努力實(shí)現(xiàn)中國(guó)機(jī)器人產(chǎn)業(yè)化[J];機(jī)器人技術(shù)與應(yīng)用;2000年06期
7 李開(kāi)生,張慧慧,費(fèi)仁元,宗光華;國(guó)外服務(wù)機(jī)器人的發(fā)展動(dòng)態(tài)和前景[J];制造業(yè)自動(dòng)化;2000年06期
8 淑芳;機(jī)器人種菜[J];湖南農(nóng)業(yè);2000年09期
9 長(zhǎng)路;機(jī)器人技術(shù)在發(fā)展[J];世界制造技術(shù)與裝備市場(chǎng);2001年01期
10 賈一;機(jī)器人外科手術(shù)的必要技術(shù)條件[J];機(jī)器人技術(shù)與應(yīng)用;2002年04期
相關(guān)會(huì)議論文 前10條
1 胡春華;范勇;朱紀(jì)洪;孫增圻;;空中機(jī)器人的研究現(xiàn)狀與發(fā)展趨勢(shì)[A];2005年中國(guó)智能自動(dòng)化會(huì)議論文集[C];2005年
2 陳衛(wèi)東;;服務(wù)機(jī)器人的技術(shù)發(fā)展及微特電機(jī)在其中的應(yīng)用[A];第十屆中國(guó)小電機(jī)技術(shù)研討會(huì)論文集[C];2005年
3 肖玉林;侍才洪;陳煒;李浩;張西正;;救援機(jī)器人的現(xiàn)狀及發(fā)展趨勢(shì)(綜述)[A];天津市生物醫(yī)學(xué)工程學(xué)會(huì)第三十四屆學(xué)術(shù)年會(huì)論文集[C];2014年
4 鄭亞青;吳建坡;;岸邊集裝箱宏-微起重機(jī)器人的機(jī)構(gòu)、結(jié)構(gòu)設(shè)計(jì)及運(yùn)動(dòng)仿真[A];2009海峽兩岸機(jī)械科技論壇論文集[C];2009年
5 王靜;邊繼東;張大慧;林峰華;張宏;;管道定量采樣機(jī)器人系統(tǒng)設(shè)計(jì)[A];2009全國(guó)虛擬儀器大會(huì)論文集(二)[C];2009年
6 黃海明;楊雷;宋躍;賴(lài)思沅;;智能保安巡邏機(jī)器人[A];2009全國(guó)虛擬儀器大會(huì)論文集(二)[C];2009年
7 王明輝;馬書(shū)根;李斌;;獨(dú)立操作型可重構(gòu)機(jī)器人群體的動(dòng)態(tài)層次體系結(jié)構(gòu)研究[A];第八屆全國(guó)信息獲取與處理學(xué)術(shù)會(huì)議論文集[C];2010年
8 譚金林;劉明英;梁建民;;機(jī)器人硬件電路設(shè)計(jì)[A];1995年中國(guó)智能自動(dòng)化學(xué)術(shù)會(huì)議暨智能自動(dòng)化專(zhuān)業(yè)委員會(huì)成立大會(huì)論文集(下冊(cè))[C];1995年
9 許家中;孔祥冰;尤波;李長(zhǎng)峰;禹鑫q,
本文編號(hào):1554927
本文鏈接:http://www.sikaile.net/kejilunwen/zidonghuakongzhilunwen/1554927.html