Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6857754B2 - Answer candidate generation device, answer candidate generation method, and program - Google Patents
[go: Go Back, main page]

JP6857754B2 - Answer candidate generation device, answer candidate generation method, and program - Google Patents

Answer candidate generation device, answer candidate generation method, and program Download PDF

Info

Publication number
JP6857754B2
JP6857754B2 JP2020011236A JP2020011236A JP6857754B2 JP 6857754 B2 JP6857754 B2 JP 6857754B2 JP 2020011236 A JP2020011236 A JP 2020011236A JP 2020011236 A JP2020011236 A JP 2020011236A JP 6857754 B2 JP6857754 B2 JP 6857754B2
Authority
JP
Japan
Prior art keywords
answer
word
extended
words
candidate
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
JP2020011236A
Other languages
Japanese (ja)
Other versions
JP2020074205A (en
Inventor
淳史 大塚
淳史 大塚
太一 片山
太一 片山
弘晃 杉山
弘晃 杉山
東中 竜一郎
竜一郎 東中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NTT Inc
NTT Inc USA
Original Assignee
Nippon Telegraph and Telephone Corp
NTT Inc USA
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 Nippon Telegraph and Telephone Corp, NTT Inc USA filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2020011236A priority Critical patent/JP6857754B2/en
Publication of JP2020074205A publication Critical patent/JP2020074205A/en
Application granted granted Critical
Publication of JP6857754B2 publication Critical patent/JP6857754B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

本発明は、回答候補生成装置、回答候補生成方法、及びプログラムに係り、特に、対話システムで使用する回答候補を生成するための回答候補生成装置、回答候補生成方法、及びプログラムに関する。 The present invention relates to an answer candidate generation device, an answer candidate generation method, and a program, and more particularly to an answer candidate generation device for generating an answer candidate used in a dialogue system, an answer candidate generation method, and a program.

一般的に、ロボット等の対話システムと話をする際、ユーザから発話を行い、返答することが多かった。しかし、最近では、システム側から話しかける雑談対話のようなものも存在し、シナリオベースで展開されている。システムから何かを問うといった発話の場合、相手の回答に対して、こちらがその回答を認識し、再び発話する必要がある。このようなシナリオを生成する際、システムの質問に対して、どういった回答の可能性があるかを人手で予測し、シナリオに起こすことが多い。 In general, when talking to a dialogue system such as a robot, the user often speaks and responds. However, recently, there is something like a chat dialogue that the system talks to, and it is being developed on a scenario basis. In the case of an utterance such as asking something from the system, it is necessary for us to recognize the answer to the other party's answer and speak again. When generating such a scenario, it is often the case that the possible answers to the system questions are manually predicted and created in the scenario.

特開2014−219872号公報Japanese Unexamined Patent Publication No. 2014-219872

自然対話プラットフォームの構築と音声対話玩具への応用. 大西 可奈子他. 人工知能学会研究会資料, SIG-SLUD-B502-14, 2015Construction of a natural dialogue platform and application to voice dialogue toys. Kanako Onishi et al. Materials of the Japanese Society for Artificial Intelligence, SIG-SLUD-B502-14, 2015

しかし、相手の返答パターンは膨大であるため、対話システムにおいて想定される回答の多くを網羅することは困難であり、実行するにはコストが膨大であるという問題がある。 However, since the response pattern of the other party is enormous, it is difficult to cover most of the answers expected in the dialogue system, and there is a problem that the cost is enormous to execute.

本発明は、上記問題点を解決するために成されたものであり、質問文に対する適切かつ多様な回答候補を得ることができる回答候補生成装置、回答候補生成方法、及びプログラムを提供することを目的とする。 The present invention has been made to solve the above problems, and provides an answer candidate generation device, an answer candidate generation method, and a program capable of obtaining appropriate and various answer candidates for a question sentence. The purpose.

上記目的を達成するために、本発明に係る回答候補生成装置は、質問文に対する回答単語の各々と前記質問文に含まれる単語の各々とに類似する単語の各々を、前記単語の概念を表す概念ベクトルのスコアに基づいて求めて、拡張回答単語候補とする拡張単語候補生成部と、前記質問文と前記拡張回答単語候補との組み合わせに対する、予め定められた言語モデルのスコア、及び前記拡張回答単語候補についての単語の概念を表す概念ベクトルのスコアに基づく統合スコアが上位の回答単語候補と、前記質問文に対する回答単語とを含む単語集合に対して、前記概念ベクトルに基づいてクラスタリングを行うクラスタリング部と、を含んで構成されている。 In order to achieve the above object, the answer candidate generation device according to the present invention expresses the concept of the word by representing each of the answer words to the question sentence and each of the words similar to each of the words included in the question sentence. A predetermined language model score and the extended answer for the combination of the extended word candidate generation unit, which is obtained based on the score of the concept vector and used as the extended answer word candidate, and the question sentence and the extended answer word candidate. Clustering based on the concept vector The word set including the answer word candidate having the highest integrated score and the answer word for the question sentence is clustered based on the score of the concept vector representing the concept of the word for the word candidate. It is composed of parts and parts.

また、本発明の回答候補生成装置、回答候補生成方法、及びプログラムによれば、質問文に対する適切かつ多様な回答候補を得ることができる、という効果が得られる。 Further, according to the answer candidate generation device, the answer candidate generation method, and the program of the present invention, it is possible to obtain an appropriate and diverse answer candidate for the question sentence.

本発明の実施の形態に係る回答候補生成装置の構成を示すブロック図である。It is a block diagram which shows the structure of the answer candidate generation apparatus which concerns on embodiment of this invention. クラスタリングを使用した場合と使用していない場合の拡張語の探索イメージの比較例の図である。It is a figure of the comparison example of the search image of the extended word with and without clustering. 本発明の実施の形態に係る回答候補生成装置における回答候補生成処理ルーチンを示すフローチャートである。It is a flowchart which shows the answer candidate generation processing routine in the answer candidate generation apparatus which concerns on embodiment of this invention.

以下、図面を参照して本発明の実施の形態を詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

<本発明の実施の形態に係る概要> <Overview of Embodiments of the Present Invention>

まず、本発明の実施の形態における概要を説明する。 First, an outline of the embodiment of the present invention will be described.

上述した問題点に対して、本実施の形態では、大量のテキストを用いた統計情報、質問の言語情報及び統計情報を利用し、対話システムがした質問文に対して、ユーザの回答内容を予測することで、対話シナリオの作成支援を実現する。 In response to the above-mentioned problems, in the present embodiment, statistical information using a large amount of text, language information of the question, and statistical information are used to predict the answer content of the user to the question sentence made by the dialogue system. By doing so, it is possible to support the creation of dialogue scenarios.

本実施の形態の回答候補生成装置は、対話システムのシナリオに関して、システムが発する質問文と、その質問文の回答となる単語(回答シード)を数語与えることで、回答単語を拡張し、質問に対する様々な回答となる単語を出力する装置である。 The answer candidate generation device of the present embodiment expands the answer words and asks a question by giving a question sentence issued by the system and several words (answer seeds) to answer the question sentence with respect to the scenario of the dialogue system. It is a device that outputs words that give various answers to.

本実施の形態では、ブログ記事などの大量のテキストを統計処理し、単語の意味を表現する概念ベクトルを作成する。概念ベクトルの類似度に基づいて、出力する拡張単語候補を決定する。また、質問文を言語解析して、文パターンを生成する。概念ベクトルに基づいて出力された拡張単語候補を文パターンに当てはめて、言語モデル的に妥当であるかを判定することで、質問に対して妥当な回答となる単語をより高精度に出力できることに特徴がある。 In this embodiment, a large amount of text such as a blog article is statistically processed to create a concept vector expressing the meaning of a word. The extended word candidates to be output are determined based on the similarity of the concept vectors. In addition, the question sentence is linguistically analyzed to generate a sentence pattern. By applying the extended word candidates output based on the concept vector to the sentence pattern and determining whether it is valid in terms of the language model, it is possible to output words that are valid answers to the question with higher accuracy. There is a feature.

また、上記手法によって出力した拡張回答単語の集合を回答シードとして再度入力することでより多様な拡張単語候補を入手することもできる。このとき、再度入力する拡張単語候補を意味が近いもの同士でまとめるクラスタリングを行い、各クラスタで単語を拡張することで、より多様な拡張単語候補を得ることができるという特徴がある。 Further, a wider variety of extended word candidates can be obtained by re-inputting the set of extended answer words output by the above method as an answer seed. At this time, there is a feature that more diverse extended word candidates can be obtained by performing clustering in which extended word candidates to be input again are grouped together with words having similar meanings and expanding the words in each cluster.

<本発明の実施の形態に係る回答候補生成装置の構成> <Structure of Answer Candidate Generation Device According to Embodiment of the Present Invention>

次に、本発明の実施の形態に係る回答候補生成装置の構成について説明する。図1に示すように、本発明の実施の形態に係る回答候補生成装置100は、CPUと、RAMと、後述する回答候補生成処理ルーチンを実行するためのプログラムや各種データを記憶したROMと、を含むコンピュータで構成することが出来る。この回答候補生成装置100は、機能的には図1に示すように入力部10と、演算部20と、出力部50とを備えている。 Next, the configuration of the answer candidate generation device according to the embodiment of the present invention will be described. As shown in FIG. 1, the answer candidate generation device 100 according to the embodiment of the present invention includes a CPU, a RAM, a ROM that stores a program for executing an answer candidate generation processing routine described later, and various data. It can be configured with a computer that includes. The answer candidate generation device 100 functionally includes an input unit 10, a calculation unit 20, and an output unit 50 as shown in FIG.

入力部10は、質問文、及び質問文に対する回答単語の各々(以下「(元の)回答シード」とも記載する)の入力を受け付ける。本実施の形態では、質問文として「できたてで食べたい食べ物は?」を受け付け、回答単語の各々として、「パン、揚げ物、ご飯、麺類、焼肉」を受け付けた場合を例に説明する。 The input unit 10 accepts the input of the question sentence and each of the answer words to the question sentence (hereinafter, also referred to as "(original) answer seed"). In the present embodiment, a case where "what food do you want to eat freshly made?" Is accepted as a question sentence and "bread, fried food, rice, noodles, and grilled meat" are accepted as each of the answer words will be described as an example.

演算部20は、概念ベクトルモデル生成部22と、概念ベクトルモデル24と、言語モデル生成部26と、言語モデル28と、文パターン生成部30と、拡張単語候補生成部32と、拡張回答単語候補リランキング部34と、クラスタリング部36と、条件判定部38とを含んで構成されている。 The calculation unit 20 includes a concept vector model generation unit 22, a concept vector model 24, a language model generation unit 26, a language model 28, a sentence pattern generation unit 30, an extended word candidate generation unit 32, and an extended answer word candidate. A reranking unit 34, a clustering unit 36, and a condition determination unit 38 are included.

概念ベクトルモデル生成部22は、テキスト集合に含まれる単語の各々について、単語の概念を表す概念ベクトルを生成し、概念ベクトルモデル24として記憶する。概念ベクトルは、テキスト集合から単語の出現情報に基づくものであり、本実施の形態では、概念ベクトルの作成手法はニューラルネットワークを活用したもの(Word2vec)を使用する。また、特異値分解を利用したものなど任意のものを使用して良い。但し、後述する拡張単語候補生成部32では、複数の単語ベクトルを合成する処理を行うため、概念ベクトルモデル生成部22で採用する概念ベクトルは、合成ベクトルとしても利用可能なものとする。合成方法については特に指定しない。 The concept vector model generation unit 22 generates a concept vector representing the concept of a word for each of the words included in the text set, and stores it as the concept vector model 24. The concept vector is based on the appearance information of words from the text set, and in the present embodiment, the concept vector creation method uses a neural network (Word2vec). Further, any one may be used, such as one using singular value decomposition. However, since the extended word candidate generation unit 32, which will be described later, performs a process of synthesizing a plurality of word vectors, the concept vector adopted by the concept vector model generation unit 22 can also be used as a synthesis vector. The synthesis method is not specified.

言語モデル生成部26は、テキスト集合に含まれる単語のNグラムに基づいて言語モデル28を生成する。この時、言語モデルの作成方法は特に指定しないが、モデルを効率的に活用するため、「は」「が」などの助動詞を「*」に置き換える。ただし、ここで作成する言語モデル28は後述する文パターン生成部30で生成する文パターンを使用できる形式であることとする。 The language model generation unit 26 generates a language model 28 based on N grams of words included in the text set. At this time, the method of creating the language model is not specified, but in order to utilize the model efficiently, auxiliary verbs such as "ha" and "ga" are replaced with "*". However, the language model 28 created here is in a format in which the sentence pattern generated by the sentence pattern generation unit 30 described later can be used.

文パターン生成部30は、入力部10で受け付けた質問文から、単語に置き換えるためのタグを付与した文パターンを生成する。具体的には、まず、文パターン生成部30では、入力された質問文を構文解析する。ここでの構文解析とは、係り受け解析である。係り受け解析された質問文に対してまず、「なぜ」「なに」「いつ」「どこ」「誰」といった5W1Hの表現を検索する。該当した5W1Hの表現を、単語に置き換えるためのタグ(<cand>)に置き換える。次に、係り受け解析結果で動詞や動詞語幹が含まれる文節を見つける。この文節を基準文節として、残りの文節を基準文節の前と後に分け、それぞれで係り受け関係に従い文節を合成する。ここで、基準文節の前の文節と合成する場合には、まず基準文節の前に、タグを含む“<cand> *”を付与(*は任意の助詞)し、その後、係り受け関係によって文節を合成する。基準文節の後の文節との合成には、質問文の最後の文節の最後に置き換えタグ“<cand>”を付与し(句読点や疑問符は削除)、そこから係り受け関係に従い合成を繰り返す。 The sentence pattern generation unit 30 generates a sentence pattern with a tag to be replaced with a word from the question sentence received by the input unit 10. Specifically, first, the sentence pattern generation unit 30 parses the input question sentence. The parsing here is a dependency analysis. First, the 5W1H expressions such as "why", "what", "when", "where", and "who" are searched for the interrogative analysis. The corresponding 5W1H expression is replaced with a tag (<cand>) for replacing it with a word. Next, find the phrase that contains the verb or verb stem in the dependency analysis result. With this phrase as the standard phrase, the remaining phrases are divided into before and after the standard phrase, and the phrases are synthesized according to the dependency relationship for each. Here, when synthesizing with the phrase before the standard phrase, first add "<cand> *" including the tag (* is an arbitrary particle) before the standard phrase, and then the phrase by the dependency relationship. Is synthesized. To combine with the phrase after the reference phrase, add the replacement tag "<cand>" to the end of the last phrase of the question sentence (remove punctuation marks and question marks), and repeat the composition from there according to the dependency relationship.

「できたてで食べたい食べ物は?」という質問文の基準文節は「食べ たい」の部分となる。この基準文節の前の文節との合成では「<cand> * 食べ たい」「<cand> * できたて で 食べ たい」という2つの文パターンが生成され、後ろの文節との合成によって「食べ物 は <cand>」、「食べ たい 食べ物 は <cand>」、「できたて で 食べ たい 食べ物 は <cand>」という3つの文パターンが生成される。よって、合計で5つの文パターンが生成される。個々で置き換えタグ<cand>は自由に設定してよく、また「は」などの助詞を*に置き換えた文パターンを作成しても良い。 The standard phrase of the question "What food do you want to eat freshly?" Is the "I want to eat" part. In the composition with the phrase before this standard phrase, two sentence patterns "<cand> * I want to eat" and "<cand> * I want to eat freshly made" are generated, and by combining with the phrase after this, "Food is Three sentence patterns are generated: "<cand>", "the food you want to eat is <cand>", and "the food you want to eat freshly is <cand>". Therefore, a total of five sentence patterns are generated. The replacement tag <cand> may be set freely, or a sentence pattern in which particles such as "ha" are replaced with * may be created.

以下は文パターンの出力例である。この例では、「は」などの助詞を*に置き換えている。 The following is an output example of a sentence pattern. In this example, particles such as "ha" are replaced with *.

文パターン1:<cand> * 食べ た い
文パターン2:<cand> * できたて * 食べ た い
文パターン3:食べ物 * <cand>
文パターン4:食べ た い 食べ物 * <cand>
文パターン5:できたて * 食べ た い 食べ物 * <cand>
Sentence pattern 1: <cand> * Sentence pattern 2: <cand> * Freshly made * Sentence pattern 3: Food * <cand>
Sentence pattern 4: Food you want to eat * <cand>
Sentence pattern 5: Freshly made * Food you want to eat * <cand>

拡張単語候補生成部32は、入力部10で受け付けた質問文に対する回答単語の各々と質問文に含まれる単語の各々とに類似する単語の各々を、概念ベクトルモデル24に基づいて求めて、拡張回答単語候補とする。また、後述するクラスタリング部36で得られたクラスタ毎に、クラスタに属する単語の各々と質問文に含まれる単語の各々とに類似する単語の各々を、概念ベクトルモデル24に基づいて求めて、拡張回答単語候補とする。 The extended word candidate generation unit 32 obtains each of the answer words to the question sentence received by the input unit 10 and each of the words similar to each of the words included in the question sentence based on the concept vector model 24, and extends the words. Candidates for answer words. Further, for each cluster obtained by the clustering unit 36 described later, each of the words belonging to the cluster and each of the words similar to each of the words included in the interrogative sentence are obtained based on the concept vector model 24 and expanded. Candidates for answer words.

拡張単語候補生成部32では、概念ベクトルモデル24の単語の概念ベクトルを用いて、出力となる拡張回答単語の候補となる単語を生成する。入力となる回答単語(回答シード)の集合をαとする。質問文を形態素解析した結果の集合Qを用意する。ここで、αにQ中のある単語qを加えたときの集合α+qの単語の概念ベクトルの合成ベクトルを The extended word candidate generation unit 32 uses the concept vector of the word of the concept vector model 24 to generate a word that is a candidate for the extended answer word to be output. Let α be a set of answer words (answer seeds) to be input. Prepare a set Q of the results of morphological analysis of the question sentence. Here, the composite vector of the concept vector of the word set α + q when a certain word q in Q is added to α

Figure 0006857754
Figure 0006857754

と表すとすると、ある単語wの概念ベクトルのスコアは以下(1)式の通りに計算できる。 Then, the score of the concept vector of a certain word w can be calculated by the following equation (1).

Figure 0006857754

・・・(1)
Figure 0006857754

... (1)

ここで、 here,

Figure 0006857754
Figure 0006857754

は、単語qの各々について作成された合成ベクトル Is a composite vector created for each of the words q

Figure 0006857754
Figure 0006857754

と単語wの概念ベクトル And the concept vector of the word w

Figure 0006857754
Figure 0006857754

との類似度である。類似度の計算方法は、数値が大きいほど類似性が高いことを表すものであれば任意のものを使用できる。概念ベクトルモデルに含まれる全ての単語に対して、上記のスコアを計算し、スコアを降順に並べたときの上位n語を拡張回答単語候補として次の拡張回答単語候補リランキング部34で使用する。 The degree of similarity with. Any method of calculating the degree of similarity can be used as long as it indicates that the larger the numerical value, the higher the similarity. The above scores are calculated for all the words included in the conceptual vector model, and the top n words when the scores are arranged in descending order are used as extended answer word candidates in the next extended answer word candidate reranking unit 34. ..

また、拡張単語候補生成部32では、クラスタリング部36によるクラスタリング後は、例えば、クラスタ毎の拡張回答単語候補の集合Qが得られるため、単語wについて、クラスタ毎に上記スコアを計算する。そして、全てのクラスタについて計算されたスコアを降順に並べたときの上位n語を拡張回答単語候補として次の拡張回答単語候補リランキング部34で使用する。なお、単語wについてクラスタ毎に計算されたスコアを合計したスコアを用いても良い。また、上記(1)式の計算に、拡張回答単語候補が属するクラスタに属する単語数を係数として導入した計算方法としても良い。例えば、全クラスタの単語数が100であり、あるクラスタの単語数が5であれば、5/100を係数とする等すればよい。 Further, in the extended word candidate generation unit 32, for example, after clustering by the clustering unit 36, a set Q k of extended answer word candidates for each cluster is obtained, so the above score is calculated for each cluster for the word w. Then, the top n words when the scores calculated for all the clusters are arranged in descending order are used as the extended answer word candidates in the next extended answer word candidate reranking unit 34. A score obtained by summing the scores calculated for each cluster for the word w may be used. Further, a calculation method may be used in which the number of words belonging to the cluster to which the extended answer word candidate belongs is introduced as a coefficient into the calculation of the above equation (1). For example, if the number of words in all clusters is 100 and the number of words in a certain cluster is 5, 5/100 may be used as a coefficient.

拡張回答単語候補リランキング部34は、上位n語の拡張回答単語候補の各々について、文パターンに含まれるタグを当該拡張回答単語候補に置き換えたときに得られる、言語モデル28のスコア、及び当該拡張回答単語候補について計算された概念ベクトルのスコアに基づく統合スコアを算出し、統合スコアが上位N個の拡張回答単語候補を求める。また、クラスタリング部36によるクラスタリング後も同様に、上位n語の拡張回答単語候補の各々について、文パターンに含まれるタグを当該拡張回答単語候補に置き換えたときに得られる、言語モデル28のスコア、及び当該拡張回答単語候補について計算された概念ベクトルのスコアに基づく統合スコアを算出し、統合スコアが上位N個の拡張回答単語候補を求める。クラスタリング後の統合スコアは、言語モデル28のスコア、及び当該拡張回答単語候補が属するクラスタに属する単語数を係数として概念ベクトルのスコアに乗算したスコアに基づいて求められる。 The extended answer word candidate re-ranking unit 34 has the score of the language model 28 and the score obtained when the tag included in the sentence pattern is replaced with the extended answer word candidate for each of the upper n extended answer word candidates. The integrated score is calculated based on the score of the concept vector calculated for the extended answer word candidates, and the extended answer word candidates having the top N integrated scores are obtained. Similarly, after clustering by the clustering unit 36, for each of the extended answer word candidates of the upper n words, the score of the language model 28 obtained when the tag included in the sentence pattern is replaced with the extended answer word candidate, And the integrated score based on the score of the concept vector calculated for the extended answer word candidate is calculated, and the extended answer word candidates having the top N integrated scores are obtained. The integrated score after clustering is obtained based on the score of the language model 28 and the score obtained by multiplying the score of the concept vector by the number of words belonging to the cluster to which the extended answer word candidate belongs as a coefficient.

具体的には、拡張回答単語候補リランキング部34では、まず、拡張回答単語候補の各々について、文パターンの置き換えタグ<cand>の部分を当該拡張回答単語候補に置き換えることにより、拡張回答単語候補の各単語を文パターンに当てはめる。そして、置き換えた文を言語モデル28に入力して言語モデル28のスコアを計算する。ここで、言語モデル28のスコア算出方法については任意のものを使用できる。本実施の形態では、例えば、一般的な言語モデルにおけるスコアとして、単語の条件付き確率を用い、以下(2)式の通り、拡張回答単語候補wのスコアScore(w)を計算する。 Specifically, in the extended answer word candidate re-ranking unit 34, first, for each of the extended answer word candidates, the replacement tag <cand> part of the sentence pattern is replaced with the extended answer word candidate, so that the extended answer word candidate can be replaced. Apply each word of to a sentence pattern. Then, the replaced sentence is input to the language model 28 to calculate the score of the language model 28. Here, any method can be used for calculating the score of the language model 28. In the present embodiment, for example, the conditional probability of a word is used as the score in a general language model, and the score Score (w) of the extended answer word candidate w is calculated as shown in the following equation (2).

Figure 0006857754

・・・(2)
Figure 0006857754

... (2)

ここで、上記(2)式において、wはある拡張回答単語候補、pは文パターンを表している。上記(2)式では、拡張回答単語候補wと全ての文パターンpとの組み合わせの各々についてScore(w,p)を計算し、leng(p)を重みとして乗算して合計している。leng(p)は文パターンpの単語長を表している。単語長が長いほど、重みを大きくするようにして、単語長を考慮することで、長い文パターンの影響が大きくなる。長い文パターンの方が、修飾語などが含まれた質問文に近い文になるため長い文パターンで出現しやすい語の方が、より質問文に関連のある文書になる。 Here, in the above equation (2), w represents a certain extended answer word candidate, and p represents a sentence pattern. In the above equation (2), Score (w, p) is calculated for each combination of the extended answer word candidate w and all sentence patterns p, and long (p) is multiplied as a weight and totaled. lang (p) represents the word length of the sentence pattern p. The longer the word length, the greater the weight, and by considering the word length, the influence of the long sentence pattern becomes greater. Since a long sentence pattern is closer to a question sentence containing modifiers, words that are more likely to appear in a long sentence pattern are more related to the question sentence.

また、言語モデル28の代替として、拡張回答単語候補wを置き換えた文パターンpをクエリ(q(w、p))としたWeb検索を実行して、検索ヒット数をスコアとして用いて下記(3)式のようにSore(w,p)の計算をすることも可能である。 Further, as an alternative to the language model 28, a Web search using the sentence pattern p in which the extended answer word candidate w is replaced as a query (q (w, p)) is executed, and the number of search hits is used as a score as described below (3). It is also possible to calculate Sore (w, p) as in the formula).

