TWI733012B - Dialogue system and method of integrating intentions and hot keys - Google Patents

Dialogue system and method of integrating intentions and hot keys Download PDF

Info

Publication number
TWI733012B
TWI733012B TW107110976A TW107110976A TWI733012B TW I733012 B TWI733012 B TW I733012B TW 107110976 A TW107110976 A TW 107110976A TW 107110976 A TW107110976 A TW 107110976A TW I733012 B TWI733012 B TW I733012B
Authority
TW
Taiwan
Prior art keywords
intent
intention
module
user
parameter
Prior art date
Application number
TW107110976A
Other languages
Chinese (zh)
Other versions
TW201942770A (en
Inventor
陳俊勳
陳奕丞
Original Assignee
中華電信股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中華電信股份有限公司 filed Critical 中華電信股份有限公司
Priority to TW107110976A priority Critical patent/TWI733012B/en
Publication of TW201942770A publication Critical patent/TW201942770A/en
Application granted granted Critical
Publication of TWI733012B publication Critical patent/TWI733012B/en

Links

Images

Landscapes

  • Machine Translation (AREA)

Abstract

A dialogue system and a method of integrating intentions and hot keys are provided. In embodiments, an intention identification module generates features of intention, and an intention parameter identification module generates features of intention parameters. Then, according to the features of intention and the features of intention parameters, a dialog management module generates the status of conversation and the task of intention, and a systematic creation module for content of reply obtains, from the database storing content of reply, the systematic content of reply as the reply to the user, based on the status of conversation and the task of intention. Thereby, the effects of quick and effective reply could be achieved.

Description

結合意圖及快捷鍵的對話系統及方法 Dialogue system and method combining intention and shortcut keys

本發明係關於一種對話技術,特別是一種結合意圖及快捷鍵的對話系統及方法。 The present invention relates to a dialogue technology, in particular to a dialogue system and method combining intention and shortcut keys.

在傳統的對話系統中,客服人員必須常態性地在線上駐點,才能隨時答覆系統使用者所提出的問題。然而這樣的服務方式,會隨著系統使用者人數的增長,而需要大量的客服人員才能有效地服務使用者。此外,這樣人工的答覆方式,客服人員經常需要花費時間查找對應的回覆內容,因此在時間上無法達到即時回覆的效果。 In traditional dialogue systems, customer service personnel must be stationed online regularly to answer questions raised by system users at any time. However, such a service method will increase with the number of system users and require a large number of customer service personnel to effectively serve users. In addition, with such a manual response method, customer service personnel often need to spend time searching for the corresponding response content, so the effect of immediate response cannot be achieved in terms of time.

鑑於前述問題,著實有必要提供一有效的對話系統及方法,以實現快速且有效回覆的效果,進而解決使用者所面臨的難題。 In view of the foregoing problems, it is really necessary to provide an effective dialogue system and method to achieve a quick and effective response effect, thereby solving the problems faced by users.

基於先前技術所存在的問題,本發明揭示了結合意圖及快捷鍵的對話系統及方法。相較於先前技術,本發明之一實施例揭示了使用意圖識別模組、意圖參數識別模組、對話管理模組、系統回覆內容建立模組來產生對話回覆內 容,以即時、有效地與使用者進行對話。 Based on the problems in the prior art, the present invention discloses a dialogue system and method combining intention and shortcut keys. Compared with the prior art, an embodiment of the present invention discloses the use of an intention recognition module, an intention parameter recognition module, a dialog management module, and a system response content creation module to generate a dialog reply. Content, in order to have real-time and effective dialogue with users.

本發明之一實施例提供了一種結合意圖及快捷鍵的對話系統,包含:一意圖識別模組,其將一文字前處理結果轉換為意圖特徵;一意圖參數識別模組,其基於該文字前處理結果及該等意圖特徵,產生意圖參數特徵;一對話管理模組,其根據該等意圖特徵及該等意圖參數特徵,並基於快捷鍵資訊以產生對話狀態及意圖任務;以及一系統回覆內容建立模組,其根據該對話狀態及該意圖任務,自一回覆內容資料庫取得系統回覆內容。 An embodiment of the present invention provides a dialogue system that combines intentions and shortcut keys, including: an intention recognition module that converts a text pre-processing result into an intention feature; an intention parameter recognition module based on the text pre-processing The results and the intention features generate intention parameter features; a dialogue management module that generates dialog states and intention tasks based on the intention features and the intention parameter features and based on shortcut key information; and a system response content creation The module obtains the system reply content from a reply content database according to the dialogue state and the intention task.

在另一實施例中,該等意圖特徵包含以下之至少一者:意圖屬性、意圖領域類別、意圖領域及意圖名稱。 In another embodiment, the intention features include at least one of the following: an intention attribute, an intention domain category, an intention domain, and an intention name.

在另一實施例中,該等意圖參數特徵包含以下之至少一者:意圖參數類別、意圖參數名稱及意圖參數代表名稱。 In another embodiment, the intent parameter features include at least one of the following: an intent parameter category, an intent parameter name, and an intent parameter representative name.

在另一實施例中,該快捷鍵資訊包含一使用者的目前對話資訊及/或一使用者專屬快捷鍵表。 In another embodiment, the shortcut key information includes a user's current dialog information and/or a user-specific shortcut key list.

在另一實施例中,該意圖任務係為基於該等意圖特徵及該等意圖參數特徵之結合的任務。 In another embodiment, the intention task is a task based on the combination of the intention features and the intention parameter features.

在另一實施例中,更包含一文字前處理模組,其針對一文字輸入內容進行處理以獲得該文字前處理結果。 In another embodiment, a text pre-processing module is further included, which processes a text input content to obtain the text pre-processing result.

在另一實施例中,該文字前處理模組包含:一文句正規化模組,其將該文字輸入內容中的特定符號及語文進行濾除及編碼轉換,以產生一正規化文字內容;一文句斷詞模組,其將該正規化文字內容以詞為單位做分隔,進而產生一斷詞後詞彙結果;以及一詞彙向量化模組,其將該斷 詞後詞彙結果轉換為向量表示法,以作為該文字前處理結果。 In another embodiment, the text pre-processing module includes: a text sentence normalization module that filters and encodes specific symbols and language in the text input content to generate a normalized text content; The sentence segmentation module, which separates the normalized text content in word units, and then generates a word-separated vocabulary result; and a vocabulary vectorization module, which separates the normalized text content The result of the vocabulary after the word is converted into a vector representation as the result of the pre-processing of the word.

在另一實施例中,更包含一文字輸入模組,以供一使用者輸入該文字輸入內容。 In another embodiment, a text input module is further included for a user to input the text input content.

本發明之又一實施例提供了一種結合意圖及快捷鍵的對話方法,包含以下步驟:將一文字前處理結果轉換為意圖特徵;基於該文字前處理結果及該等意圖特徵,產生意圖參數特徵;根據該等意圖特徵及該等意圖參數特徵,並基於快捷鍵資訊以產生對話狀態及意圖任務;以及根據該對話狀態及該意圖任務,自一回覆內容資料庫取得系統回覆內容。 Another embodiment of the present invention provides a dialogue method combining intentions and shortcut keys, including the following steps: converting a text pre-processing result into intention features; generating intention parameter features based on the text pre-processing results and the intention features; According to the intention features and the intention parameter features, and based on the shortcut key information, a dialog state and an intention task are generated; and based on the dialog status and the intention task, the system reply content is obtained from a reply content database.

在另一實施例中,該等意圖特徵包含以下之至少一者:意圖屬性、意圖領域類別、意圖領域及意圖名稱。 In another embodiment, the intention features include at least one of the following: an intention attribute, an intention domain category, an intention domain, and an intention name.

在另一實施例中,該等意圖參數特徵包含以下之至少一者:意圖參數類別、意圖參數名稱及意圖參數代表名稱。 In another embodiment, the intent parameter features include at least one of the following: an intent parameter category, an intent parameter name, and an intent parameter representative name.

在另一實施例中,該快捷鍵資訊包含一使用者的目前對話資訊及/或一使用者專屬快捷鍵表。 In another embodiment, the shortcut key information includes a user's current dialog information and/or a user-specific shortcut key list.

在另一實施例中,該意圖任務係為基於該等意圖特徵及該等意圖參數特徵之結合的任務。 In another embodiment, the intention task is a task based on the combination of the intention features and the intention parameter features.

在另一實施例中,更包含在將一文字前處理結果轉換為意圖特徵之前,針對一文字輸入內容進行處理以獲得該文字前處理結果。 In another embodiment, before converting a text pre-processing result into an intent feature, processing a text input content to obtain the text pre-processing result.

在另一實施例中,該針對該文字輸入內容進行處理以獲得該文字前處理結果之步驟包含:將該文字輸入內容中 的特定符號及語文進行濾除及編碼轉換,以產生一正規化文字內容;將該正規化文字內容以詞為單位做分隔,進而產生一斷詞後詞彙結果;以及將該斷詞後詞彙結果轉換為向量表示法,以作為該文字前處理結果。 In another embodiment, the step of processing the text input content to obtain the text pre-processing result includes: inputting the text into the content Filter and code conversion of specific symbols and language to generate a normalized text content; separate the normalized text content in word units to generate a word-separated vocabulary result; and the word-separated vocabulary result Convert to vector notation as the result of pre-processing of the text.

應理解,以上描述的標的可實施為電腦控制的設備、電腦程式、計算系統,或作為製品,諸如,電腦可讀取儲存媒體。 It should be understood that the subject matter described above can be implemented as a computer-controlled device, computer program, computing system, or as a product, such as a computer-readable storage medium.

為讓本發明之上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明。在以下描述內容中將部分闡述本發明之額外特徵及優點,且此等特徵及優點將部分自所述描述內容顯而易見,或可藉由對本發明之實踐習得。本發明之特徵及優點借助於在申請專利範圍中特別指出的元件及組合來認識到並達到。應理解,前文一般描述與以下詳細描述兩者均僅為例示性及解釋性的,且不欲約束本發明所主張之範圍。 In order to make the above-mentioned features and advantages of the present invention more comprehensible, embodiments are specifically described below in conjunction with the accompanying drawings. In the following description, the additional features and advantages of the present invention will be partially explained, and these features and advantages will be partly obvious from the description, or can be learned by practicing the present invention. The features and advantages of the present invention are realized and achieved by means of the elements and combinations specifically pointed out in the scope of the patent application. It should be understood that both the foregoing general description and the following detailed description are only illustrative and explanatory, and are not intended to limit the claimed scope of the present invention.

100‧‧‧起始對話模組 100‧‧‧Starting dialogue module

110‧‧‧系統起始對話 110‧‧‧System start dialogue

120‧‧‧系統預設起始語句內容 120‧‧‧System default initial sentence content

130‧‧‧使用者專屬快捷鍵表 130‧‧‧User-specific shortcut key list

200‧‧‧文字輸入模組 200‧‧‧Text Input Module

300‧‧‧文字前處理模組 300‧‧‧Text preprocessing module

400‧‧‧意圖識別模組 400‧‧‧Intent Recognition Module

410‧‧‧意圖屬性識別模組 410‧‧‧Intent attribute recognition module

420‧‧‧意圖領域類別識別模組 420‧‧‧Intent domain category recognition module

430‧‧‧意圖領域識別模組 430‧‧‧Intent Domain Recognition Module

440‧‧‧意圖名稱識別模組 440‧‧‧Intent name recognition module

450‧‧‧意圖樹 450‧‧‧Intention tree

451‧‧‧意圖屬性 451‧‧‧Intent attribute

452‧‧‧意圖領域類別 452‧‧‧Intent domain category

453‧‧‧意圖領域 453‧‧‧Field of Intent

454‧‧‧意圖名稱 454‧‧‧Intent name

460‧‧‧訓練資料 460‧‧‧Training data

500‧‧‧意圖參數識別模組 500‧‧‧Intent parameter recognition module

510‧‧‧意圖參數識別模組 510‧‧‧Intent parameter recognition module

513‧‧‧意圖名稱 513‧‧‧Intent name

520‧‧‧意圖參數代表名稱識別模組 520‧‧‧Intent parameter represents name recognition module

530‧‧‧意圖參數樹 530‧‧‧Intent parameter tree

531‧‧‧必要參數類別 531‧‧‧Required parameter category

532‧‧‧可選參數類別 532‧‧‧Optional parameter category

533‧‧‧參數1之代表名稱 533‧‧‧Representative name of parameter 1

534‧‧‧第一參數別名 534‧‧‧The first parameter alias

535‧‧‧參數2之代表名稱 535‧‧‧Representative name of parameter 2

536‧‧‧第二參數別名 536‧‧‧Second parameter alias

540‧‧‧訓練資料 540‧‧‧Training data

600‧‧‧對話管理模組 600‧‧‧Dialog Management Module

610‧‧‧對話管理模組 610‧‧‧Dialog Management Module

620‧‧‧對話狀態機模組 620‧‧‧Dialog State Machine Module

630‧‧‧意圖屬性表 630‧‧‧Intent attribute table

640‧‧‧對話狀態表 640‧‧‧Dialog State Table

650‧‧‧目前對話資訊 650‧‧‧Current conversation information

660‧‧‧使用者專屬快捷鍵表 660‧‧‧User-specific shortcut key list

700‧‧‧系統回覆內容建立模組 700‧‧‧System response content creation module

710‧‧‧繼續對話模組 710‧‧‧Continue dialogue module

720‧‧‧回覆內容資料庫查找模組 720‧‧‧Response content database search module

730‧‧‧轉人員處理模組 730‧‧‧Transfer personnel processing module

800‧‧‧回覆及精進模組 800‧‧‧Reply and Improvement Module

810‧‧‧回覆使用者模組 810‧‧‧ Reply to User Module

811‧‧‧輔助人員模組 811‧‧‧Auxiliary Staff Module

812‧‧‧全自動回覆模組 812‧‧‧Automatic Reply Module

820‧‧‧回覆資料正確性判斷模組 820‧‧‧Response data correctness judgment module

830‧‧‧對話系統效能精進模組 830‧‧‧Dialogue system performance improvement module

831‧‧‧回覆結果標註模組 831‧‧‧Response result marking module

900‧‧‧快捷鍵建立及更新模組 900‧‧‧Shortcut key creation and update module

910‧‧‧使用者專屬快捷鍵建立及更新模組 910‧‧‧User-specific shortcut keys to create and update modules

920‧‧‧使用者對話紀錄 920‧‧‧User conversation record

930‧‧‧使用者專屬快捷鍵表 930‧‧‧User-specific shortcut keys table

1000‧‧‧對話系統 1000‧‧‧Dialog System

第1圖所示係為根據本發明之一實施例的對話系統的示意架構圖;第2圖所示係為根據本發明之一實施例的系統起始對話模組;第3圖所示係為根據本發明之一實施例的意圖識別模組;第4圖所示係為根據本發明之一實施例的意圖參數識別模組; 第5圖所示係為根據本發明之一實施例的對話管理模組;第6圖所示係為根據本發明之一實施例的回覆及精進模組;第7圖所示係為根據本發明之一實施例的快捷鍵建立及更新模組;第8圖所示係為根據本發明之一實施例的意圖識別模組;第9圖所示係為根據本發明之一實施例的意圖樹;第10圖所示係為根據本發明之一實施例的意圖樹;第11圖所示係為根據本發明之一實施例的意圖參數識別模組;第12圖所示係為根據本發明之一實施例的例如以雙模型為基礎之意圖參數樹;第13圖所示係為根據本發明之一實施例的意圖參數樹;第14(a)及14(b)圖,其分別圖示根據本發明之一實施例的對話狀態機模組的狀態及有限狀態機;第15圖所示係為根據本發明之一實施例的系統回覆內容建立模組;及第16圖所示係為根據本發明之一實施例的回覆及精進模組。 Figure 1 shows a schematic architecture diagram of a dialogue system according to an embodiment of the present invention; Figure 2 shows a system initial dialogue module according to an embodiment of the present invention; Figure 3 shows a system Is an intention recognition module according to an embodiment of the present invention; Figure 4 shows an intention parameter recognition module according to an embodiment of the present invention; Figure 5 shows a dialog management module according to an embodiment of the present invention; Figure 6 shows a reply and refinement module according to an embodiment of the present invention; Figure 7 shows a dialogue management module according to an embodiment of the present invention. A shortcut key creation and update module according to an embodiment of the invention; Figure 8 shows an intention recognition module according to an embodiment of the invention; Figure 9 shows an intention according to an embodiment of the invention Tree; Figure 10 shows an intention tree according to an embodiment of the present invention; Figure 11 shows an intention parameter identification module according to an embodiment of the present invention; Figure 12 shows an intention parameter recognition module according to an embodiment of the present invention; For example, an intention parameter tree based on a dual model of an embodiment of the invention; Figure 13 shows an intention parameter tree according to an embodiment of the present invention; Figures 14(a) and 14(b), respectively The figure shows the state and finite state machine of a dialogue state machine module according to an embodiment of the present invention; Figure 15 shows a system response content creation module according to an embodiment of the present invention; and Figure 16 shows It is a reply and refinement module according to an embodiment of the present invention.

以下藉由特定的具體實施形態說明本發明之實施方 式,熟悉此技術之人士可由本說明書所揭示之內容輕易地了解本發明之其他優點與功效,亦可藉由其他不同的具體實施形態加以施行或應用。 The following describes the implementation of the present invention with specific specific embodiments In this way, a person familiar with this technology can easily understand the other advantages and effects of the present invention from the content disclosed in this specification, and can also be implemented or applied by other different specific embodiments.

本發明所揭示之結合意圖及快捷鍵的對話系統及方法,茲詳述如下。 The dialog system and method for combining intentions and shortcut keys disclosed in the present invention are described in detail as follows.

第1圖係圖示根據本發明之一實施例的對話系統的示意架構圖。對話系統1000可包含起始對話模組100、文字輸入模組200、文字前處理模組300、例如以四模組為基礎之意圖識別模組400、例如以雙模組為基礎之意圖參數識別模組500、對話管理模組600、系統回覆內容建立模組700、回覆及精進模組800、快捷鍵建立及更新模組900。關於第1圖中各模組的詳細內容,可分別參閱圖式第2圖至第16圖。 Fig. 1 is a schematic structural diagram illustrating a dialogue system according to an embodiment of the present invention. The dialog system 1000 may include an initial dialog module 100, a text input module 200, and a text preprocessing module 300, such as a four-module-based intention recognition module 400, such as a dual-module-based intention parameter recognition Module 500, dialog management module 600, system reply content creation module 700, reply and refinement module 800, shortcut key creation and update module 900. For details of each module in Figure 1, please refer to Figures 2 to 16 of the drawings respectively.

第2圖係圖示根據本發明之一實施例的系統起始對話模組。 FIG. 2 is a diagram illustrating a system initial dialog module according to an embodiment of the present invention.

如圖所示,起始對話模組100可提供使用者開始交談之起始對話內容。其中,起始對話模組100可將系統預設起始語句內容120、及快捷鍵建立及更新模組900所產生之使用者專屬快捷鍵表130作結合,以產生使用者專屬且持續更新的系統起始對話110。 As shown in the figure, the initial dialogue module 100 can provide the initial dialogue content for the user to start a conversation. Among them, the initial dialog module 100 can combine the system default initial sentence content 120 and the user-specific shortcut key list 130 generated by the shortcut key creation and update module 900 to generate a user-specific and continuously updated The system initiates a dialogue 110.

爾後,待使用者開始進行文字內容輸入後,可由文字輸入模組200來接收使用者所輸入之文字內容。 Thereafter, after the user starts to input text content, the text input module 200 can receive the text content input by the user.

在一實施例中,倘若使用者所輸入的是語音內容,則系統可以外接語音辨識器以將使用者輸入的語音轉成文字 內容後,再由文字輸入模組200接收轉換後的文字內容。 In one embodiment, if the user's input is voice content, the system can connect a voice recognizer to convert the voice input by the user into text After the content, the text input module 200 receives the converted text content.

文字前處理模組300可以對於文字輸入模組200接收的文字內容進行前處理,以輸出文字前處理結果。 The text pre-processing module 300 may perform pre-processing on the text content received by the text input module 200 to output a text pre-processing result.

在一實施例中,文字前處理模組300包含但不限於文句正規化模組、文句斷詞模組、及詞彙向量化模組。文句正規化模組可針對文字內容進行正規化(如:將文字內容中的特定符號或語文濾除及編碼轉換),文句斷詞模組可將正規化後的文字內容以詞為單位做分隔進而產生斷詞後的詞彙,而詞彙向量化模組可將斷詞後的詞彙轉換為向量表示法。 In one embodiment, the word preprocessing module 300 includes, but is not limited to, a sentence normalization module, a sentence segmentation module, and a vocabulary vectorization module. The sentence normalization module can be used to normalize the text content (such as filtering out specific symbols or language in the text content and encoding conversion), and the sentence segmentation module can separate the normalized text content in word units. Then the segmented vocabulary is generated, and the vocabulary vectorization module can convert the segmented vocabulary into a vector representation.

在一實施例中,詞彙向量化模組可將斷詞後的詞彙轉換為One-Hot向量表示法。向量長度為辭典大小,而向量的每個維度代表辭典裡的一個詞,每個詞彙的One-Hot向量只有在其唯一代表維度是1,其他維度都是0,例如:詞彙「合約」的一種One-Hot向量表示為[0,0,0,1,0,0,0]。最後將文字正規化及斷詞結果以及詞彙向量化結果整合作為文字前處理結果,傳遞給意圖識別模組400。 In one embodiment, the vocabulary vectorization module can convert the segmented vocabulary into One-Hot vector representation. The length of the vector is the size of the dictionary, and each dimension of the vector represents a word in the dictionary. The One-Hot vector of each vocabulary is only if its only representative dimension is 1, and the other dimensions are 0, for example: a kind of word "contract" The One-Hot vector is represented as [0,0,0,1,0,0,0]. Finally, the text normalization and segmentation results and the vocabulary vectorization results are integrated as the text pre-processing results, which are passed to the intent recognition module 400.

舉例而言,當使用者輸入「我要#$%查帳單#&」,則文字前處理模組300將使用者輸入進行文字前處理後,其結果將包含「我」、「要」、「查」、「帳單」以及詞彙向量化結果「我=[1,0,0,0,0,0,0];要=[0,1,0,0,0,0,0];查=[0,0,1,0,0,0,0];帳單[0,0,0,0,0,0,1]」。 For example, when the user enters "I want #$%查票单#&", the text preprocessing module 300 will perform text preprocessing on the user input, and the result will include "I", "Yes", "Check", "Bill" and the result of word vectorization "I=[1,0,0,0,0,0,0]; Want=[0,1,0,0,0,0,0]; Check=[0,0,1,0,0,0,0]; bill [0,0,0,0,0,0,1]".

爾後,例如以四模組為基礎之意圖識別模組400可針對文字前處理模組300所產生的文字前處理結果進行意圖 識別來產生意圖特徵(如:意圖屬性、意圖領域類別、意圖領域、及意圖名稱等)。 Thereafter, for example, the intention recognition module 400 based on four modules can perform intent on the text pre-processing result generated by the text pre-processing module 300 Recognize to generate intent features (such as: intent attributes, intent domain categories, intent domains, and intent names, etc.).

第3圖係圖示根據本發明之一實施例的意圖識別模組。如圖所示,例如以四模組為基礎之意圖識別模組400可包含意圖屬性識別模組410、意圖領域類別識別模組420、意圖領域識別模組430、意圖名稱識別模組440。 Fig. 3 illustrates an intention recognition module according to an embodiment of the present invention. As shown in the figure, for example, an intent recognition module 400 based on four modules may include an intent attribute recognition module 410, an intent domain category recognition module 420, an intent domain recognition module 430, and an intent name recognition module 440.

意圖屬性識別模組410可根據文字前處理結果來產生意圖屬性。意圖領域類別識別模組420可根據文字前處理結果及意圖屬性來產生意圖領域類別。意圖領域識別模組430可根據文字前處理結果、意圖屬性、意圖領域類別來產生意圖領域。意圖名稱識別模組440可根據文字前處理結果、意圖屬性、意圖領域類別、意圖領域來產生意圖名稱。 The intention attribute recognition module 410 can generate the intention attribute according to the result of text pre-processing. The intent domain category recognition module 420 can generate the intent domain category according to the text pre-processing result and the intent attribute. The intent domain recognition module 430 can generate the intent domain according to the text pre-processing result, the intent attribute, and the intent domain category. The intention name recognition module 440 can generate the intention name according to the pre-processing result of the text, the intention attribute, the intention domain category, and the intention domain.

接著,例如以雙模組為基礎之意圖參數識別模組500可針對文字前處理結果及例如以四模組為基礎之意圖識別模組400所產生之意圖特徵進行意圖參數識別以產生意圖參數特徵(如:意圖參數類別、意圖參數名稱、意圖參數代表名稱)。 Then, for example, the intent parameter recognition module 500 based on dual modules can perform intent parameter recognition on the text pre-processing results and the intent features generated by the intent recognition module 400 based on four modules to generate intent parameter features. (Such as: intent parameter category, intent parameter name, intent parameter representative name).

第4圖係圖示根據本發明之一實施例的意圖參數識別模組。如圖所示,例如以雙模組為基礎之意圖參數識別模組500可包含意圖參數識別模組510及意圖參數代表名稱識別模組520。 Fig. 4 illustrates an intention parameter identification module according to an embodiment of the present invention. As shown in the figure, for example, the intention parameter identification module 500 based on dual modules may include an intention parameter identification module 510 and an intention parameter representative name identification module 520.

意圖參數識別模組510可根據文字前處理結果及意圖識別模組400所產生的意圖特徵(如:意圖參數類別、意圖 參數名稱、意圖參數代表名稱),產生意圖參數類別及意圖參數名稱。接著,意圖參數代表名稱識別模型520可根據意圖參數類別及意圖參數名稱以產生意圖參數代表名稱。 The intention parameter recognition module 510 can be based on the text pre-processing result and the intention features generated by the intention recognition module 400 (such as: intention parameter category, intention Parameter name, intent parameter representative name), generate intent parameter category and intent parameter name. Then, the intent parameter representative name recognition model 520 can generate the intent parameter representative name according to the intent parameter category and the intent parameter name.

爾後,可將意圖特徵、意圖參數特徵、使用者目前對話資訊、及使用者專屬快捷鍵表導入對話管理模組600以產生使用者對話狀態及意圖任務。 Thereafter, the intention feature, the intention parameter feature, the user's current dialog information, and the user-specific shortcut key list can be imported into the dialog management module 600 to generate the user's dialog status and intent tasks.

第5圖係圖示根據本發明之一實施例的對話管理模組。如圖所示,對話管理模組600可產生使用者對話狀態及意圖任務。使用者目前對話資訊可紀錄使用者在此次文字輸入前之最新對話狀態及意圖任務,而意圖任務係為意圖特徵及意圖參數特徵的結合。 Figure 5 shows a dialog management module according to an embodiment of the present invention. As shown in the figure, the dialog management module 600 can generate user dialog status and intention tasks. The user's current dialogue information can record the user's latest dialogue state and intent task before this text input, and the intent task is a combination of intent features and intent parameter features.

此外,導入使用者專屬快捷鍵表可達到如下技術效果:當系統偵測到使用者輸入快捷鍵時,可以透過使用者專屬快捷鍵表來查找與其對應之意圖任務。對話管理模組600可透過使用者的文字輸入來產生目前的對話狀態、意圖任務,並依據目前的對話狀態來決定系統處理模式及進行使用者目前對話資訊更新和使用者對話紀錄更新。其中,使用者目前對話資訊更新後會導入於使用者目前對話資訊中,而使用者對話紀錄更新後會導入於使用者對話紀錄中。 In addition, importing the user-specific shortcut key table can achieve the following technical effects: when the system detects that the user enters a shortcut key, it can search for the corresponding intent task through the user-specific shortcut key table. The dialog management module 600 can generate the current dialog status and intent task through the user's text input, and determine the system processing mode and update the user's current dialog information and user dialog records according to the current dialog status. Among them, the user's current conversation information will be imported into the user's current conversation information after being updated, and the user conversation record will be imported into the user's conversation record after being updated.

在一實施例中,可將目前對話狀態及意圖任務導入於系統回覆內容建立模組700。系統回覆內容建立模組700可查詢系統回覆內容資料庫(未圖示)來決定系統回覆內容。其中,系統回覆內容包含但不限定於回覆使用者問題、 持續性對話、與使用者確認等內容。 In one embodiment, the current dialogue state and the intended task can be imported into the system reply content creation module 700. The system response content creation module 700 can query the system response content database (not shown) to determine the system response content. Among them, the system's reply includes but is not limited to replying to user questions, Continuous dialogue, confirmation with users, etc.

回覆及精進模組800可接收系統回覆內容建立模組700所產生的系統回覆內容、根據系統回覆內容來決定回覆使用者的方式、及進行系統效能精進。 The response and improvement module 800 can receive the system response content generated by the system response content creation module 700, determine the way to respond to the user based on the system response content, and perform system performance improvement.

第6圖係圖示根據本發明之一實施例的回覆及精進模組。如圖所示,回覆及精進模組800可包含回覆使用者模組810、回覆資料正確性判斷模組820、對話系統效能精進模組830。 Fig. 6 shows a reply and refinement module according to an embodiment of the present invention. As shown in the figure, the reply and improvement module 800 may include a user reply module 810, a reply data correctness judgment module 820, and a dialogue system performance improvement module 830.

回覆使用者模組810可決定回覆使用者方式並回覆訊息給使用者。接著,回覆資料正確性判斷模組820可確認回覆的訊息是否正確。進一步地,回覆資料正確性判斷模組820可將回覆錯誤的使用者文字輸入資料之意圖特徵及意圖參數特徵修正為正確的意圖特徵及正確的意圖參數特徵。 The user reply module 810 can determine the method of replying to the user and reply the message to the user. Then, the reply data correctness judgment module 820 can confirm whether the reply message is correct. Further, the reply data correctness judgment module 820 can correct the intent feature and the intent parameter feature of the user text input data whose reply is wrong to the correct intent feature and the correct intent parameter feature.

接著,對話系統效能精進模組830可依據修正後的意圖特徵及意圖參數特徵,重新調整意圖識別模組400及意圖參數識別模組500以達到對話系統效能精進效果。 Then, the dialog system performance improvement module 830 can readjust the intention recognition module 400 and the intention parameter recognition module 500 according to the revised intention characteristics and intention parameter characteristics to achieve the dialog system performance improvement effect.

之後,可將目前對話狀態及意圖任務導入於以使用者對話紀錄為基礎之快捷鍵建立及更新模組900,來進行使用者專屬快捷鍵表建立及更新。 After that, the current dialog status and intent tasks can be imported into the shortcut key creation and update module 900 based on the user's dialog record to create and update the user-specific shortcut key list.

第7圖係圖示根據本發明之一實施例的快捷鍵建立及更新模組。如圖所示,可將目前對話狀態、意圖任務、使用者對話紀錄920、使用者專屬快捷鍵表930導入至使用者專屬快捷鍵建立及更新模組910。爾後,使用者專屬快 捷鍵建立及更新模組910可依據目前對話狀態判定是否進行快捷鍵建立及更新。 Figure 7 is a diagram illustrating a shortcut key creation and update module according to an embodiment of the present invention. As shown in the figure, the current dialog status, intent task, user dialog record 920, and user-specific shortcut key list 930 can be imported into the user-specific shortcut key creation and update module 910. Afterwards, the user’s exclusive express The shortcut key creation and update module 910 can determine whether to perform shortcut key creation and update based on the current dialog state.

如需要更新,則使用者專屬快捷鍵建立及更新模組910可依據意圖任務及使用者對話紀錄,計算使用者個別適用之最新快捷鍵表,接著可將使用者專屬快捷鍵表930更新為最新快捷鍵表,並將其導入至起始對話模組100中來使用者專屬快捷鍵表130。 If it needs to be updated, the user-specific shortcut key creation and update module 910 can calculate the latest shortcut key table applicable to the user based on the intention task and the user’s dialogue record, and then can update the user-specific shortcut key table 930 to the latest The shortcut key table is imported into the initial dialog module 100 to obtain the user-specific shortcut key table 130.

再參照第2圖,在一實施例中,可透過人工編修的方式,預先設定系統預設起始語句內容120,例如:可將系統預設起始語句內容120設定為「親愛的使用者您好,請問有什麼可以幫助您的呢?」 Referring again to Figure 2, in one embodiment, the system default initial sentence content 120 can be preset by manual editing. For example, the system default initial sentence content 120 can be set to "Dear user, you Okay, how can I help you?"

此外,亦可透過快捷鍵建立及更新模組900來計算出系統中前幾名(如:前3名)的意圖名稱以作為使用者專屬快捷鍵表130。然後,可將系統預設起始語句內容120作為系統起始對話110的一部分,接著在其後依序加上「推薦您個人快捷鍵表:」、「輸入1:」、{使用者專屬快捷鍵表130第1名}、「輸入2:」、{使用者專屬快捷鍵表130第2名}、「輸入3:」、{使用者專屬快捷鍵表130第3名}。並將此串接文字內容結果呈現給使用者。 In addition, the shortcut key creation and update module 900 can also be used to calculate the intent names of the top few (eg, the top 3) in the system as the user-specific shortcut key table 130. Then, you can use the system default initial sentence content 120 as part of the system initial dialog 110, and then add "recommend your personal shortcut list:", "input 1:", {user-specific shortcut Key table 130 first place}, "input 2:", {user-specific shortcut key table 130 second place}, "input 3:", {user-specific shortcut key table 130 third}. And present the result of this concatenated text content to the user.

舉例而言,使用者專屬快捷鍵表130中的第一名是「查帳單金額」、第二名是「查我的合約」、第三名是「查最新方案」,則系統起始對話110的內容為「親愛的使用者您好,請問有什麼可以幫助您的呢?推薦您個人快捷鍵表:輸入1:查帳單金額;輸入2:查我的合約;輸入3:查最 新方案」。 For example, in the user-specific shortcut key table 130, the first place is "check bill amount", the second place is "check my contract", and the third place is "check latest plan", then the system starts a dialogue The content of 110 is "Hello, dear users, what can I do for you? Recommend your personal shortcut list: input 1: check the bill amount; input 2: check my contract; input 3: check the most new plan".

在一實施例中,當使用者初次使用系統或尚未完成任何意圖任務時,使用者專屬快捷鍵表130的內容係為空白,此時將不顯示推薦快捷鍵表。 In one embodiment, when the user uses the system for the first time or has not completed any intended tasks, the content of the user-specific shortcut key list 130 is blank, and the recommended shortcut key list will not be displayed at this time.

接著,文字輸入模組200可透過文字輸入介面來接收使用者輸入的文字內容,並將其傳遞給文字前處理模組300。待文字前處理模組300將使用者文字輸入進行前處理後,可將文字前處理結果傳送至意圖識別模組400。 Then, the text input module 200 can receive the text content input by the user through the text input interface, and pass it to the text preprocessing module 300. After the text pre-processing module 300 performs pre-processing on the user's text input, the text pre-processing result can be transmitted to the intent recognition module 400.

第8圖係圖示根據本發明之一實施例的意圖識別模組。意圖識別模組400可事先透過預先建立好的意圖樹450及訓練資料460以分別訓練出意圖屬性識別模組410、意圖領域類別識別模組420、意圖領域識別模組430、意圖名稱識別模組440。 Fig. 8 shows an intention recognition module according to an embodiment of the present invention. The intent recognition module 400 can separately train the intent attribute recognition module 410, the intent domain category recognition module 420, the intent domain recognition module 430, and the intent name recognition module through the pre-built intent tree 450 and training data 460 in advance. 440.

在一實施例中,訓練資料460係為事先蒐集之文字對話的文字前處理結果。然後,系統可根據意圖樹450所定義之意圖特徵來對每筆訓練資料460進行標註,使得每筆訓練資料460都標註有對應之意圖屬性、意圖領域類別、意圖領域及意圖名稱。 In one embodiment, the training data 460 is the text pre-processing result of the text dialogue collected in advance. Then, the system can label each training data 460 according to the intent features defined by the intent tree 450, so that each training data 460 is labeled with the corresponding intent attribute, intent domain category, intent domain, and intent name.

第9圖係圖示根據本發明之一實施例的意圖樹。如圖所示,可在意圖樹450中事先定義數個(如:1個或2個以上)語句意圖任務之意圖屬性451、意圖領域類別452、意圖領域453及意圖名稱454。 Figure 9 illustrates an intent tree according to an embodiment of the present invention. As shown in the figure, several (eg, one or more) intent attributes 451, intent field categories 452, intent fields 453, and intent names 454 of sentence intent tasks can be defined in the intent tree 450 in advance.

舉例而言,每個意圖屬性451可以具備多個意圖領域類別452,每個意圖領域類別452可以具備多個意圖領域 453,每個意圖領域453可以具備多個意圖名稱454,每個意圖名稱454可以連接到與其對應之意圖參數樹530。 For example, each intent attribute 451 may have multiple intent domain categories 452, and each intent domain category 452 may have multiple intent domains. 453. Each intent field 453 may have multiple intent names 454, and each intent name 454 may be connected to the intent parameter tree 530 corresponding to it.

第10圖係圖示根據本發明之一實施例的意圖樹。如圖所示,意圖屬性451包含「提問意圖」、「確認意圖」、「聊天意圖」,「提問意圖」之意圖領域類別452包含「行動業務」、「固網業務」,「行動業務」之意圖領域453包含「帳單資訊」、「合約資訊」,及「帳單資訊」之意圖名稱454包含「查帳單」、「查計費週期」。 Figure 10 illustrates an intent tree according to an embodiment of the present invention. As shown in the figure, the intent attribute 451 includes "question intent", "confirmation intent", and "chat intent". The intent field category 452 of "question intent" includes "mobile business", "fixed network business", and "mobile business". The intention field 453 includes "bill information", "contract information", and the intent name 454 of "bill information" includes "check billing" and "check billing cycle".

透過意圖樹450之定義,可將訓練資料460一一標註上與其對應意圖樹450之4項意圖特徵。接著,可將訓練資料460分別依照意圖屬性識別模組410、意圖領域類別識別模組420、意圖領域識別模組430、意圖名稱識別模組440所需特徵導入於各模組中。 Through the definition of the intent tree 450, the training data 460 can be marked with the four intent features corresponding to the intent tree 450 one by one. Then, the training data 460 can be imported into each module according to the features required by the intent attribute recognition module 410, the intent field category recognition module 420, the intent field recognition module 430, and the intent name recognition module 440, respectively.

在一實施例中,可使用遞歸類神經網路演算法來對意圖屬性識別模組410、意圖領域類別識別模組420、意圖領域識別模組430、意圖名稱識別模組440進行訓練。 In one embodiment, a recursive neural network algorithm can be used to train the intent attribute recognition module 410, the intent domain category recognition module 420, the intent domain recognition module 430, and the intent name recognition module 440.

待訓練完成後,即可將這此四個模組作為識別使用。其中,識別的流程如下:將文字前處理結果導入於訓練完成後的意圖屬性識別模組410來產生意圖屬性。接著,導入文字前處理結果及意圖屬性於訓練完成後的意圖領域類別識別模組420來產生意圖領域類別。 After the training is completed, these four modules can be used as recognition. The recognition process is as follows: import the text pre-processing result into the intent attribute recognition module 410 after the training is completed to generate the intent attribute. Then, import the text pre-processing results and intent attributes into the intent domain category recognition module 420 after the training is completed to generate the intent domain category.

之後,導入文字前處理結果、意圖屬性、意圖領域類別於訓練完成後的意圖領域識別模組430來產生意圖領域。最後,可導入文字前處理結果、意圖屬性、意圖領域 類別、意圖領域於訓練完成後的意圖名稱識別模組440來產生意圖名稱。 Afterwards, import text pre-processing results, intent attributes, and intent domain categories into the intent domain recognition module 430 after the training is completed to generate intent domains. Finally, you can import text pre-processing results, intent attributes, and intent fields The category and intent domain are generated by the intent name recognition module 440 after the training is completed.

舉例而言,當輸入「我要查帳單」及其詞彙向量化結果「我=[1,0,0,0,0,0,0];要=[0,1,0,0,0,0,0];查=[0,0,1,0,0,0,0];帳單[0,0,0,0,0,0,1]」於意圖識別模組400中,則意圖識別模組400可輸出4項意圖特徵:「1.意圖屬性:提問意圖;2.意圖領域類別:綜合業務;3.意圖領域:帳單資訊;4.意圖名稱:查帳單」。 For example, when inputting "I want to check the bill" and its vocabulary vectorized result "I=[1,0,0,0,0,0,0]; Want=[0,1,0,0,0 ,0,0]; check=[0,0,1,0,0,0,0]; bill [0,0,0,0,0,0,1]" in the intention recognition module 400, The intent recognition module 400 can output 4 intent features: "1. Intent attribute: question intent; 2. Intent field category: integrated business; 3. Intent field: billing information; 4. Intent name: check billing."

接著,可將意圖特徵導入意圖參數識別模組500中來訓練出意圖參數識別模組510及意圖參數代表名稱識別模組520。 Then, the intent feature can be imported into the intent parameter recognition module 500 to train the intent parameter recognition module 510 and the intent parameter representative name recognition module 520.

第11圖係圖示根據本發明之一實施例的意圖參數識別模組。如圖所示,該意圖參數識別模組500可透過預先建立好的意圖參數樹530及訓練資料540,分別訓練意圖參數識別模組510、意圖參數代表名稱識別模組520。 FIG. 11 is a diagram illustrating an intention parameter identification module according to an embodiment of the present invention. As shown in the figure, the intent parameter recognition module 500 can train the intent parameter recognition module 510 and the intent parameter representative name recognition module 520 through the pre-established intent parameter tree 530 and training data 540, respectively.

關於意圖參數樹530的詳細內容,可參閱第12圖,其圖示根據本發明之一實施例的例如以雙模型為基礎之意圖參數樹。如圖所示,可在意圖參數樹530中預先定義數種(如:1種、2種等)與意圖名稱454相關之必要參數類別531、可選參數類別532、參數1之代表名稱533、第一參數別名534等。 For details of the intent parameter tree 530, refer to FIG. 12, which illustrates an intent parameter tree based on a dual model, for example, according to an embodiment of the present invention. As shown in the figure, several types (such as one type, two types, etc.) related to the intent name 454 can be predefined in the intent parameter tree 530, the necessary parameter category 531, the optional parameter category 532, and the representative name 533 of parameter 1 The first parameter alias 534 and so on.

在一實施例中,每個參數類別(如:必要參數類別531、可選參數類別532)可具備多個參數代表名稱(如:參數1之代表名稱533、參數2之代表名稱535);而每個參數代 表名稱(如:參數1之代表名稱533、參數2之代表名稱535)可具備多個參數別名(如:第一參數別名534、第二參數別名536)。 In one embodiment, each parameter category (e.g., required parameter category 531, optional parameter category 532) can have multiple parameter representative names (e.g., parameter 1’s representative name 533, parameter 2’s representative name 535); and Each parameter generation The table name (such as the representative name 533 of parameter 1 and the representative name 535 of parameter 2) can have multiple parameter aliases (such as the first parameter alias 534 and the second parameter alias 536).

倘若使用者沒有輸入必要參數類別531的相關參數,則系統可繼續詢問、提醒使用者,直到使用者輸入必要參數類別531的相關參數。反之,倘若使用者沒有輸入可選參數類別532的相關參數,則系統仍可以產生回覆使用者的內容,因此不需要繼續詢問使用者。 If the user does not input the relevant parameters of the necessary parameter category 531, the system can continue to inquire and remind the user until the user inputs the relevant parameters of the necessary parameter category 531. Conversely, if the user does not input the relevant parameters of the optional parameter category 532, the system can still generate a reply to the user, so there is no need to continue to inquire the user.

第13圖係圖示根據本發明之一實施例的意圖參數樹。如圖所示,意圖名稱513為「查帳單」,其下意圖參數樹530之必要參數類別531為「時間」、可選參數類別532為「狀態」、參數1之代表名稱533為「一月」、參數2之代表名稱535為「二月」、第一參數別名534為「1月」、第二參數別名536為「JAN」。 Fig. 13 illustrates an intention parameter tree according to an embodiment of the present invention. As shown in the figure, the intent name 513 is "check bill", the required parameter category 531 of the intent parameter tree 530 is "time", the optional parameter category 532 is "status", and the representative name 533 of parameter 1 is "one". Month", the representative name 535 of parameter 2 is "February", the first parameter alias 534 is "January", and the second parameter alias 536 is "JAN".

透過此意圖參數樹530之定義,即可將歸屬於查帳單意圖之訓練資料一一標註上與之相對應意圖參數樹530的意圖參數特徵。接著,可將訓練資料540依照意圖參數識別模組510及意圖參數代表名稱識別模組520所需特徵導入各模組中。 Through the definition of the intent parameter tree 530, the training data attributable to the bill checking intent can be marked with the intent parameter characteristics corresponding to the intent parameter tree 530 one by one. Then, the training data 540 can be imported into each module according to the features required by the intent parameter recognition module 510 and the intent parameter representative name recognition module 520.

在一實施例中,可採用關鍵詞匹配方式來建立意圖參數識別模組510及意圖參數代表名稱識別模組520,並將意圖參數識別模組510及意圖參數代表名稱識別模組520作為意圖參數識別使用。 In one embodiment, a keyword matching method may be used to create the intention parameter identification module 510 and the intention parameter representative name identification module 520, and the intention parameter identification module 510 and the intention parameter representative name identification module 520 are used as the intention parameters. Identify use.

識別的流程如下:將文字前處理結果及意圖特徵導入 至意圖參數識別模組510以產生意圖參數類別及意圖參數名稱;接著導入意圖參數類別及意圖參數名稱於意圖參數代表名稱識別模組520以產生意圖參數代表名稱。 The recognition process is as follows: import the text pre-processing results and intent features Go to the intention parameter identification module 510 to generate the intention parameter category and the intention parameter name; then import the intention parameter category and the intention parameter name into the intention parameter representative name identification module 520 to generate the intention parameter representative name.

舉例而言,當使用者輸入「我要查1月還沒繳費的帳單」時,則會將意圖特徵:「1.意圖屬性:提問意圖;2.意圖領域類別:綜合業務;3.意圖領域:帳單資訊;4.意圖名稱:查帳單」導入意圖識別模組400中。 For example, when the user enters "I want to check the bills that have not been paid in January", the intent feature will be: "1. Intent attribute: question intent; 2. Intent field category: integrated business; 3. Intent Field: Billing Information; 4. Intention Name: Checking Bills" is imported into the intent identification module 400.

接著,回到第5圖,其圖示根據本發明之一實施例的對話管理模組。對話管理模組600可根據預先建立好的意圖屬性表630及對話狀態表640以建立對話狀態機模組620,其中意圖屬性表630係為意圖識別模組400可識別出的意圖屬性類別所組成。 Next, return to FIG. 5, which illustrates a dialog management module according to an embodiment of the present invention. The dialog management module 600 can create a dialog state machine module 620 based on the pre-built intent attribute table 630 and the dialog state table 640, where the intent attribute table 630 is composed of the intent attribute categories that can be recognized by the intent recognition module 400 .

在一實施例中,意圖屬性451可包含提問意圖、混淆意圖、確認意圖、聊天意圖、其他意圖等5種意圖屬性,而對話狀態表640係為對話狀態機模組620所呈現的狀態列表。 In one embodiment, the intention attribute 451 may include five intention attributes such as question intention, confusion intention, confirmation intention, chat intention, and other intentions, and the dialogue state table 640 is a state list presented by the dialogue state machine module 620.

第14(a)及14(b)圖係分別圖示根據本發明之一實施例的對話狀態機模組的狀態及有限狀態機。 Figures 14(a) and 14(b) respectively illustrate the state of the dialogue state machine module and the finite state machine according to an embodiment of the present invention.

如第14(a)圖所示,對話狀態機模組620的狀態可例如包含起始狀態、確認狀態、缺意圖參數狀態、混淆狀態、完成任務狀態、聊天狀態、轉接狀態等狀態。如圖所示,可例如使用第14(a)圖所示的7種對話狀態及提問意圖、混淆意圖、確認意圖、聊天意圖、其他意圖等5種意圖屬性的組合來建立第14(b)圖所示的有限狀態機。 As shown in FIG. 14(a), the state of the dialogue state machine module 620 may include, for example, the initial state, the confirmation state, the lack of intention parameter state, the confusion state, the task completion state, the chat state, and the transfer state. As shown in the figure, for example, a combination of the 7 dialogue states and question intention, confusion intention, confirmation intention, chat intention, and other intentions as shown in Figure 14(a) can be used to establish the 14th(b) The finite state machine shown in the figure.

此外,可將使用者的意圖特徵、意圖參數特徵、使用者資訊(如包含目前對話資訊650及/或使用者專屬快捷鍵表660之快捷鍵資訊),導入於對話管理模組610中。對話管理模組610可透過對話狀態機模組620,並基於前述資訊來分析及輸出使用者之對話狀態及意圖任務,並進行使用者目前對話資訊更新及使用者對話紀錄更新。 In addition, the user's intention characteristics, intention parameter characteristics, and user information (such as the shortcut key information including the current dialog information 650 and/or the user-specific shortcut key table 660) can be imported into the dialog management module 610. The dialog management module 610 can use the dialog state machine module 620 to analyze and output the user's dialog status and intention tasks based on the aforementioned information, and update the user's current dialog information and user dialog records.

舉例而言,倘若使用者目前對話狀態係「起始狀態」;使用者專屬快捷鍵表為「無快捷鍵」;使用者的意圖特徵為「意圖屬性:提問意圖;意圖領域類別:綜合業務:意圖領域:帳單資訊;意圖名稱:查帳單」;意圖參數特徵為「意圖參數類別1:時間;意圖參數類別2:狀態;意圖參數名稱1:1月;意圖參數名稱2:還沒繳費;意圖參數代表名稱1:一月;意圖參數代表名稱2:未繳費」。 For example, if the user’s current dialogue state is the "initial state"; the user-specific shortcut key list is "no shortcut key"; the user's intention feature is "intent attribute: question intention; intent field category: integrated service: Intent field: billing information; intent name: check bill"; intent parameter feature is "intention parameter category 1: time; intent parameter category 2: status; intent parameter name 1: January; intent parameter name 2: not paid yet ;Intention parameter representative name 1: January; Intention parameter representative name 2: unpaid".

在此情況下,可透過對話管理模組600來輸出對話狀態:「確認狀態」、意圖任務:「意圖屬性:提問意圖;意圖領域類別:綜合業務;意圖領域:帳單資訊;意圖名稱:查帳單」、意圖參數識別結果:「意圖參數類別1:時間;意圖參數類別2:狀態;意圖參數名稱1:1月;意圖參數名稱2:還沒繳費;意圖參數代表名稱一:一月;意圖參數代表名稱2:未繳費」。 In this case, the dialog status can be output through the dialog management module 600: "Confirmation Status", Intent Task: "Intent Attribute: Question Intention; Intent Field Type: Integrated Business; Intent Field: Billing Information; Intent Name: Check Intention parameter recognition result: "Intention parameter category 1: time; intent parameter category 2: status; intent parameter name 1: January; intent parameter name 2: not yet paid; intent parameter representative name 1: January; Intent parameter represents name 2: Unpaid".

接著,系統可向使用者進行意圖及意圖參數之確認,例如:系統可提問「您的意思是『一月』、『未繳費』的查帳單,請問正確還是錯誤?」,當使用者回覆「正確」時,則經由對話管理模組600,可將目前對話狀態從「確認狀 態」轉為「完成任務狀態」。 Then, the system can confirm the intent and intent parameters to the user. For example, the system can ask the question "Do you mean "January" or "Unpaid bill", is it correct or incorrect?", when the user responds When "correct", the current dialog status can be changed from the "confirmation status" through the dialog management module 600 Status" is changed to "Task completed status".

第15圖係圖示根據本發明之一實施例的系統回覆內容建立模組。系統回覆內容建立模組700可依據對話狀態、意圖任務,以決定要回覆的內容。 Figure 15 illustrates a system reply content creation module according to an embodiment of the present invention. The system response content creation module 700 can determine the content to be responded to according to the dialogue status and the intent task.

倘若目前對話狀態為「缺意圖參數狀態」、「混淆狀態」、「確認狀態」中之一者時,則可由繼續對話模組710來產生繼續對話之語句,產生繼續對話之語句的目的在於向使用者提出進一步的詢問來取得更多對話資訊。例如:當意圖任務是「查帳單」且為「確認狀態」時,系統可詢問使用者「您的意思是查帳單,請問正確還是錯誤?」。 If the current dialogue state is one of the "missing intention parameter state", "confusion state", and "confirmation state", the dialogue continuing module 710 can be used to generate the dialogue continuing sentence, and the purpose of generating the dialogue continuing sentence is to The user asks for further information to obtain more dialogue information. For example: when the intent task is "check the bill" and it is in the "confirmed state", the system can ask the user "Do you mean to check the bill, is it right or wrong?".

倘若目前對話狀態為「完成任務狀態」或「聊天狀態」中之一者時,則可由回覆內容資料庫查找模組720將對應的回答回覆給使用者。例如:當意圖任務是「查帳單」且為「完成任務狀態」時,則系統可進行使用者帳單的查找、並將查找結果回傳給使用者。 If the current conversation status is one of the "task completed status" or the "chat status", the reply content database search module 720 can reply the corresponding answer to the user. For example: when the intent task is "check bill" and is "task completed status", the system can search the user's bill and send the search result back to the user.

倘若目前對話狀態為「轉接狀態」時,則可由轉人員處理模組730通知相關人員來進行後續的回覆程序。 If the current conversation status is "transfer status", the transfer processing module 730 can notify the relevant personnel to perform the subsequent reply procedure.

第16圖係圖示根據本發明之一實施例的回覆及精進模組。如圖所示,可透過回覆使用者模組810來選擇要使用輔助人員模組811或是全自動回覆模組812。 Figure 16 illustrates a reply and refinement module according to an embodiment of the present invention. As shown in the figure, it is possible to select whether to use the auxiliary staff module 811 or the fully automatic reply module 812 through the reply user module 810.

輔助人員模組811可將系統回覆內容傳給客服人員,由客服人員參考此系統回覆內容後,再回覆使用者。全自動回覆模組812則可直接回覆給使用者,而無須經由客服人員處理。 The auxiliary staff module 811 can send the system reply content to the customer service staff, and the customer service staff can refer to the system reply content before replying to the user. The fully automatic reply module 812 can reply directly to the user without being processed by the customer service staff.

接著,回覆資料正確性判斷模組820可確認回覆的訊息是否正確。在一實施例中,回覆資料正確性判斷模組820可使用回覆結果標註模組831來進行回覆的訊息是否正確的判斷,其中可針對使用者提問之內容與機器人識別之意圖特徵及意圖參數特徵進行比對,比對過程中,若存在差異的項目,則回覆結果標註模組831可針對差異的項目一一標註正確的意圖特徵及正確的意圖參數特徵。 Then, the reply data correctness judgment module 820 can confirm whether the reply message is correct. In one embodiment, the reply data correctness judgment module 820 can use the reply result labeling module 831 to judge whether the reply message is correct, which can focus on the content of the user's question and the intent feature and the intent parameter feature identified by the robot. During the comparison, if there are different items in the comparison process, the response result marking module 831 can mark the correct intention features and the correct intention parameter features for the different items one by one.

爾後,可由對話系統效能精進模組830來進行對話系統效能之精進。其中,對話系統效能精進模組830可將使用者提問之內容與正確意圖特徵及正確意圖參數特徵視為新的訓練資料,並將新的訓練資料再次導入於意圖識別模組400、例如以雙模型為基礎之意圖參數識別模組500中來進行重新訓練,藉此改善模型之正確性。 Thereafter, the dialog system performance improvement module 830 can be used to improve the dialog system performance. Among them, the dialogue system performance improvement module 830 can regard the content of the user’s question, the correct intention feature and the correct intention parameter feature as new training data, and re-import the new training data into the intention recognition module 400, such as double Retraining is performed in the model-based intention parameter recognition module 500 to improve the accuracy of the model.

最後,以使用者對話紀錄為基礎之快捷鍵建立及更新模組900進行使用者專屬快捷鍵表建立及更新,關於快捷鍵建立及更新模組900之詳細內容,可參閱第7圖。如圖所示,可將對話狀態、意圖任務、使用者對話紀錄920、使用者專屬快捷鍵表930導入至使用者專屬快捷鍵建立及更新模組910,來進行使用者專屬快捷鍵表建立及更新。 Finally, the shortcut key creation and update module 900 based on user dialogue records creates and updates the user-specific shortcut key table. For details of the shortcut key creation and update module 900, please refer to Figure 7. As shown in the figure, the dialog status, intent task, user dialog record 920, and user-specific shortcut key list 930 can be imported into the user-specific shortcut key creation and update module 910 to create and update the user-specific shortcut key list. renew.

在一實施例中,當目前對話狀態為「完成任務狀態」時,則系統會進行快捷鍵的建立及更新。該快捷鍵建立及更新模組900可使用如公式(1)的計算方式:

Figure 107110976-A0101-12-0020-1
In one embodiment, when the current dialog status is "task completed status", the system will create and update shortcut keys. The shortcut key creation and update module 900 can use the calculation method such as formula (1):
Figure 107110976-A0101-12-0020-1

其中,Ti代表在最大預設限度的歷史查詢次數中,共有多少筆查詢為意圖i;Wi代表意圖i之權重數值;Rankij代表從最近一次查詢算起,在意圖i的第j次查詢中,使用者查詢的總次數。 Among them, T i represents the number of intent i in the total number of historical queries within the maximum preset limit; W i represents the weight value of intent i; Rank ij represents the jth time of intent i from the most recent query In the query, the total number of user queries.

舉例而言,當歷史查詢次數N=10,而使用者在這10次查詢中之意圖ID依序是:(從最新的查詢往前推算)1,4,1,2,3,3,4,3,2,1,且預設W1=1,則意圖ID=1之分數為:

Figure 107110976-A0101-12-0020-2
For example, when the number of historical queries N=10, and the user's intention ID in these 10 queries is in order: (estimated from the latest query) 1,4,1,2,3,3,4 ,3,2,1, and preset W 1 =1, the score of intention ID=1 is:
Figure 107110976-A0101-12-0020-2

依照同樣的計算方式,可以算出排名第一的意圖為意圖1、第二名的意圖為意圖4、第三名的意圖為意圖3、第四名的意圖為意圖2。算出排名後,接著可使用如公式(2)的計算方式來進行快捷鍵建立或更新:

Figure 107110976-A0101-12-0020-3
According to the same calculation method, it can be calculated that the first intent is Intent 1, the second intent is Intent 4, the third intent is Intent 3, and the fourth intent is Intent 2. After calculating the ranking, you can then use the calculation method such as formula (2) to create or update the shortcut key:
Figure 107110976-A0101-12-0020-3

其中,M代表使用者專屬快捷鍵表中快捷鍵的最大數量;C代表使用者歷史查詢總次數;argTopN(TaskScorei)代表依照TaskScorei之分數排序取出最高分的前N個意圖i。 Wherein M represents the maximum number of user-specific shortcut key table shortcuts; C representative of the total number of historical queries the user; argTop N (TaskScore i) representative of the N taken before the highest score in accordance with the intended fraction i sort of TaskScore i.

在一實施例中,可根據使用者新的TaskScorei數值大 小順序來更新快捷鍵表。倘若使用者的歷史查詢總次數C小於M,則快捷鍵共計M個。此時,可取出TaskScorei最高分的前C個意圖i作為快捷鍵選項。 In one embodiment, the shortcut key table can be updated according to the user's new TaskScore i value order. If the total number of historical queries C of the user is less than M, there will be a total of M shortcut keys. At this time, the top C intentions i with the highest TaskScore i can be taken out as shortcut key options.

另一方面,倘若使用者的歷史查詢總次數C大於或等於M,則快捷鍵共計M個。此時,可取出TaskScorei最高分的前M個意圖i作為快捷鍵選項。例如:設定M=3,則系統可依序顯示意圖1、意圖4、意圖3為快捷鍵選項。 On the other hand, if the total number of historical queries C of the user is greater than or equal to M, there are a total of M shortcut keys. At this time, the top M intentions i with the highest TaskScore i can be taken out as shortcut key options. For example: set M=3, the system can display Intent 1, Intent 4, and Intent 3 as shortcut key options in sequence.

藉由這樣的計算結果,可取出使用者最近較常用的意圖任務作為快捷鍵,而且亦可減少使用者與系統的對話輪次。 With this calculation result, the user's most frequently used intention tasks can be taken out as shortcut keys, and the number of conversations between the user and the system can also be reduced.

上述實施形態僅例示性說明本發明之原理、特點及其功效,並非用以限制本發明之可實施範疇,任何熟習此項技藝之人士均可在不違背本發明之精神及範疇下,對上述實施形態進行修飾與改變。任何運用本發明所揭示內容而完成之等效改變及修飾,均仍應為申請專利範圍所涵蓋。因此,本發明之權利保護範圍,應如申請專利範圍所列。 The above-mentioned embodiments only illustrate the principles, features and effects of the present invention, and are not intended to limit the scope of implementation of the present invention. Anyone who is familiar with the art can comment on the above without departing from the spirit and scope of the present invention. Modifications and changes to the implementation form. Any equivalent changes and modifications made by using the content disclosed in the present invention should still be covered by the scope of the patent application. Therefore, the protection scope of the present invention should be as listed in the scope of the patent application.

100‧‧‧起始對話模組 100‧‧‧Starting dialogue module

200‧‧‧文字輸入模組 200‧‧‧Text Input Module

300‧‧‧文字前處理模組 300‧‧‧Text preprocessing module

400‧‧‧意圖識別模組 400‧‧‧Intent Recognition Module

500‧‧‧意圖參數識別模組 500‧‧‧Intent parameter recognition module

600‧‧‧對話管理模組 600‧‧‧Dialog Management Module

700‧‧‧系統回覆內容建立模組 700‧‧‧System response content creation module

800‧‧‧回覆及精進模組 800‧‧‧Reply and Improvement Module

900‧‧‧快捷鍵建立及更新模組 900‧‧‧Shortcut key creation and update module

1000‧‧‧對話系統 1000‧‧‧Dialog System

Claims (15)

一種結合意圖及快捷鍵的對話系統,包含:一意圖識別模組,其將一文字前處理結果轉換為意圖特徵;一意圖參數識別模組,其基於該文字前處理結果及該意圖特徵產生意圖參數特徵;一對話管理模組,其根據該意圖特徵及該意圖參數特徵且基於快捷鍵資訊之使用者專屬快捷鍵表產生對話狀態及意圖任務,其中,當偵測到使用者輸入快捷鍵時,該對話管理模組透過該快捷鍵資訊之使用者專屬快捷鍵表查找與該快捷鍵對應之意圖任務;以及一系統回覆內容建立模組,其根據以該快捷鍵資訊之使用者專屬快捷鍵表所產生之該對話狀態及該意圖任務自一回覆內容資料庫取得系統回覆內容。 A dialogue system combining intent and shortcut keys includes: an intent recognition module that converts a text pre-processing result into an intent feature; an intent parameter recognition module that generates an intent parameter based on the text pre-processing result and the intent feature Features; a dialog management module that generates dialog states and intent tasks based on the intent feature and the intent parameter feature and based on the user-specific shortcut key table of shortcut key information, where, when a shortcut key input by the user is detected, The dialog management module searches for the intended task corresponding to the shortcut key through the user-specific shortcut key table of the shortcut key information; and a system reply content creation module based on the user-specific shortcut key table based on the shortcut key information The generated dialogue state and the intention task obtain the system reply content from a reply content database. 如申請專利範圍第1項所述之對話系統,其中,該系統回覆內容建立模組產生繼續對話之語句,供該語句提出進一步的詢問來取得對話資訊。 For example, in the dialog system described in item 1 of the scope of patent application, the system's reply content creation module generates a sentence for continuing the dialog, for the sentence to ask for further inquiry to obtain the dialog information. 如申請專利範圍第1項所述之對話系統,其中,該意圖參數特徵包含以下之至少一者:意圖參數類別、意圖參數名稱及意圖參數代表名稱,或者,該意圖特徵包含以下之至少一者:意圖屬性、意圖領域類別、意圖領域及意圖名稱。 The dialog system described in the first item of the patent application, wherein the intention parameter feature includes at least one of the following: an intention parameter category, an intention parameter name, and an intention parameter representative name, or the intention feature includes at least one of the following : Intent attribute, intent domain category, intent domain, and intent name. 如申請專利範圍第1項所述之對話系統,其中,該快捷鍵資訊包含該使用者的目前對話資訊及該使用者專屬 快捷鍵表。 Such as the dialog system described in item 1 of the scope of patent application, wherein the shortcut key information includes the user’s current dialog information and the user’s exclusive Shortcut key table. 如申請專利範圍第1項所述之對話系統,其中,該意圖任務係為基於該意圖特徵及該意圖參數特徵之結合的任務。 The dialogue system described in item 1 of the scope of patent application, wherein the intention task is a task based on the combination of the intention feature and the intention parameter feature. 如申請專利範圍第1項所述之對話系統,更包含一文字前處理模組,其針對一文字輸入內容進行處理以獲得該文字前處理結果。 For example, the dialog system described in item 1 of the scope of patent application further includes a text pre-processing module, which processes a text input content to obtain the text pre-processing result. 如申請專利範圍第6項所述之對話系統,其中,該文字前處理模組包含:一文句正規化模組,其將該文字輸入內容中的特定符號及語文進行濾除及編碼轉換,以產生一正規化文字內容;一文句斷詞模組,其將該正規化文字內容以詞為單位做分隔,進而產生一斷詞後詞彙結果;以及一詞彙向量化模組,其將該斷詞後詞彙結果轉換為向量表示法,以作為該文字前處理結果。 For example, the dialog system described in item 6 of the scope of patent application, wherein the text pre-processing module includes: a sentence normalization module, which filters and encodes specific symbols and language in the text input content to Generate a normalized text content; a sentence segmentation module, which separates the normalized text content by word units, and then generates a word-separated vocabulary result; and a vocabulary vectorization module, which segments the word The result of the latter word is converted into a vector representation as the result of the pre-processing of the word. 如申請專利範圍第6項所述之對話系統,更包含一供該使用者輸入該文字輸入內容之文字輸入模組。 For example, the dialog system described in item 6 of the scope of patent application further includes a text input module for the user to input the text input content. 一種結合意圖及快捷鍵的對話方法,包含以下步驟:將一文字前處理結果轉換為意圖特徵;基於該文字前處理結果及該意圖特徵產生意圖參數特徵;根據該意圖特徵及該意圖參數特徵且基於快捷鍵資訊之使用者專屬快捷鍵表產生對話狀態及意圖任 務,其中,當偵測到使用者輸入快捷鍵時,透過該快捷鍵資訊之使用者專屬快捷鍵表查找與該快捷鍵對應之意圖任務;以及根據以該快捷鍵資訊之使用者專屬快捷鍵表所產生之該對話狀態及該意圖任務自一回覆內容資料庫取得系統回覆內容。 A dialogue method combining intent and shortcut keys includes the following steps: converting a text pre-processing result into an intent feature; generating an intent parameter feature based on the text pre-processing result and the intent feature; according to the intent feature and the intent parameter feature and based on User-specific shortcut key list for shortcut key information to generate dialog status and intention tasks When it is detected that a user enters a shortcut key, the user-specific shortcut key table of the shortcut key information is used to find the intended task corresponding to the shortcut key; and the user-specific shortcut key based on the shortcut key information The dialog state and the intention task generated by the table obtain the system reply content from a reply content database. 如申請專利範圍第9項所述之對話方法,更包含根據該系統回覆內容產生繼續對話之語句,供該語句提出進一步的詢問來取得對話資訊。 For example, the dialogue method described in item 9 of the scope of patent application further includes generating a sentence to continue the dialogue according to the content of the system's reply, for the sentence to ask for further inquiry to obtain dialogue information. 如申請專利範圍第9項所述之對話方法,其中,該意圖參數特徵包含以下之至少一者:意圖參數類別、意圖參數名稱及意圖參數代表名稱,或者,該意圖特徵包含以下之至少一者:意圖屬性、意圖領域類別、意圖領域及意圖名稱。 The dialogue method according to claim 9, wherein the intention parameter feature includes at least one of the following: an intention parameter category, an intention parameter name, and an intention parameter representative name, or the intention feature includes at least one of the following : Intent attribute, intent domain category, intent domain, and intent name. 如申請專利範圍第9項所述之對話方法,其中,該快捷鍵資訊包含該使用者的目前對話資訊及該使用者專屬快捷鍵表。 For example, in the dialog method described in item 9 of the scope of patent application, the shortcut key information includes the current dialog information of the user and the user-specific shortcut key list. 如申請專利範圍第9項所述之對話方法,其中,該意圖任務係為基於該意圖特徵及該意圖參數特徵之結合的任務。 The dialogue method described in item 9 of the scope of patent application, wherein the intention task is a task based on the combination of the intention feature and the intention parameter feature. 如申請專利範圍第9項所述之對話方法,更包含在將一文字前處理結果轉換為意圖特徵之前,針對一文字輸入內容進行處理以獲得該文字前處理結果。 The dialogue method described in item 9 of the scope of patent application further includes processing a text input content to obtain the text pre-processing result before converting a text pre-processing result into an intent feature. 如申請專利範圍第14項所述之對話方法,其中,該針 對該文字輸入內容進行處理以獲得該文字前處理結果之步驟包含:將該文字輸入內容中的特定符號及語文進行濾除及編碼轉換,以產生一正規化文字內容;將該正規化文字內容以詞為單位做分隔,進而產生一斷詞後詞彙結果;以及將該斷詞後詞彙結果轉換為向量表示法,以作為該文字前處理結果。 Such as the dialog method described in item 14 of the scope of patent application, wherein the needle The step of processing the text input content to obtain the text pre-processing result includes: filtering and coding conversion of specific symbols and languages in the text input content to generate a normalized text content; the normalized text content Separate words in units of words to generate a word-breaking vocabulary result; and converting the word-breaking word result into a vector representation as the pre-processing result of the word.
TW107110976A 2018-03-29 2018-03-29 Dialogue system and method of integrating intentions and hot keys TWI733012B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107110976A TWI733012B (en) 2018-03-29 2018-03-29 Dialogue system and method of integrating intentions and hot keys

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107110976A TWI733012B (en) 2018-03-29 2018-03-29 Dialogue system and method of integrating intentions and hot keys

Publications (2)

Publication Number Publication Date
TW201942770A TW201942770A (en) 2019-11-01
TWI733012B true TWI733012B (en) 2021-07-11

Family

ID=69184505

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107110976A TWI733012B (en) 2018-03-29 2018-03-29 Dialogue system and method of integrating intentions and hot keys

Country Status (1)

Country Link
TW (1) TWI733012B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699784A (en) * 2015-03-13 2015-06-10 苏州思必驰信息科技有限公司 Data searching method and device based on interactive input
CN104899242A (en) * 2015-03-10 2015-09-09 四川大学 Mechanical product design two-dimensional knowledge pushing method based on design intent
CN106991085A (en) * 2017-04-01 2017-07-28 中国工商银行股份有限公司 The abbreviation generation method and device of a kind of entity

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104899242A (en) * 2015-03-10 2015-09-09 四川大学 Mechanical product design two-dimensional knowledge pushing method based on design intent
CN104699784A (en) * 2015-03-13 2015-06-10 苏州思必驰信息科技有限公司 Data searching method and device based on interactive input
CN106991085A (en) * 2017-04-01 2017-07-28 中国工商银行股份有限公司 The abbreviation generation method and device of a kind of entity

Also Published As

Publication number Publication date
TW201942770A (en) 2019-11-01

Similar Documents

Publication Publication Date Title
CN111026842B (en) Natural language processing method, natural language processing device and intelligent question-answering system
US9672490B2 (en) Procurement system
WO2021208696A1 (en) User intention analysis method, apparatus, electronic device, and computer storage medium
CN103593412B (en) A kind of answer method and system based on tree structure problem
US11481387B2 (en) Facet-based conversational search
CN109299245B (en) Method and device for recalling knowledge points
US20210201169A1 (en) Systems and methods for collecting and processing data for insurance-related tasks
CN105630827B (en) A kind of information processing method, system and auxiliary system
US20220366127A1 (en) Legal Document Generation
CN107833059B (en) Service quality evaluation method and system for customer service
CN112989761B (en) Text classification method and device
CN107301229A (en) Feedback assigning method and system based on semantic analysis
CN109711708A (en) Whole process engineering consulting method of servicing and system
CN105791446A (en) Method, device and system for processing private lending
CN111651571A (en) Man-machine cooperation based session realization method, device, equipment and storage medium
CN115470338B (en) Multi-scenario intelligent question answering method and system based on multi-path recall
CN111429157A (en) Method, device and equipment for evaluating and processing complaint work order and storage medium
CN112650858A (en) Method and device for acquiring emergency assistance information, computer equipment and medium
CN112182145A (en) Text similarity determination method, device, equipment and storage medium
CN113064980A (en) Intelligent question and answer method and device, computer equipment and storage medium
Wirawan et al. Balinese historian chatbot using full-text search and artificial intelligence markup language method
CN112836061A (en) Intelligent recommendation method and device and computer equipment
CN113570380A (en) Service complaint processing method, device and equipment based on semantic analysis and computer readable storage medium
TWI752367B (en) Intelligent dialogue management method and system based on natural language processing
WO2022125096A1 (en) Method and system for resume data extraction