《電子技術應用》
您所在的位置:首頁 > 模擬設計 > 設計應用 > 基于Lucene的中文是非問答系統(tǒng)的設計與實現(xiàn)
基于Lucene的中文是非問答系統(tǒng)的設計與實現(xiàn)
2020年信息技術與網(wǎng)絡安全第11期
羅東霞,卿粼波,吳曉紅
四川大學 電子信息學院,四川 成都610065
摘要: 針對中文是非問句,設計并實現(xiàn)了基于Lucene的問答系統(tǒng),主要包括問句預處理、索引創(chuàng)建和答案整理三部分。問句預處理部分,引入句法成分權重和命名實體權重改進TextRank算法,得到一種提取問句核心詞的方法。在索引創(chuàng)建部分,針對本地的多源數(shù)據(jù)進行文檔融合創(chuàng)建索引,降低數(shù)據(jù)多樣性帶來的復雜度。在答案整理部分,對查詢索引結(jié)果進行答案判決,輸出肯定或否定含義的答案。實驗結(jié)果表明,數(shù)據(jù)融合能有效減少索引創(chuàng)建耗時,改進TextRank的核心詞提取方法準確率明顯高于TextRank,系統(tǒng)具有較為不錯的性能。
中圖分類號: TP391.1
文獻標識碼: A
DOI: 10.19358/j.issn.2096-5133.2020.11.012
引用格式: 羅東霞,卿粼波,吳曉紅. 基于Lucene的中文是非問答系統(tǒng)的設計與實現(xiàn)[J].信息技術與網(wǎng)絡安全,2020,39(11):74-78.
Design and implementation of Chinese yes-no question answering system based on Lucene
Luo Dongxia,Qing Linbo,Wu Xiaohong
College of Electronic Information,Sichuan University,Chengdu 610065,China
Abstract: A Chinese yes-no question answering system based on Lucene around Chinese yes-no questions is designed and implemented,and this system includes three parts:question preprocessing,index creation, and answer sorting. In the first part, introducing the syntactic component weights and named entity weights to improve the TextRank algorithm, a method for extracting the core words of the question sentence is obtained. In the second part, the document fusion is created for the multi-source data to reduce the complexity which is caused by data diversity. In the last section, the query index results are judged by the answer,and then the answers with positive or negative meanings are output. The experimental results show that data fusion can effectively reduce the index creation time, and the accuracy rate of the improved TextRank core word extraction method is significantly higher than TextRank, which means the system has good performance.
Key words : yes-no question answering;Lucene;TextRank;core word extraction

0 引言

    隨著人工智能技術的飛速發(fā)展,傳統(tǒng)搜索引擎已不能滿足用戶需求,自動問答系統(tǒng)逐漸成為信息檢索領域的研究熱點,并具有廣泛應用前景[1]。自動問答系統(tǒng)指允許用戶以自然語言的形式描述問句,并將簡潔答案返回給用戶的一種信息檢索系統(tǒng)[2]。

    近年來,自動問答系統(tǒng)相關的研究和應用十分廣泛。2011年,IBM公司的深度問答系統(tǒng)首次將自然語言處理與深度學習結(jié)合起來,使得眾多機構(gòu)和企業(yè)紛紛效仿。2013年3月,京東上線京東JIMI 客服機器人,提供客戶常規(guī)咨詢服務;2016年10月,百度推出百度醫(yī)療大腦,實現(xiàn)健康在線咨詢[3]。但目前關于中文自動問答系統(tǒng)的研究多是圍繞特指問句,其開放性的回答方式不適用于是非問句的二值答案。例如,對JIMI提問:“京東自營滿88包郵對嗎?”,JIMI的答案是京東自營商品包郵的詳細說明,而非是非問句要求的“對”或“不對”的二值答案。中文是非問答系統(tǒng)的設計與實現(xiàn),能夠彌補目前中文自動問答僅能作答特指問句的不足,幫助用戶快速獲取簡潔的答案,對自動問答系統(tǒng)的研究和應用有著極其重要的意義。

    本文利用Lucene設計并實現(xiàn)一種中文是非問答系統(tǒng),主要工作包括:(1)引入句法成分權重和命名實體權重,改進TextRank算法[4-5],提出一種問句核心詞提取方法;(2)針對MySQL、Neo4j和本地新聞文件中的多源數(shù)據(jù),提出一種多源數(shù)據(jù)融合索引創(chuàng)建方法,減少索引創(chuàng)建耗時;(3)查詢索引并對索引結(jié)果判決,獲得是非問句的二值答案。




本文詳細內(nèi)容請下載:http://ihrv.cn/resource/share/2000003183




作者信息:

羅東霞,卿粼波,吳曉紅

(四川大學 電子信息學院,四川 成都610065)

此內(nèi)容為AET網(wǎng)站原創(chuàng),未經(jīng)授權禁止轉(zhuǎn)載。