Figure 0006857754

・・・(3)
Figure 0006857754

... (3)

ここでH(q(w、p))はクエリq(w、p)でWeb検索したときの検索ヒット数を示している。このとき、上記(3)式で計算されたSore(w,p)を用いて、上記(2)式の右側に従って、拡張回答単語候補wのスコアScore(w)が計算される。 Here, H (q (w, p)) indicates the number of search hits when a Web search is performed with the query q (w, p). At this time, using the Sore (w, p) calculated by the above equation (3), the score Score (w) of the extended answer word candidate w is calculated according to the right side of the above equation (2).

そして、拡張回答単語候補wの各々について、言語モデル28のスコアScore(w)と、拡張単語候補生成部32で拡張回答単語候補wについて計算された概念ベクトルのスコアを用いて、最終的な統合スコアを計算する。ここで、統合スコアの計算方法は、言語モデル28のスコアと概念ベクトルのスコアとがどちらも考慮されている手法であれば、任意のものを使用できる。言語モデル28のスコアと概念ベクトルのスコアとの平均値を使用しても良いし、言語モデル28のスコアで降順に並べたスコアの順位と、概念ベクトルのスコアで降順に並べたときの順位との平均値を利用しても良い。 Then, for each of the extended answer word candidates w, the final integration is performed using the score Score (w) of the language model 28 and the score of the concept vector calculated for the extended answer word candidate w by the extended word candidate generation unit 32. Calculate the score. Here, as the method for calculating the integrated score, any method can be used as long as both the score of the language model 28 and the score of the concept vector are taken into consideration. The average value of the score of the language model 28 and the score of the concept vector may be used, or the ranking of the scores arranged in descending order by the score of the language model 28 and the ranking when arranged in descending order by the score of the concept vector. You may use the average value of.

