一種網(wǎng)絡(luò)聊天機器人的研究與實現(xiàn)
本文關(guān)鍵詞: 聊天機器人 服務(wù)匹配 REST 分詞 微服務(wù) 出處:《浙江大學(xué)》2017年碩士論文 論文類型:學(xué)位論文
【摘要】:近年來,隨著語音識別和自然語言處理技術(shù)的進(jìn)步,聊天機器人(Chatbot)以其更友好體驗被看成是人機交互的未來,市場上出現(xiàn)了大量的聊天機器人產(chǎn)品。然而,當(dāng)前基于知識檢索模型或生成模型的聊天機器人遠(yuǎn)沒有達(dá)到期望的效果,甚至不實用。伴隨著當(dāng)前Web服務(wù)/APIs的大爆發(fā),在這一背景下,本文提出了一種基于服務(wù)匹配的聊天機器人。該系統(tǒng)根據(jù)用戶的輸入,借助中文自然語言處理技術(shù)進(jìn)行服務(wù)匹配,通過調(diào)用Web服務(wù)來響應(yīng)用戶意圖。該系統(tǒng)可以解決知識檢索模型維護知識庫困難的問題以及生成模型很不成熟的問題,能給用戶返回直接的和結(jié)構(gòu)化的信息,在一定程度上使得聊天機器人可以代替現(xiàn)有APP。本文提出了聊天機器人服務(wù)匹配算法。通過中文分詞、詞性標(biāo)注和命名實體識別等技術(shù)從用戶輸入的文本中提取關(guān)鍵詞和命名實體,然后通過關(guān)鍵詞搜索合適的API,根據(jù)API的信息,將提取的關(guān)鍵詞和命名實體與API的調(diào)用參數(shù)匹配。本文采用CRF-BiLSTM模型進(jìn)行中文分詞,基于SIGHANBakeoff2005數(shù)據(jù)集對該模型分詞效果進(jìn)行了實驗分析。結(jié)果證明較基于詞典的機械分詞方法MWSEG,CRF-BiLSTM的準(zhǔn)確率、召回率和F值有接近10%的提升,達(dá)到了 Bakeoff 2005大賽Open組的最好水平。本文提出了適用于網(wǎng)絡(luò)聊天機器人的RESTbot風(fēng)格。RESTbot基于REST風(fēng)格實現(xiàn),針對網(wǎng)絡(luò)聊天機器人的使用場景做了進(jìn)一步的規(guī)范。聊天機器人調(diào)用RESTbot風(fēng)格的Web服務(wù)無需人工編寫格式轉(zhuǎn)換代碼,直接供前端使用,減少了重復(fù)的無意義的數(shù)據(jù)格式轉(zhuǎn)換工作。然后本文針對RESTbot風(fēng)格,提出了推薦的可視化方案。最后對RESTbot的可擴展性進(jìn)行論述。最后,本文采用微服務(wù)架構(gòu)實現(xiàn)了該網(wǎng)絡(luò)聊天機器人系統(tǒng)。本文對網(wǎng)絡(luò)聊天機器人系統(tǒng)的微服務(wù)架構(gòu)、API網(wǎng)關(guān)、服務(wù)管理器和Web服務(wù)的實現(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é)位級別】:碩士
【學(xué)位授予年份】:2017
【分類號】:TP242
【相似文獻(xiàn)】
相關(guān)期刊論文 前10條
1 蔡鶴皋;機器人將是21世紀(jì)技術(shù)發(fā)展的熱點[J];中國機械工程;2000年Z1期
2 ;世界機器人最新統(tǒng)計數(shù)據(jù)[J];機器人技術(shù)與應(yīng)用;2000年01期
3 ;警衛(wèi)和保潔兩用機器人[J];機器人技術(shù)與應(yīng)用;2000年03期
4 ;案例分析之四 機器人碼垛單元[J];機器人技術(shù)與應(yīng)用;2000年04期
5 李成桐;對中國機器人產(chǎn)業(yè)的思考(之二) 未來之路[J];機器人技術(shù)與應(yīng)用;2000年05期
6 賈培發(fā),王全福;團結(jié)奮斗努力實現(xiàn)中國機器人產(chǎn)業(yè)化[J];機器人技術(shù)與應(yīng)用;2000年06期
7 李開生,張慧慧,費仁元,宗光華;國外服務(wù)機器人的發(fā)展動態(tài)和前景[J];制造業(yè)自動化;2000年06期
8 淑芳;機器人種菜[J];湖南農(nóng)業(yè);2000年09期
9 長路;機器人技術(shù)在發(fā)展[J];世界制造技術(shù)與裝備市場;2001年01期
10 賈一;機器人外科手術(shù)的必要技術(shù)條件[J];機器人技術(shù)與應(yīng)用;2002年04期
相關(guān)會議論文 前10條
1 胡春華;范勇;朱紀(jì)洪;孫增圻;;空中機器人的研究現(xiàn)狀與發(fā)展趨勢[A];2005年中國智能自動化會議論文集[C];2005年
2 陳衛(wèi)東;;服務(wù)機器人的技術(shù)發(fā)展及微特電機在其中的應(yīng)用[A];第十屆中國小電機技術(shù)研討會論文集[C];2005年
3 肖玉林;侍才洪;陳煒;李浩;張西正;;救援機器人的現(xiàn)狀及發(fā)展趨勢(綜述)[A];天津市生物醫(yī)學(xué)工程學(xué)會第三十四屆學(xué)術(shù)年會論文集[C];2014年
4 鄭亞青;吳建坡;;岸邊集裝箱宏-微起重機器人的機構(gòu)、結(jié)構(gòu)設(shè)計及運動仿真[A];2009海峽兩岸機械科技論壇論文集[C];2009年
5 王靜;邊繼東;張大慧;林峰華;張宏;;管道定量采樣機器人系統(tǒng)設(shè)計[A];2009全國虛擬儀器大會論文集(二)[C];2009年
6 黃海明;楊雷;宋躍;賴思沅;;智能保安巡邏機器人[A];2009全國虛擬儀器大會論文集(二)[C];2009年
7 王明輝;馬書根;李斌;;獨立操作型可重構(gòu)機器人群體的動態(tài)層次體系結(jié)構(gòu)研究[A];第八屆全國信息獲取與處理學(xué)術(shù)會議論文集[C];2010年
8 譚金林;劉明英;梁建民;;機器人硬件電路設(shè)計[A];1995年中國智能自動化學(xué)術(shù)會議暨智能自動化專業(yè)委員會成立大會論文集(下冊)[C];1995年
9 許家中;孔祥冰;尤波;李長峰;禹鑫q,
本文編號:1554927
本文鏈接:http://sikaile.net/kejilunwen/zidonghuakongzhilunwen/1554927.html