統合スコアを降順に拡張回答単語候補を並べたとき、上位N件を出力部50に出力する。また、次のクラスタリング部36で使用する単語集合とする。ここで、拡張単語候補生成部32の拡張回答単語候補の出力数nと最終的な出力数であるNは、n>Nであれば自由に設定して良い。また、クラスタリングを用いた場合の統合スコア計算手法についても、上記と同様の計算手法でも良いし、上記の計算方法に加えて例えば、拡張回答単語候補の概念ベクトルのスコアに、拡張回答単語候補が属するクラスタに属する単語数を係数として導入した計算方法としても良い。これは、拡張回答単語候補リランキング部34で出力される拡張回答単語候補の多くは、回答シードと質問文に合致するものだが、中には間違いとなるような拡張回答単語候補が含まれる事がある。このような拡張回答単語候補は他の出力と大きく傾向が違う単語であることが多いため、独立したクラスタを形成する傾向がある。単語数を係数として処理をしておくと、小さいクラスタ(単語数が少ないクラスタ)から出力された拡張回答単語候補のスコアが小さくなる傾向があるので、このような拡張回答単語候補が、多く出力されないようにすることが可能である。 When the extended answer word candidates are arranged in descending order of the integrated score, the top N items are output to the output unit 50. Further, it is a word set used in the next clustering unit 36. Here, the number of outputs n of the extended answer word candidates and the final number of outputs N of the extended word candidate generation unit 32 may be freely set if n> N. Further, the integrated score calculation method when clustering is used may be the same calculation method as above. In addition to the above calculation method, for example, the extended answer word candidate is added to the score of the concept vector of the extended answer word candidate. A calculation method may be used in which the number of words belonging to the cluster to which the word belongs is introduced as a coefficient. This is because most of the extended answer word candidates output by the extended answer word candidate reranking unit 34 match the answer seed and the question sentence, but some of them include extended answer word candidates that may be incorrect. There is. Since such extended answer word candidates are often words that tend to differ significantly from other outputs, they tend to form independent clusters. If the number of words is used as a coefficient for processing, the score of the extended answer word candidates output from a small cluster (cluster with a small number of words) tends to be small, so many such extended answer word candidates are output. It is possible to prevent it from being done.

以下は、N=10とした場合の統合スコア上位10件の拡張回答単語候補の出力例である。 The following is an output example of the top 10 extended answer word candidates in the integrated score when N = 10.

カレー、唐揚げ、ハンバーグ、カレーライス、焼きそば、総菜、丼飯、パスタ、トンカツ、から揚げ Fried chicken, fried chicken, hamburger steak, curry rice, fried noodles, side dish, rice bowl, pasta, pork cutlet, fried chicken

以下は、上記10件をクラスタリングし、クラスタ毎に求められた拡張回答単語候補を用いて、更に求めた統合スコア上位10件の拡張回答単語候補の出力例である。 The following is an output example of the 10 extended answer word candidates with the highest integrated score obtained by clustering the above 10 cases and using the extended answer word candidates obtained for each cluster.

コロッケ、チャーハン、オムライス、餃子、たらこスパ、ポテトフライ、炒飯、カツ丼、焼き飯、カニクリームコロッケ Croquette, fried rice, omelet rice, dumplings, cod roe spa, potato fried rice, fried rice, katsudon, fried rice, crab cream croquette

クラスタリング部36は、上位N個の拡張回答単語候補と、質問文に対する回答単語とを含む単語集合に対して、概念ベクトルモデル24に基づいてクラスタリングを行う。クラスタリングの手法については、任意の手法を使用して良い。クラスタ数を事前に設定する方法(k-means法)やクラスタ数を自動的に決定する手法(Affinity Propagation)を用いても良い。 The clustering unit 36 clusters a word set including the top N extended answer word candidates and the answer words for the question sentence based on the concept vector model 24. Any method may be used for the clustering method. A method of setting the number of clusters in advance (k-means method) or a method of automatically determining the number of clusters (Affinity Propagation) may be used.

本実施の形態でクラスタリングを行う理由を以下に説明する。 The reason for performing clustering in this embodiment will be described below.

本実施の形態では、入力の質問文と回答シードを与えることで、回答シードを拡張した拡張回答単語集合を得ることが出来るが、ここでまでの拡張単語候補生成部32、及び拡張回答単語候補リランキング部34の処理を複数回実行することで、より多様かつ多数の拡張回答単語候補の集合を得ることができる。その場合、拡張回答単語候補リランキング部34で出力したN語を次回の拡張の回答シードとして使用する。出力した拡張回答単語候補の集合を次回の回答シードとすることで、初期に入力した元の回答シードや前回の出力とは異なる単語を得ることができるが、出力されたN個の拡張回答単語候補の集合は元の回答シードと比較して単語数が多い。この状態で拡張単語候補生成部32の拡張回答単語候補の計算を行った場合、回答シードから作成する単語の概念ベクトルの合成ベクトルは、多数の単語の意味が平均化されたものになってしまい、入手できる単語の多様性が失われるという問題があった。 In the present embodiment, an extended answer word set with an extended answer seed can be obtained by giving an input question sentence and an answer seed. However, the extended word candidate generation unit 32 and the extended answer word candidate up to this point can be obtained. By executing the process of the reranking unit 34 a plurality of times, a more diverse and large number of extended answer word candidates can be obtained. In that case, the N words output by the extended answer word candidate reranking unit 34 are used as the answer seed for the next extension. By using the set of output extended answer word candidates as the next answer seed, it is possible to obtain words that are different from the original answer seed that was initially input and the previous output, but the output N extended answer words. The set of candidates has more words than the original answer seed. When the extended answer word candidate of the extended word candidate generation unit 32 is calculated in this state, the composite vector of the concept vector of the word created from the answer seed becomes the average of the meanings of many words. , There was a problem that the variety of available words was lost.

クラスタリング部36では、上記の問題を解決するために、回答シードとして使用するN語に対して、概念ベクトルモデル24の単語の概念ベクトルの類似性に基づくクラスタリングを行い、複数のクラスタに分割する。そして、拡張単語候補生成部32ではクラスタごとに上記(1)式の計算を行い、全てのクラスタについての上位n個の拡張回答単語候補を求める。そして、拡張回答単語候補リランキング部34で、全ての拡張回答単語候補の各々について、上記(2)式で拡張回答単語候補wのスコアScore(w)を計算して、更に、統合スコアを計算することによって、ループ2回目以降の出力単語を決定する。クラスタリングを行う際には、新しく使用するN語に、元の回答シードの単語集合αを追加した単語集合で行うものとする。拡張回答単語候補リランキング部34で出力されたN語は元の回答シードを拡張した語であるが質問文や言語モデルを考慮しているため回答シードよりも多様な語の集合となる。この状態でクラスタを作成すると、クラスタが分散しやすくなる。また、N語の中には解析ミスで出力される語も含まれており、これら不適切な語の集合でクラスタが作成されてしまうと2回目以降の出力される回答が不適切な単語で占められる可能性がでる。そのため、元の回答シードの単語集合αは意味が近い可能性が高く、間違いなく正しい単語であるため、元の回答シード単語集合αを含めてクラスタリングを行ったほうが、クラスタのまとまりがよくなり、かつ不適切なクラスタが大量に生成されることを防ぐ働きがある。 In order to solve the above problem, the clustering unit 36 performs clustering based on the similarity of the concept vectors of the words of the concept vector model 24 for the N words used as the answer seeds, and divides the N words into a plurality of clusters. Then, the extended word candidate generation unit 32 performs the calculation of the above equation (1) for each cluster, and obtains the top n extended answer word candidates for all the clusters. Then, the extended answer word candidate reranking unit 34 calculates the score Score (w) of the extended answer word candidate w by the above equation (2) for each of the extended answer word candidates, and further calculates the integrated score. By doing so, the output words for the second and subsequent loops are determined. When clustering is performed, it is assumed that the word set is obtained by adding the word set α of the original answer seed to the newly used N word. The N words output by the extended answer word candidate re-ranking unit 34 are words that are an extension of the original answer seed, but because the question sentence and the language model are taken into consideration, they are a set of words that are more diverse than the answer seed. If a cluster is created in this state, the clusters can be easily distributed. In addition, some N words are output due to analysis errors, and if a cluster is created with a set of these inappropriate words, the answers output from the second time onward will be inappropriate words. There is a possibility that it will be occupied. Therefore, the word set α of the original answer seed is likely to have similar meanings, and it is definitely a correct word. Therefore, clustering including the original answer seed word set α improves the cohesiveness of the cluster. Moreover, it works to prevent a large number of inappropriate clusters from being generated.

クラスタごとに単語の拡張を行うことで、より多様性に富んだ拡張語を取得できるようになるという特徴がある。図2にクラスタリングを使用した場合と使用していない場合の拡張語の探索イメージの比較を示す。図2中の各黒丸は、概念ベクトルで表現された回答シードの単語を示し、星印は合成ベクトルを示している。点線で囲まれた範囲が合成ベクトルの類似度によって探索できる範囲を示している。この例では合成ベクトルは各単語の概念ベクトルの重心によって表現されているものとする。 By expanding words for each cluster, it is possible to obtain more diverse extended words. FIG. 2 shows a comparison of search images of extended words with and without clustering. Each black circle in FIG. 2 indicates an answer seed word expressed by a concept vector, and an asterisk indicates a composite vector. The range surrounded by the dotted line shows the range that can be searched by the similarity of the composite vector. In this example, it is assumed that the composite vector is represented by the centroid of the conceptual vector of each word.

以下はクラスタの出力例である。 The following is an example of cluster output.

クラスタ(ア):カレー、カレーライス、 焼きそば
クラスタ(イ):総菜
クラスタ(ウ):パスタ
クラスタ(エ):唐揚げ、ハンバーグ、丼飯、トンカツ、から揚げ
Cluster (A): Curry, curry rice, Yakisoba cluster (B): Delicatessen cluster (C): Pasta cluster (D): Fried chicken, hamburger steak, rice bowl, pork cutlet, fried chicken

条件判定部38は、予め定められた条件を満たすまで拡張単語候補生成部32、拡張回答単語候補リランキング部34、及びクラスタリング部36の処理を繰り返す。条件は、例えば回数や、出力された単語数とすればよい。 The condition determination unit 38 repeats the processes of the extended word candidate generation unit 32, the extended answer word candidate reranking unit 34, and the clustering unit 36 until a predetermined condition is satisfied. The condition may be, for example, the number of times or the number of output words.

<本発明の実施の形態に係る回答候補生成装置の作用> <Operation of Answer Candidate Generation Device According to the Embodiment of the Present Invention>

次に、本発明の実施の形態に係る回答候補生成装置100の作用について説明する。回答候補生成装置100では、予め、概念ベクトルモデル生成部22によって概念ベクトルモデル24を、言語モデル生成部26によって言語モデル28を求めておく。入力部10において質問文、及び質問文に対する回答単語の各々を受け付けると、回答候補生成装置100は、図3に示す回答候補生成処理ルーチンを実行する。 Next, the operation of the answer candidate generation device 100 according to the embodiment of the present invention will be described. In the answer candidate generation device 100, the concept vector model generation unit 22 obtains the concept vector model 24, and the language model generation unit 26 obtains the language model 28 in advance. When the input unit 10 receives each of the question sentence and the answer word for the question sentence, the answer candidate generation device 100 executes the answer candidate generation processing routine shown in FIG.

まず、ステップS100では、入力部10で受け付けた質問文から、単語に置き換えるためのタグを付与した文パターンを生成する。 First, in step S100, a sentence pattern with a tag to be replaced with a word is generated from the question sentence received by the input unit 10.

次に、ステップS102では、入力部10で受け付けた質問文に対する回答単語の各々と質問文に含まれる単語の各々とに類似する単語の各々を、上記(1)式で計算される概念ベクトルモデル24における単語の概念ベクトルのスコアに基づいて求めて、スコアを降順に並べたときの上位n語を拡張回答単語候補とする。 Next, in step S102, each of the answer words to the question sentence received by the input unit 10 and each of the words similar to each of the words included in the question sentence are converted into a conceptual vector model calculated by the above equation (1). Obtained based on the score of the concept vector of words in 24, the top n words when the scores are arranged in descending order are set as extended answer word candidates.

ステップS104では、文パターンに含まれるタグを拡張回答単語候補に置き換えたときに得られる、上記(2)式で計算される言語モデル28のスコア、及び拡張回答単語候補について計算された概念ベクトルのスコアに基づく統合スコアが上位N個(n>N)の拡張回答単語候補を求める。 In step S104, the score of the language model 28 calculated by the above equation (2) obtained when the tag included in the sentence pattern is replaced with the extended answer word candidate, and the concept vector calculated for the extended answer word candidate. Find the extended answer word candidates with the highest N (n> N) integrated scores based on the score.

ステップS106では、ステップS104又は前回のステップS110で求められた上位N個の拡張回答単語候補と、質問文に対する回答単語とを含む単語集合に対して、概念ベクトルモデル24に基づいてクラスタリングを行う。 In step S106, clustering is performed on a word set including the top N extended answer word candidates obtained in step S104 or the previous step S110 and the answer words for the question sentence based on the concept vector model 24.

ステップS108では、クラスタ毎に、クラスタに属する単語の各々と質問文に含まれる単語の各々とに類似する単語の各々を、上記(1)式で計算される概念ベクトルモデル24における単語の概念ベクトルのスコアに基づいて求めて、スコアを降順に並べたときの上位n語を拡張回答単語候補とする。 In step S108, for each cluster, each of the words belonging to the cluster and each of the words similar to each of the words included in the interrogative sentence are converted into the word concept vector in the concept vector model 24 calculated by the above equation (1). The top n words when the scores are arranged in descending order are used as extended answer word candidates.

ステップS110では、ステップS108で得られた、文パターンに含まれるタグをクラスタについて求められた拡張回答単語候補に置き換えたときに得られる、言語モデル28のスコアを算出し、上記(2)式で計算される言語モデル28のスコア、及び拡張回答単語候補について計算された概念ベクトルのスコアに基づく統合スコアが上位N個の拡張回答単語候補を求める。ここで、統合スコアは、言語モデル28のスコア、及び拡張回答単語候補が属するクラスタに属する単語数を係数として概念ベクトルのスコアに乗算したスコアに基づいて求める。 In step S110, the score of the language model 28 obtained when the tag included in the sentence pattern obtained in step S108 is replaced with the extended answer word candidate obtained for the cluster is calculated, and the score of the language model 28 is calculated by the above equation (2). The score of the calculated language model 28 and the integrated score based on the score of the conceptual vector calculated for the extended answer word candidates are obtained for the top N extended answer word candidates. Here, the integrated score is obtained based on the score of the language model 28 and the score obtained by multiplying the score of the concept vector by the number of words belonging to the cluster to which the extended answer word candidate belongs as a coefficient.

ステップS112では、繰り返しの終了の条件を満たすかを判定し、条件を満たせばステップS114へ移行し、満たさなければステップS106に戻って処理を繰り返す。 In step S112, it is determined whether or not the condition for ending the repetition is satisfied, and if the condition is satisfied, the process proceeds to step S114, and if not satisfied, the process returns to step S106 and the process is repeated.

ステップS114では、ステップS104〜S112の処理で得られた拡張回答単語候補を出力部50に出力して処理を終了する。 In step S114, the extended answer word candidates obtained in the processes of steps S104 to S112 are output to the output unit 50 to end the process.

以上説明したように、本発明の実施の形態に係る回答候補生成装置によれば、単語に置き換えるためのタグを付与した文パターンを生成し、質問文に対する回答単語の各々と質問文に含まれる単語の各々とに類似する単語の各々を、概念ベクトルのスコアに基づいて求めて、拡張回答単語候補とし、文パターンに含まれるタグを拡張回答単語候補に置き換えたときに得られる、言語モデルのスコア、及び拡張回答単語候補についての概念ベクトルのスコアに基づく統合スコアが上位N個の拡張回答単語候補を求め、上位N個の拡張回答単語候補と、質問文に対する回答単語とを含む単語集合に対して、概念ベクトルに基づいてクラスタリングを行い、予め定められた条件を満たすまで拡張単語候補生成、拡張単語候補リランキング、及びクラスタリングの処理を繰り返し、クラスタ毎に、クラスタに属する単語の各々と質問文に含まれる単語の各々とに類似する単語の各々を、概念ベクトルのスコアに基づいて求めて、拡張回答単語候補とし、文パターンに含まれるタグをクラスタについて求められた拡張回答単語候補に置き換えたときに得られる、言語モデルのスコアを算出し、全てのクラスタにおいて、言語モデル、及び拡張回答単語候補についての概念ベクトルのスコアに基づく統合スコアが上位N個の拡張回答単語候補を求めることにより、対話システムで使用するための多様な回答候補を得ることができる。 As described above, according to the answer candidate generation device according to the embodiment of the present invention, a sentence pattern with a tag to be replaced with a word is generated and included in each of the answer words to the question sentence and the question sentence. A language model obtained when each word similar to each of the words is obtained based on the score of the concept vector to be an extended answer word candidate, and the tag included in the sentence pattern is replaced with the extended answer word candidate. Score and concept of extended answer word candidates The integrated score based on the score of the vector finds the top N extended answer word candidates, and makes a word set containing the top N extended answer word candidates and the answer words to the question sentence. On the other hand, clustering is performed based on the concept vector, extended word candidate generation, extended word candidate reranking, and clustering process are repeated until predetermined conditions are satisfied, and each cluster is asked with each word belonging to the cluster. Each of the words similar to each of the words contained in the sentence is obtained based on the score of the concept vector to be the extended answer word candidate, and the tag included in the sentence pattern is replaced with the extended answer word candidate obtained for the cluster. By calculating the score of the language model obtained at the time, and finding the top N extended answer word candidates with the integrated score based on the score of the concept vector for the language model and the extended answer word candidates in all clusters. , You can get various answer candidates for use in the dialogue system.

本発明の実施の形態の手法を利用することで、対話システムのシナリオ作成者は、システムが発する質問文と、その質問に対する回答となる単語を数語(5語程度)回答シードとして与えることで、様々な回答単語(拡張回答単語候補)を得ることが出来る。 By using the method of the embodiment of the present invention, the scenario creator of the dialogue system can give a question sentence uttered by the system and a word to answer the question as a few words (about 5 words) as an answer seed. , Various answer words (extended answer word candidates) can be obtained.

また、雑談対話のようなオープンドメイン対話では、質問に対する回答は多岐にわたるため、それらの回答をシナリオ作成者が全て想起することは難しいが、本発明の実施の形態の手法を利用することで、シナリオ作成者は自信で回答内容を多数考える必要が無くなるため、シナリオ作成のコストが低減できるという利点がある。同時に、対話シナリオにおいて、予測できる回答数が増えるため、より多くのユーザの回答に対しての満足の行く返答が出来る可能性が高まるため、対話システムの品質や満足度の向上も期待できる。 Further, in an open domain dialogue such as a chat dialogue, since the answers to the questions are diverse, it is difficult for the scenario creator to recall all the answers. However, by using the method of the embodiment of the present invention, Since the scenario creator does not have to think about many answers with confidence, there is an advantage that the cost of creating the scenario can be reduced. At the same time, in the dialogue scenario, the number of predictable answers increases, so that the possibility of being able to give a satisfactory response to the answers of more users increases, and thus the quality and satisfaction of the dialogue system can be expected to improve.

また、本発明の実施の形態の手法は対話シナリオに対して、ユーザの回答内容の予測を拡張するものである。対話シナリオでは、システムが質問し、ユーザがその質問に答えた後、システムはユーザの回答を受けてもう一言発話する3つ組み形式が一般的である。本発明の実施の形態においても、拡張された回答に対して、システムの3発話目はシステム作成者が自身で作成する。ここで、本発明の実施の形態で出力される回答単語を参考に3発話目を作成しても良い。本発明の実施の形態では多様な観点から多数の回答単語が出力されるため、その中にはユーザの回答の予測だけでなく、3発話目として活用できるもの含まれるためである。また、3発話目の作成に従来の自動発話生成装置を組み合わせることで、対話シナリオ自体を自動で生成することも可能である。 In addition, the method of the embodiment of the present invention extends the prediction of the user's response content to the dialogue scenario. In a dialogue scenario, the system generally asks a question, the user answers the question, and then the system receives the user's answer and speaks another word. Also in the embodiment of the present invention, the system creator creates the third utterance of the system by himself / herself in response to the extended answer. Here, the third utterance may be created with reference to the answer word output in the embodiment of the present invention. This is because, in the embodiment of the present invention, a large number of answer words are output from various viewpoints, and the answer words can be used not only for predicting the user's answer but also as the third utterance. It is also possible to automatically generate the dialogue scenario itself by combining the conventional automatic utterance generator with the creation of the third utterance.

なお、本発明は、上述した実施の形態に限定されるものではなく、この発明の要旨を逸脱しない範囲内で様々な変形や応用が可能である。 The present invention is not limited to the above-described embodiment, and various modifications and applications are possible without departing from the gist of the present invention.

例えば、上述した実施の形態では、回答候補生成装置として構成する場合を例に説明したが、これに限定されるものではない。例えば、クラスタリング部のみのクラスタリング装置として構成し、質問文、質問文に対する回答単語の各々、及び外部の装置によって得られた上位の回答単語候補を入力として受け付け、回答単語候補のクラスタリング結果を出力するようにしてもよい。 For example, in the above-described embodiment, the case of configuring as an answer candidate generation device has been described as an example, but the present invention is not limited to this. For example, it is configured as a clustering device of only the clustering unit, accepts each of the question sentence and the answer word for the question sentence, and the upper answer word candidate obtained by the external device as input, and outputs the clustering result of the answer word candidate. You may do so.

10 入力部
20 演算部
22 概念ベクトルモデル生成部
24 概念ベクトルモデル
26 言語モデル生成部
28 言語モデル
30 文パターン生成部
32 拡張単語候補生成部
34 拡張回答単語候補リランキング部
36 クラスタリング部
38 条件判定部
50 出力部
100 回答候補生成装置
10 Input unit 20 Calculation unit 22 Concept vector model generation unit 24 Concept vector model 26 Language model generation unit 28 Language model 30 Sentence pattern generation unit 32 Extended word candidate generation unit 34 Extended answer word candidate reranking unit 36 Clustering unit 38 Condition judgment unit 50 Output unit 100 Answer candidate generator

Claims (6)

質問文に対する回答単語の各々と前記質問文に含まれる単語の各々とに類似する単語の各々を、前記単語の概念を表す概念ベクトルのスコアに基づいて求めて、拡張回答単語候補とする拡張単語候補生成部と、
前記質問文と前記拡張回答単語候補との組み合わせに対する、予め定められた言語モデルのスコア、及び前記拡張回答単語候補についての単語の概念を表す概念ベクトルのスコアに基づく統合スコアが上位の拡張回答単語候補と、前記質問文に対する回答単語とを含む単語集合に対して、前記概念ベクトルに基づいてクラスタリングを行うクラスタリング部と、
を含む回答候補生成装置。
Each of the answer words to the question sentence and each of the words similar to each of the words included in the question sentence are obtained based on the score of the concept vector representing the concept of the word, and the extended word is used as the extended answer word candidate. Candidate generator and
An extended answer word with a higher integrated score based on a predetermined language model score for the combination of the question sentence and the extended answer word candidate and a score of a concept vector representing the concept of the word for the extended answer word candidate. A clustering unit that clusters a word set including a candidate and an answer word to the question sentence based on the concept vector.
Answer candidate generator including.
予め定められた条件を満たすまで前記拡張単語候補生成部、及び前記クラスタリング部の処理を繰り返す条件判定部を更に含み、
前記条件判定部による繰り返し処理においては、
前記拡張単語候補生成部は、前記クラスタリング部で得られたクラスタ毎に、前記クラスタに属する単語の各々と前記質問文に含まれる単語の各々とに類似する単語の各々を、前記概念ベクトルのスコアに基づいて求めて、前記拡張回答単語候補とする、
請求項1に記載の回答候補生成装置。
Further including a condition determination unit that repeats the processing of the extended word candidate generation unit and the clustering unit until a predetermined condition is satisfied.
In the iterative processing by the condition determination unit,
In the extended word candidate generation unit, for each cluster obtained by the clustering unit, each of the words belonging to the cluster and each of the words similar to each of the words included in the interrogative sentence are scored in the concept vector. And use it as the extended answer word candidate.
The answer candidate generation device according to claim 1.
質問文に対する回答単語の各々と前記質問文に含まれる単語の各々とに類似する単語の各々を、前記単語の概念を表す概念ベクトルのスコアに基づいて求めて、拡張回答単語候補とする拡張単語候補生成部と、
前記質問文における所定の単語を拡張回答単語候補に置き換えたときに得られるスコア、及び前記拡張回答単語候補についての前記概念ベクトルのスコアに基づく統合スコアが上位N個の拡張回答単語候補を求める拡張回答単語候補リランキング部と、
前記上位N個の拡張回答単語候補と、前記質問文に対する回答単語とを含む単語集合に対して、前記概念ベクトルに基づいてクラスタリングを行うクラスタリング部と、
予め定められた条件を満たすまで前記拡張単語候補生成部、前記拡張回答単語候補リランキング部、及び前記クラスタリング部の処理を繰り返す条件判定部と、
を含み、
前記条件判定部による繰り返し処理においては、
前記拡張単語候補生成部は、前記クラスタリング部で得られたクラスタ毎に、前記クラスタに属する単語の各々と前記質問文に含まれる単語の各々とに類似する単語の各々を、前記概念ベクトルのスコアに基づいて求めて、前記拡張回答単語候補とする回答候補生成装置。
Each of the answer words to the question sentence and each of the words similar to each of the words included in the question sentence are obtained based on the score of the concept vector representing the concept of the word, and the extended word is used as the extended answer word candidate. Candidate generator and
An extension for finding the top N extended answer word candidates with a score obtained when a predetermined word in the question sentence is replaced with an extended answer word candidate and an integrated score based on the score of the concept vector for the extended answer word candidate. Answer word candidate re-ranking department and
A clustering unit that clusters a word set including the top N extended answer word candidates and answer words for the question sentence based on the concept vector.
A condition determination unit that repeats the processing of the extended word candidate generation unit, the extended answer word candidate reranking unit, and the clustering unit until a predetermined condition is satisfied.
Including
In the iterative processing by the condition determination unit,
In the extended word candidate generation unit, for each cluster obtained by the clustering unit, each of the words belonging to the cluster and each of the words similar to each of the words included in the interrogative sentence are scored in the concept vector. An answer candidate generation device that is obtained based on the above and is used as the extended answer word candidate.
拡張単語候補生成部が、質問文に対する回答単語の各々と前記質問文に含まれる単語の各々とに類似する単語の各々を、前記単語の概念を表す概念ベクトルのスコアに基づいて求めて、拡張回答単語候補とするステップと、
クラスタリング部が、前記質問文と前記拡張回答単語候補との組み合わせに対する、予め定められた言語モデルのスコア、及び前記拡張回答単語候補についての単語の概念を表す概念ベクトルのスコアに基づく統合スコアが上位の拡張回答単語候補と、前記質問文に対する回答単語とを含む単語集合に対して、前記概念ベクトルに基づいてクラスタリングを行うステップと、
を含む回答候補生成方法。
The extended word candidate generation unit finds each of the answer words to the question sentence and each of the words similar to each of the words contained in the question sentence based on the score of the concept vector representing the concept of the word, and extends it. Steps to make answer word candidates and
The clustering unit ranks higher in the integrated score based on the score of the predetermined language model for the combination of the question sentence and the extended answer word candidate and the score of the concept vector representing the concept of the word for the extended answer word candidate. A step of clustering a word set including the extended answer word candidate and the answer word for the question sentence based on the concept vector.
Answer candidate generation method including.
拡張単語候補生成部が、質問文に対する回答単語の各々と前記質問文に含まれる単語の各々とに類似する単語の各々を、前記単語の概念を表す概念ベクトルのスコアに基づいて求めて、拡張回答単語候補とするステップと、
拡張回答単語候補リランキング部が、前記質問文における所定の単語を拡張回答単語候補に置き換えたときに得られるスコア、及び前記拡張回答単語候補についての前記概念ベクトルのスコアに基づく統合スコアが上位N個の拡張回答単語候補を求めるステップと、
クラスタリング部が、前記上位N個の拡張回答単語候補と、前記質問文に対する回答単語とを含む単語集合に対して、前記概念ベクトルに基づいてクラスタリングを行うステップと、
条件判定部が、予め定められた条件を満たすまで前記拡張単語候補生成部、前記拡張回答単語候補リランキング部、及び前記クラスタリング部の処理を繰り返すステップと、
を含み、
前記条件判定部による繰り返し処理においては、
前記拡張単語候補生成部は、前記クラスタリング部で得られたクラスタ毎に、前記クラスタに属する単語の各々と前記質問文に含まれる単語の各々とに類似する単語の各々を、前記概念ベクトルのスコアに基づいて求めて、前記拡張回答単語候補とする回答候補生成方法。
The extended word candidate generation unit finds each of the answer words to the question sentence and each of the words similar to each of the words contained in the question sentence based on the score of the concept vector representing the concept of the word, and extends it. Steps to make answer word candidates and
The score obtained when the extended answer word candidate re-ranking unit replaces a predetermined word in the question sentence with the extended answer word candidate, and the integrated score based on the score of the concept vector for the extended answer word candidate are the top N. Steps to find extended answer word candidates and
A step in which the clustering unit clusters a word set including the top N extended answer word candidates and the answer word for the question sentence based on the concept vector.
A step in which the condition determination unit repeats the processes of the extended word candidate generation unit, the extended answer word candidate reranking unit, and the clustering unit until a predetermined condition is satisfied.
Including
In the iterative processing by the condition determination unit,
In the extended word candidate generation unit, for each cluster obtained by the clustering unit, each of the words belonging to the cluster and each of the words similar to each of the words included in the interrogative sentence are scored in the concept vector. A method of generating an answer candidate, which is obtained based on the above and is used as the extended answer word candidate.
コンピュータを、請求項1〜請求項3の何れか1項に記載の回答候補生成装置の各部として機能させるためのプログラム。 A program for causing a computer to function as each part of the answer candidate generation device according to any one of claims 1 to 3.
JP2020011236A 2020-01-27 2020-01-27 Answer candidate generation device, answer candidate generation method, and program Active JP6857754B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020011236A JP6857754B2 (en) 2020-01-27 2020-01-27 Answer candidate generation device, answer candidate generation method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020011236A JP6857754B2 (en) 2020-01-27 2020-01-27 Answer candidate generation device, answer candidate generation method, and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2017079659A Division JP6709748B2 (en) 2017-04-13 2017-04-13 Clustering device, answer candidate generation device, method, and program

Publications (2)

Publication Number Publication Date
JP2020074205A JP2020074205A (en) 2020-05-14
JP6857754B2 true JP6857754B2 (en) 2021-04-14

Family

ID=70610214

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020011236A Active JP6857754B2 (en) 2020-01-27 2020-01-27 Answer candidate generation device, answer candidate generation method, and program

Country Status (1)

Country Link
JP (1) JP6857754B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021237082A1 (en) * 2020-05-22 2021-11-25 Searchable AI Corp Neural network-based semantic information retrieval
CN114077678A (en) * 2020-08-17 2022-02-22 中移动信息技术有限公司 Data generation method and device, terminal equipment and storage medium
JP7661073B2 (en) 2021-03-15 2025-04-14 株式会社Screenホールディングス Vector acquisition method, vector acquisition device, and vector acquisition program
CN113434650B (en) * 2021-06-29 2023-11-14 平安科技(深圳)有限公司 Questions and answers on extending methods, apparatus, electronic devices and readable storage media
CN117992599B (en) * 2024-04-07 2024-07-09 腾讯科技(深圳)有限公司 Question and answer method and device based on large language model and computer equipment
CN120780828B (en) * 2025-06-30 2026-03-17 人民网股份有限公司 Rule constraint reply data generation method and device and computing equipment
CN120633740B (en) * 2025-08-15 2025-12-05 北京衔远有限公司 Large language model optimization method and optimization device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3654850B2 (en) * 2000-05-17 2005-06-02 松下電器産業株式会社 Information retrieval system
JP4325370B2 (en) * 2003-11-13 2009-09-02 日本電信電話株式会社 Document-related vocabulary acquisition device and program
JP2006163623A (en) * 2004-12-03 2006-06-22 Nippon Hoso Kyokai <Nhk> Question answering apparatus, question answering program, and television receiver
JP5184464B2 (en) * 2009-08-18 2013-04-17 日本電信電話株式会社 Word clustering apparatus and method, program, and recording medium storing program
JP5711674B2 (en) * 2012-01-12 2015-05-07 Kddi株式会社 Question answering program, server and method using a large amount of comment text

Also Published As

Publication number Publication date
JP2020074205A (en) 2020-05-14

Similar Documents

Publication Publication Date Title
JP6857754B2 (en) Answer candidate generation device, answer candidate generation method, and program
JP6709748B2 (en) Clustering device, answer candidate generation device, method, and program
Peng et al. Rwkv: Reinventing rnns for the transformer era
US20200395008A1 (en) Personality-Based Conversational Agents and Pragmatic Model, and Related Interfaces and Commercial Models
Lloyd et al. Automatic construction and natural-language description of nonparametric regression models
US10789951B2 (en) Speech continuation determination method, speech continuation determination device, and recording medium
CN110795913B (en) Text encoding method, device, storage medium and terminal
CN111291549B (en) Text processing method and device, storage medium and electronic equipment
EP1091303A3 (en) Method and system for providing alternatives for text derived from stochastic input sources
KR20170061016A (en) Device and method of data recognition model construction, and data recognition devicce
EP3327592A1 (en) Information processing method, information processing apparatus, and non-transitory recording medium
KR102363324B1 (en) Method and tts system for determining the unvoice section of the mel-spectrogram
JP2020135289A (en) Question answering device, learning device, question answering method and program
Chu Recipe bot: The application of conversational ai in home cooking assistant
JP7169770B2 (en) Artificial intelligence programming server and its program
CN106503066B (en) Method and device for processing search results based on artificial intelligence
WO2019106758A1 (en) Language processing device, language processing system and language processing method
JP6976155B2 (en) Similar text extractor, automatic response system, similar text extraction method, and program
JP6630701B2 (en) Answer candidate generation device, method, and program
Tamilselvan et al. Course Recommendation Using Hybrid Collaborative and Content Based Filtering Method Based on Optimized Roberta and Deep Learning Models in E-Learning Platform
JP2022140337A (en) Piece-of-writing evaluation system, piece-of-writing evaluation method and piece-of-writing evaluation program
JP2023167720A (en) Dialogue device, dialogue system, and dialogue method
CN109657079A (en) A kind of Image Description Methods and terminal device
JP2019046099A (en) Learning method, utilization method of learning result, learnt model, data structure, creating method, learning program and learning device
JP4099197B2 (en) Concept vector estimation method and apparatus, program, and computer-readable storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200130

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20210316

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210322

R150 Certificate of patent or registration of utility model

Ref document number: 6857754

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350