JP7741529B2 - Question and answer display server, question and answer display method, and question and answer display program - Google Patents
Question and answer display server, question and answer display method, and question and answer display programInfo
- Publication number
- JP7741529B2 JP7741529B2 JP2019239356A JP2019239356A JP7741529B2 JP 7741529 B2 JP7741529 B2 JP 7741529B2 JP 2019239356 A JP2019239356 A JP 2019239356A JP 2019239356 A JP2019239356 A JP 2019239356A JP 7741529 B2 JP7741529 B2 JP 7741529B2
- Authority
- JP
- Japan
- Prior art keywords
- question
- answer
- patterns
- pattern
- sentence
- 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
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
本開示は、質問回答データベースから、対話形式により、ユーザからの質問に対する回答を行うとともに、質問回答データベースへの登録において、管理者が入力した質問文の別の表現の質問文を作成して質問回答データベース構築の手助けを行う質問回答表示サーバ、質問回答表示方法及び質問回答表示プログラムに関する。 This disclosure relates to a question and answer display server, a question and answer display method, and a question and answer display program that interactively answers questions from a question and answer database, and that assists in building the question and answer database by creating alternative question sentences to those entered by an administrator when registering them in the question and answer database.
近年、AI(Artificial Intelligence)技術が注目を浴びている。ユーザサポートの場面において、従来は、人手で電話対応を行い、または、メールでユーザからの問合せに対する回答を行っていたが、AIが活用される場面が増えている。例えば、AIの活用場面では、対話システムを用いて、ユーザからの質問に回答するシステムが開発されている。 In recent years, AI (Artificial Intelligence) technology has been attracting attention. In user support situations, traditionally, telephone calls were handled manually or user inquiries were answered via email, but AI is increasingly being used in an increasing number of situations. For example, in situations where AI is being used, systems that use dialogue systems to answer questions from users are being developed.
例えば、特許文献1では、予め複数の質問・回答パターンを知識データベースとして登録し、ユーザからの質問に対して対話システムを用いて応答を行うための構成が提案されている。 For example, Patent Document 1 proposes a configuration in which multiple question and answer patterns are registered in advance as a knowledge database, and a dialogue system is used to respond to questions from users.
特許文献1は、対話形式のインタフェースを用いてユーザが求める回答を提示するものであるが、そのためには、回答パターンとそれに対応する質問パターンを用意しておく必要がある。 Patent Document 1 uses an interactive interface to present the answers the user is looking for, but to do so, it is necessary to prepare answer patterns and corresponding question patterns.
また、特許文献1のようなシステムでは、ある回答パターンに対して、質問の仕方に応じて複数の質問パターンを用意する必要があるが、その質問パターンを作成するためには、ある程度の経験が必要であり、初心者がすぐに有益な質問パターンを用意できないといった問題がある。 Furthermore, in systems such as those described in Patent Document 1, multiple question patterns must be prepared depending on how the question is asked in response to a given answer pattern, but creating these question patterns requires a certain level of experience, posing the problem that beginners may not be able to immediately prepare useful question patterns.
そこで、本開示では、ある質問パターンが入力されたときに、同じ回答パターンに対応する別の表現の質問文を自動的に作成し、有益な質問パターンの簡便な作成に資することを目的とする。 The purpose of this disclosure is to automatically create a question phrase with a different expression that corresponds to the same answer pattern when a certain question pattern is input, thereby contributing to the easy creation of useful question patterns.
本開示の一態様における質問回答表示サーバは、回答パターンとそれに対応する複数の質問パターンを含む質問回答データベースを記憶する記憶部と、ユーザ端末により入力された質問文を取得する質問文取得部と、取得した質問文と記憶部に記憶している質問パターンとの類似度に基づいて、対応する回答パターンをユーザ端末に表示させる回答パターン表示部と、管理者端末から入力された質問文を入力された質問文と同じ回答パターンに対応する一又は複数の別の表現に変換された質問文を作成する質問文作成部とを備える。 In one aspect of the present disclosure, the question and answer display server includes a memory unit that stores a question and answer database containing answer patterns and multiple corresponding question patterns; a question acquisition unit that acquires a question sentence input from a user terminal; an answer pattern display unit that displays the corresponding answer pattern on the user terminal based on the similarity between the acquired question sentence and the question pattern stored in the memory unit; and a question creation unit that creates a question sentence by converting the question sentence input from the administrator terminal into one or more different expressions that correspond to the same answer pattern as the input question sentence.
本開示の一態様における質問回答表示方法は、回答パターンとそれに対応する複数の質問パターンを含む質問回答データベースを記憶する記憶ステップと、ユーザ端末により入力された質問文を取得する質問文取得ステップと、取得した質問文と記憶ステップにて記憶した質問パターンとの類似度に基づいて、対応する回答パターンをユーザ端末に表示させる回答パターン表示ステップと、管理者端末から入力された質問文を入力された質問文と同じ回答パターンに対応する一又は複数の別の表現に変換された質問文を作成する質問文作成ステップとを備える。 A question and answer display method according to one aspect of the present disclosure includes a storage step of storing a question and answer database containing answer patterns and multiple corresponding question patterns; a question acquisition step of acquiring a question sentence input from a user terminal; an answer pattern display step of displaying the corresponding answer pattern on the user terminal based on the similarity between the acquired question sentence and the question pattern stored in the storage step; and a question creation step of creating a question sentence by converting the question sentence input from the administrator terminal into one or more different expressions corresponding to the same answer pattern as the input question sentence.
本開示の一態様における質問回答表示プログラムは、回答パターンとそれに対応する複数の質問パターンを含む質問回答データベースを記憶する記憶ステップと、ユーザ端末により入力された質問文を取得する質問文取得ステップと、取得した質問文と記憶ステップにて記憶した質問パターンとの類似度に基づいて、対応する回答パターンをユーザ端末に表示させる回答パターン表示ステップと、管理者端末から入力された質問文を入力された質問文と同じ回答パターンに対応する一又は複数の別の表現に変換された質問文を作成する質問文作成ステップとをコンピュータに実行させるためのプログラムである。 In one aspect of the present disclosure, the question and answer display program is a program that causes a computer to execute the following steps: a storage step for storing a question and answer database containing answer patterns and multiple corresponding question patterns; a question acquisition step for acquiring a question entered from a user terminal; an answer pattern display step for displaying the corresponding answer pattern on the user terminal based on the similarity between the acquired question and the question pattern stored in the storage step; and a question creation step for creating a question entered from an administrator terminal by converting the question entered from the administrator terminal into one or more different expressions that correspond to the same answer pattern as the entered question.
本開示によれば、対話形式のインタフェースによりユーザからの質問に対して回答を行う質問回答表示サーバにおいて、自動的に質問文の言い換え表現を生成することで、管理者が質問回答データベースを構築する際に、簡便に作成することを可能とする。 According to the present disclosure, a question and answer display server that answers questions from users using an interactive interface automatically generates paraphrases for questions, allowing administrators to easily create a question and answer database.
以下、本開示の実施形態に係る質問回答表示サーバ、質問回答表示方法及び質問回答表示プログラムについて図面を参照しながら説明する。なお、以下に説明する実施形態は、特許請求の範囲に記載された本開示の内容を不当に限定するものではない。また、実施形態で説明される構成の全てが、本開示の必須構成要件であるとは限らない。また、実施形態を説明する全図において、共通の構成要素には同一の符号を付し、繰り返しの説明を省略する。 Below, a question and answer display server, a question and answer display method, and a question and answer display program according to embodiments of the present disclosure will be described with reference to the drawings. Note that the embodiments described below do not unduly limit the content of the present disclosure as set forth in the claims. Furthermore, not all of the configurations described in the embodiments are necessarily essential components of the present disclosure. Furthermore, in all figures describing the embodiments, common components will be designated by the same reference numerals, and repeated explanations will be omitted.
図1は、本開示にかかる質問回答表示システム1の全体構成を示す図である。以下、これを参照して、本開示にかかる質問回答表示システム1の構成について説明する。 Figure 1 is a diagram showing the overall configuration of a question and answer display system 1 according to the present disclosure. Below, the configuration of the question and answer display system 1 according to the present disclosure will be explained with reference to this diagram.
<構成>
質問回答表示サーバ100は、記憶部101と、質問文取得部102と、回答パターン表示部103と、質問文作成部104と、マスキング部105と、質問文選択部106とを有する。質問回答表示サーバ100は、ネットワークNWを介して、ユーザ端末200-1~200-N及び管理者端末201-1~201-Mと接続されている。質問回答表示サーバ100は、コンピュータにプログラムを実装することにより実現する。なお、質問回答表示サーバ100を構成する各部は、複数のコンピュータに分散して実現されていても構わない。また、記憶部101は対話サーバ外に存在しても構わない。
<Configuration>
The question and answer display server 100 includes a memory unit 101, a question acquisition unit 102, an answer pattern display unit 103, a question creation unit 104, a masking unit 105, and a question selection unit 106. The question and answer display server 100 is connected to user terminals 200-1 to 200-N and administrator terminals 201-1 to 201-M via a network NW. The question and answer display server 100 is implemented by installing a program on a computer. Note that the components of the question and answer display server 100 may be implemented in a distributed manner on multiple computers. The memory unit 101 may also be located outside the dialogue server.
ユーザ端末200-1~200-Nは、質問文の入力を受け付けて質問回答表示サーバ100に対して発信し、当該質問文に対して質問回答表示サーバ100が生成した回答パターンを受信して表示する端末である。ユーザ端末200-1~200-Nは、例えば、ユーザサポートにおいて、不明な点の問合せを行おうとする一般ユーザが扱う端末が想定される。 User terminals 200-1 to 200-N are terminals that accept input questions, send them to question and answer display server 100, and receive and display answer patterns generated by question and answer display server 100 in response to those questions. User terminals 200-1 to 200-N are assumed to be terminals used by general users who wish to inquire about unclear points in user support, for example.
管理者端末201-1~201-Mは、記憶部101の質問文とそれに対応する回答パターンを含むデータベースにアクセスして管理する端末である。管理者端末201-1~201-Mは、例えば、ユーザサポートにおいて、問合せ対応を行うサポート管理者側が扱う端末が想定される。管理者は、管理者端末201-1~201-Mを通して、質問パターン及び回答パターンの追加・変更・削除などの登録操作を行う。 Administrator terminals 201-1 to 201-M are terminals that access and manage a database containing questions and corresponding answer patterns stored in storage unit 101. Administrator terminals 201-1 to 201-M are assumed to be terminals used by support managers who handle inquiries in user support, for example. Administrators use administrator terminals 201-1 to 201-M to perform registration operations such as adding, changing, and deleting question and answer patterns.
記憶部101は、質問パターン及び回答パターンを含む質問回答データベースを記憶する。質問回答データベースは例えば、ある1つの回答パターンに対して、1又は複数の質問パターンが記憶される。ユーザサポートなどの場面では、一つの回答に対しても複数の質問パターンが考えられるため、質問回答データベースにおいても、一つの回答パターンに対して想定される質問パターンができるだけ多く登録されていることが望ましい。 The storage unit 101 stores a question and answer database that includes question patterns and answer patterns. For example, the question and answer database stores one or more question patterns for a given answer pattern. In situations such as user support, multiple question patterns are possible for a single answer, so it is desirable for the question and answer database to also register as many possible question patterns as possible for a single answer pattern.
質問回答表示サーバ100は、記憶部101の質問回答データベースを用いて、ユーザがユーザ端末200-1~200-Nにより入力した質問文に対して、対応する回答パターンを表示し、チャットなどの対話形式でやり取りを進めていくことが可能なインタフェースを提供する。 The question and answer display server 100 uses the question and answer database in the storage unit 101 to display answer patterns corresponding to questions entered by users via user terminals 200-1 to 200-N, and provides an interface that allows users to engage in interactive exchanges such as chat.
質問文取得部102は、ネットワークNWを介して、ユーザ端末200-1~200-N又は/及び管理者端末201-1~200-Mから質問文を取得する。質問文は、自然文の形式で取得することが可能である。自然文の形式で質問を可能とすることにより、ユーザは人に問合せているのと同じような感覚で簡単に問合せを行うことが可能となる。なお、キーワード等を示す単語を取得してもよい。 The question acquisition unit 102 acquires questions from user terminals 200-1 to 200-N and/or administrator terminals 201-1 to 200-M via the network NW. Questions can be acquired in the form of natural language. By allowing questions to be asked in the form of natural language, users can easily make inquiries in the same way as if they were asking a person. Note that words indicating keywords, etc. may also be acquired.
回答パターン表示部103は、質問文取得部102で取得した質問文に対して、記憶部101に登録されている質問パターンと比較し、質問パターンとの類似度を算出する。ここで、質問パターンとの類似度とは、同じ回答パターンに対応する質問パターンの集合である質問パターン群との類似度や、質問パターンを元にした関数やカテゴリ等との類似度も含まれる。類似度の算出に際しては、例えば、自然言語処理により計算する。具体的には、質問パターンと質問文のキーワードをそれぞれ抽出しておき、キーワードの一致度をキーワード毎の重みなども用いて類似度としてもよい。他にも、質問パターンと質問文をそれぞれベクトル化し、コサイン類似度を用いて類似度を算出してもよい。このように、類似度を用いて質問文がどの質問パターンに類似するか算出することで、記憶部に記憶されている質問パターンと同一でなくとも、回答パターンを選択することが可能となる。 The answer pattern display unit 103 compares the question sentence acquired by the question sentence acquisition unit 102 with question patterns registered in the memory unit 101 and calculates the similarity to the question pattern. Here, similarity to a question pattern includes similarity to a question pattern group, which is a collection of question patterns corresponding to the same answer pattern, and similarity to functions, categories, etc. based on question patterns. The similarity is calculated, for example, using natural language processing. Specifically, keywords from the question pattern and the question sentence may be extracted, and the degree of keyword agreement may be calculated using weights for each keyword. Alternatively, the question pattern and the question sentence may be converted into vectors, and the similarity may be calculated using cosine similarity. In this way, by using similarity to calculate which question pattern the question sentence is similar to, it is possible to select an answer pattern even if it is not the same as the question pattern stored in the memory unit.
回答パターン表示部103で用いる質問文と質問パターンとの類似度の算出に際しては、ユーザ及び/又は管理者が入力した質問パターンを学習データ(教師データともいう)の候補として機械学習をさせることにより、類似度算出のためのパラメータを更新してもよい。このような機械学習を行うことにより、ユーザの意図にあった回答パターンを提示する精度を向上させることが可能となる。 When calculating the similarity between the question sentence and question pattern used in the answer pattern display unit 103, the parameters for calculating the similarity may be updated by performing machine learning using the question pattern entered by the user and/or administrator as a candidate for learning data (also called teacher data). By performing such machine learning, it is possible to improve the accuracy of presenting answer patterns that match the user's intentions.
回答パターン表示部103は、さらに、類似度に基づいて、質問文との間の類似度の高い質問パターンに対応する回答パターンをユーザ端末200-1~200-Nに表示する。 The answer pattern display unit 103 further displays, on the user terminals 200-1 to 200-N, answer patterns corresponding to question patterns that have a high degree of similarity with the question sentence based on the degree of similarity.
また、回答パターンとともに、確信度を合せて表示してもよい。確信度とは、対話サーバにおいて、質問文が記憶部101に記憶された質問パターンと同じことを意味しているという自信の程度を示す尺度であり、回答パターン表示部103で算出された類似度を用いてもよい。確信度は、類似度をそのまま用いず、他の方法により質問文と質問パターンとの一致の程度を評価した上で、算出することも可能である。他の方法とは、例えば、類似度をコサイン類似度により算出した場合に、確信度をキーワードの一致度で算出するなどの方法を含む。確信度を表示する場合には、数値で表示してもよいし、その程度をアイコン等で表現して表示してもよい。 The confidence level may also be displayed along with the answer pattern. The confidence level is a measure of the dialogue server's degree of confidence that the question sentence has the same meaning as the question pattern stored in the memory unit 101, and the similarity calculated by the answer pattern display unit 103 may be used. The confidence level may be calculated by evaluating the degree of match between the question sentence and the question pattern using another method, rather than using the similarity level as is. Other methods include, for example, calculating the confidence level using the degree of keyword match when the similarity level is calculated using cosine similarity. When displaying the confidence level, it may be displayed numerically, or the degree may be expressed using an icon or the like.
なお、確信度に対して、ある一定の閾値を設定した上で、閾値以上の回答パターンを全て、または上位n件を表示させることも可能である。このように、一定の確信度があることを前提として、複数件の回答パターンを表示させることで、ユーザが求める回答パターンを表示することができる可能性を高めることが可能となる。 It is also possible to set a certain threshold for the confidence level and then display all answer patterns above that threshold, or the top n answer patterns. In this way, by displaying multiple answer patterns assuming a certain confidence level, it is possible to increase the likelihood that the answer pattern the user is looking for will be displayed.
また、確信度の上位1つのみを回答パターンとして表示することも可能である。さらに、設定した閾値以上の回答パターンがない場合には、回答パターンの表示を行わない又は「質問を変更してください」など、別の質問を促すような表示を行うことも可能である。これにより、ユーザは、意図した質問に対する回答とは異なる回答パターンが表示されることを避け、不要な混乱を招かずに済むことが可能となる。 It is also possible to display only the answer pattern with the highest confidence level. Furthermore, if there are no answer patterns that meet or exceed a set threshold, it is possible to not display any answer patterns or to display a message prompting the user to ask a different question, such as "Please change your question." This allows the user to avoid being shown an answer pattern that is different from the answer to the question they intended, and avoids unnecessary confusion.
質問文作成部104は、管理者端末201-1~201-Mから入力された質問文から、別の表現に変換された質問文を作成する。 The question creation unit 104 creates a question by converting the question entered from the administrator terminals 201-1 to 201-M into a different expression.
別の表現に変換された質問文とは、入力された質問文と同じ回答パターンを表示すべき内容の文であり、入力された質問文と同義の文であってもよい。また、必ずしも入力された質問文と同義の文でなくとも、同じ趣旨のことを質問しているなど回答パターンに対応する質問文であってもよい。 A question sentence converted into a different expression is a sentence whose content should display the same answer pattern as the input question sentence, and may be a sentence that is synonymous with the input question sentence. Also, it does not necessarily have to be a sentence that is synonymous with the input question sentence, but may be a question sentence that corresponds to an answer pattern, such as asking about the same thing.
質問文作成部104は、管理者端末201-1~201-Mから入力された質問文を質問文取得部102を介して取得する。そして、質問文作成部104は、記憶部101に記憶される回答パターン及びそれに紐づく質問パターン、すなわち質問パターン群を用いて、質問文から、別の表現に変換された質問文を作成する。 The question creation unit 104 acquires the question entered from the administrator terminals 201-1 to 201-M via the question acquisition unit 102. Then, the question creation unit 104 uses the answer patterns and associated question patterns, i.e., question pattern groups, stored in the storage unit 101 to create a question converted from the question into a different expression.
質問文作成部104は、例えば、同義文辞書を用いて、自然言語処理を行い、入力された質問文の単語を別の単語に変換することによって、別の表現に変換された質問文を作成してもよい。 The question creation unit 104 may, for example, use a synonym dictionary to perform natural language processing and convert words in the input question into different words, thereby creating a question that has been converted into a different expression.
質問文作成部104は、また、例えば、同義文辞書を用いて、ルールベースの規則を用いて、入力された質問文から、別の表現に変換された質問文を作成してもよい。 The question creation unit 104 may also create a question that is converted from the input question into a different expression using, for example, a synonym dictionary or rule-based rules.
質問文作成部104は、さらに、統計モデルや機械学習を用いて学習モデルを生成することにより、入力された質問文から別の表現の質問文を作成してもよい。 The question creation unit 104 may further create a question expressed differently from the input question by generating a learning model using a statistical model or machine learning.
質問文作成部104は、統計モデルや機械学習を用いる際に、学習データを次のように生成するとよい。すなわち、記憶部101に記憶される回答パターン及び質問パターンは、ある回答パターンに対する質問パターンという関係において、対応関係を有する。また、回答パターンには、一又は複数の質問パターンが紐づいており、一つの回答パターンに対応する複数の質問パターンは、それぞれ他の質問パターンの言い換え表現と仮定することが可能である。 When using a statistical model or machine learning, the question creation unit 104 may generate learning data as follows. That is, the answer patterns and question patterns stored in the memory unit 101 have a correspondence relationship in which a question pattern corresponds to a certain answer pattern. Furthermore, an answer pattern is linked to one or more question patterns, and multiple question patterns corresponding to one answer pattern can each be assumed to be paraphrases of the other question patterns.
質問文作成部104は、ある回答パターンに対応する複数の質問パターン群において、当該質問パターン群に属するある質問パターンを、当該質問パターン群に属する他の質問パターンの言い換え表現としての正解データ、すなわち、機械学習の学習データとし、これにより学習モデル等を生成した上で、取得した質問文から別の表現に変換された質問文を作成する。 The question creation unit 104, in a group of multiple question patterns corresponding to a certain answer pattern, uses a certain question pattern belonging to that group as correct answer data that is a paraphrase of other question patterns belonging to that group, i.e., as learning data for machine learning, and generates a learning model, etc. using this, and then creates a question that has been converted from the acquired question into a different expression.
なお、機械学習の学習データとして用いるのは、記憶部101に記憶される質問回答データベースに限らず、質問回答データベースに登録された文から同義文辞書を用いて変換された質問パターンを加えてもよい。 Note that the learning data used for machine learning is not limited to the question and answer database stored in the storage unit 101; question patterns converted from sentences registered in the question and answer database using a synonym dictionary may also be added.
質問文作成部104が統計モデルや機械学習を用いる際の学習データについて前述したが、以下では、統計モデルや機械学習を用いて言い換え表現の質問文を作成する方法について述べる。 The learning data used by the question creation unit 104 when using statistical models and machine learning has been described above. Below, we will describe a method for creating paraphrased questions using statistical models and machine learning.
質問文作成部104が言い換え表現である別の表現の質問文を作成するために、例えば、機械翻訳の技術を用いる。また、特にニューラル翻訳の技術を用いると、複数の変換された質問文の候補が得やすい。 The question creation unit 104 uses, for example, machine translation technology to create a question in a different expression, which is a paraphrase expression. Furthermore, using neural translation technology in particular makes it easy to obtain multiple converted question candidates.
質問文作成部104は、例えば、統計モデルを用いた自動翻訳の技術をベースとして、学習データを用いて翻訳モデルと言語モデルを用意し、入力された質問文から、別の表現に変換された質問文を作成してもよい。 The question creation unit 104 may, for example, use training data to prepare a translation model and a language model based on automatic translation technology using a statistical model, and create a question that is converted from the input question into a different expression.
質問文作成部104は、例えば、機械翻訳の技術をベースとして、学習モデルを構築した上で、入力された質問文から、別の表現に変換された質問文を作成してもよい。 The question creation unit 104 may, for example, build a learning model based on machine translation technology and then create a question by converting the input question into a different expression.
このとき、機械翻訳の技術として、ニューラル翻訳をベースとした学習モデルを構築すると好ましい。ニューラル翻訳をベースとした学習モデルを用いると、入力された質問文から別の表現に変換された質問文を作成する際に、複数の質問文候補を出力しやすい。 In this case, it is preferable to build a learning model based on neural translation as a machine translation technology. Using a learning model based on neural translation makes it easier to output multiple candidate questions when creating a question that has been converted from the input question into a different expression.
質問文作成部104は、さらに、例えばアテンション付(注意機構付)LSTM翻訳モデルを用いて、ニューラル翻訳と同じように学習モデルを構築すると好ましい。これにより、入力された質問文を一又は複数の別の表現の質問文に変換し、作成することができる。 The question creation unit 104 preferably further constructs a learning model in the same way as neural translation, for example, using an attention-enabled LSTM translation model. This makes it possible to convert the input question into one or more questions expressed differently and create them.
質問回答表示システム1では、管理者端末201-1~201-Mを通して、管理者が回答パターンと質問パターンを追加し、記憶部101に記憶する。しかし、管理者が質問パターンの追加を行うには、一定の経験値が必要であり、質問回答表示サーバ100側から質問パターンの提案ができれば効率よく質問パターンを追加することが可能となる。質問文作成部104はこれを実現し、管理者が入力した質問文の言い換え表現の質問文を提案し、記憶部への質問パターンの追加を補助するための機能である。 In the question and answer display system 1, the administrator adds answer patterns and question patterns via administrator terminals 201-1 to 201-M and stores them in the storage unit 101. However, adding question patterns requires a certain level of experience, and if question and answer display server 100 could suggest question patterns, it would be possible to add question patterns more efficiently. The question creation unit 104 achieves this, proposing question sentences that paraphrase the question entered by the administrator and assisting in the addition of question patterns to the storage unit.
マスキング部105は、質問文作成部104が作成した質問文について、自然言語処理を用いて、固有名詞をマスキングする。 The masking unit 105 uses natural language processing to mask proper nouns in the question created by the question creation unit 104.
マスキング部105は、質問文から自然言語処理を用いて固有名詞を抽出するにあたり、例えば、単語辞書を用いたり、機械学習などの方法により、抽出を行う。以下のような方法を用いる。すなわち、単語辞書を用いて、質問文に対して自然言語処理を行い、単語辞書にない単語を固有名詞として抽出する。 When extracting proper nouns from a question sentence using natural language processing, the masking unit 105 performs the extraction using, for example, a word dictionary or a method such as machine learning. The following method is used: That is, a word dictionary is used to perform natural language processing on the question sentence, and words that are not in the word dictionary are extracted as proper nouns.
マスキング部105は、例えば、単語辞書を用いて、質問文に対して自然言語処理を行い、単語辞書にない単語を固有名詞として抽出する。 The masking unit 105 performs natural language processing on the question sentence using, for example, a word dictionary, and extracts words that are not in the word dictionary as proper nouns.
マスキング部105は、例えば、固有名詞を抽出するための機械学習のための学習モデルを用いて、固有名詞を抽出する。 The masking unit 105 extracts proper nouns, for example, using a learning model for machine learning to extract proper nouns.
マスキング部105は、抽出された固有名詞を特定の文字や記号に置き換えるなどの方法により、マスキング処理を行う。 The masking unit 105 performs masking processing by replacing the extracted proper nouns with specific characters or symbols.
質問回答表示システム1は、例えば、ユーザーサポートを行う複数の事業者が管理者端末201-1~201~Mを操作し、当該事業者のユーザがユーザ端末200-1~200-Nを利用することが想定される。そこで、学習データとして、他の事業者が作成した質問パターン群を学習データとすることもあり得る。このとき、変換された質問文に対してマスキング処理を行うことにより、固有名詞を排除し、他の事業者に特有の事象を排除して汎用的にデータ活用を行うことが可能となる。 The question and answer display system 1 is envisioned as a system in which, for example, multiple businesses providing user support operate administrator terminals 201-1 to 201-M, and users of these businesses use user terminals 200-1 to 200-N. Therefore, question patterns created by other businesses may be used as training data. In this case, masking the converted question text can be performed to eliminate proper nouns and events specific to other businesses, allowing for general use of the data.
質問文選択部106は、質問文作成部104で作成され、又はマスキング部105でマスキング処理された質問文について、候補となる言い換えられた複数の質問文の中から、管理者に対して、回答パターンに登録すべき一又は複数の質問文を選択させ、管理者が選択した質問文を受け付け取得する。質問文選択部106は、受け付けた質問文を、回答パターンに対する質問パターンとして、記憶部101に記憶する。 The question selection unit 106 allows the administrator to select one or more questions to be registered as answer patterns from among multiple candidate paraphrased questions created by the question creation unit 104 or masked by the masking unit 105, and accepts and acquires the questions selected by the administrator. The question selection unit 106 stores the accepted questions in the memory unit 101 as question patterns for the answer patterns.
質問文選択部106により、管理者に対してインタフェースを提供し、管理者は記憶部101に追加したい質問文を選択するだけで登録可能とすることにより、より簡単に質問パターンの追加を実現することが可能となる。 The question selection unit 106 provides an interface to the administrator, allowing the administrator to register the question they want to add to the storage unit 101 simply by selecting it, making it easier to add question patterns.
なお、質問文作成部104は、言い換え表現の作成にあたり、管理者端末から入力された質問文と、質問文選択部106により選択された質問文を学習データとして使用し、又は、質問パターン群と合わせて学習データとして使用し、質問文の言い換え表現を作成するための学習モデルの構築等に役立ててもよい。 When creating paraphrases, the question creation unit 104 may use the question entered from the administrator terminal and the question selected by the question selection unit 106 as learning data, or may use them in combination with a group of question patterns as learning data, which may be useful for building a learning model for creating paraphrases of questions.
<質問回答データベース及び質問回答表示サーバの基本的動作>
図2は、記憶部101が記憶する質問回答データベースの具体例を示す。質問回答データベースは、質問パターンと回答パターンの組み合わせからなり、一つの回答パターンに対して、一又は複数の質問パターンが用意されている。
<Basic operations of the question and answer database and the question and answer display server>
2 shows a specific example of the question and answer database stored in the storage unit 101. The question and answer database is made up of a combination of question patterns and answer patterns, and one or more question patterns are prepared for each answer pattern.
ユーザから質問回答表示サーバに対して問合せが行われる場合には、ユーザはユーザ端末200-1~200-Nを操作して質問文を入力し、質問文取得部102は、ユーザから入力された質問文を取得する。 When a user makes an inquiry to the question and answer display server, the user operates the user terminal 200-1 to 200-N to input a question, and the question acquisition unit 102 acquires the question input by the user.
図3は、質問文取得部がユーザ端末200-1~200-N又は/及び管理者端末201-1~201-Mに対して質問文を取得する際のユーザインタフェース111の一例を示す。質問文取得部では、キーボードやタッチパネルなどから入力することにより、質問文を取得する。また、音声認識エンジンを介して音声により入力する構成とすることも可能である。 Figure 3 shows an example of the user interface 111 when the question acquisition unit acquires a question for the user terminals 200-1 to 200-N and/or the administrator terminals 201-1 to 201-M. The question acquisition unit acquires a question by inputting it from a keyboard, touch panel, or the like. It is also possible to configure the question to be input by voice via a voice recognition engine.
回答パターン表示部103は、質問文と記憶部101に記憶された質問パターンとの類似度を算出する。ここで、質問パターンとの類似度とは、同じ回答パターンに対応する質問パターンの集合である質問パターン群との類似度や、質問パターンを元にした関数やカテゴリ等との類似度も含まれる。 The answer pattern display unit 103 calculates the similarity between the question sentence and the question pattern stored in the memory unit 101. Here, similarity to a question pattern includes similarity to a question pattern group, which is a collection of question patterns corresponding to the same answer pattern, as well as similarity to functions, categories, etc. based on the question pattern.
例えば、記憶部101には、回答パターンがA1からANまでNパターン登録されているとする。そして、質問パターンは、各回答パターンに対して、Q11からQ1M1、Q21からQ2M2、…QN1からQNMNまでの質問パターンが登録されている。このとき、質問パターンQ11からQ1M1を質問パターン群C1、質問パターンQ21からQ2M2を質問パターン群C2…質問パターンQN1からQNMNを質問パターン群CNとする。このとき、回答パターン表示部103は、質問文と質問パターン(Q11からQNMNまで)との類似度を算出してもよい。また、質問文と質問パターン群(C1からCNまで)との類似度を算出してもよい。さらに、質問パターンを基にした関数やカテゴリ等との類似度を算出しても良い。 For example, suppose that N answer patterns, from A1 to AN, are registered in the memory unit 101. Then, for each answer pattern, question patterns Q11 to Q1M1, Q21 to Q2M2, ... QN1 to QNMN are registered. In this case, question patterns Q11 to Q1M1 are question pattern group C1, question patterns Q21 to Q2M2 are question pattern group C2, ... question patterns QN1 to QNMN are question pattern group CN. In this case, the answer pattern display unit 103 may calculate the similarity between the question sentence and the question pattern (Q11 to QNMN). It may also calculate the similarity between the question sentence and the question pattern group (C1 to CN). Furthermore, it may calculate the similarity with functions, categories, etc. based on the question pattern.
回答パターン表示部103は、質問文と記憶部101に記憶された質問パターンとの類似度を算出する。例えば、「住所情報を変更したい」という質問文を取得し、記憶部101にC1、C2、C3という質問パターン群が登録されていたとする。回答パターン表示部103は、質問文と各質問パターン群との類似度を算出し、この場合、例えば各質問パターン群との類似度がそれぞれ、0.92、0.70、0.21などのように算出される。 The answer pattern display unit 103 calculates the similarity between the question sentence and the question patterns stored in the memory unit 101. For example, suppose a question sentence such as "I would like to change my address information" is acquired, and question pattern groups C1, C2, and C3 are registered in the memory unit 101. The answer pattern display unit 103 calculates the similarity between the question sentence and each question pattern group; in this case, the similarities with each question pattern group are calculated to be, for example, 0.92, 0.70, and 0.21, respectively.
回答パターン表示部103は、質問文、質問パターン及び類似度を用いて、確信度を算出する。ここでは、例えば、質問パターン群C1に対して98%、C2に対して78%、C3に対して20%と計算される。また、閾値を60%としている場合には、C1及びC2の確信度が閾値を超えるため、これに対する回答パターンであるA1、A2の回答パターンの表示を確信度の情報とともに、ユーザ端末200-1~200-Nに対して表示する。 The answer pattern display unit 103 calculates the confidence level using the question sentence, question pattern, and similarity. Here, for example, it calculates 98% for question pattern group C1, 78% for C2, and 20% for C3. Furthermore, if the threshold is set to 60%, the confidence levels of C1 and C2 exceed the threshold, and the corresponding answer patterns, A1 and A2, are displayed on user terminals 200-1 to 200-N along with confidence level information.
なお、回答パターンの表示を、上位1つのみとする場合には、上記確信度が閾値を超えたもののうち、最も確信度が高いA1の回答パターンのみを表示する。 If only the top answer pattern is displayed, only the answer pattern A1, which has the highest confidence level among those whose confidence level exceeds the threshold, will be displayed.
図4は、回答パターン表示部103がユーザ端末200-1~200-Nに対して表示させるユーザインタフェース111の一例を示す。なお、この例では、右側にユーザが入力した質問文を示し、左側に対話サーバが選択した回答パターンを示す。 Figure 4 shows an example of the user interface 111 that the answer pattern display unit 103 displays on the user terminals 200-1 to 200-N. In this example, the question entered by the user is shown on the right, and the answer pattern selected by the dialogue server is shown on the left.
以上が、質問回答表示サーバ100の基本的動作である。 The above is the basic operation of the question and answer display server 100.
<質問文の言い換え表現作成の具体的動作>
質問文作成部104は、入力された質問文から、別の表現の質問文を作成する。例えば、ユーザサポートなどの場面で、「パスワードを忘れた」、「パスワードを失念した」、「パスワードをなくした」はどれも同じ意味であり、対応する回答回答パターンとしては、例えば、「こちらのページからパスワードの再設定をしてください」などがあり得る。
<Specific steps for creating a paraphrase of a question>
The question creation unit 104 creates a question with a different expression from the input question. For example, in a user support situation, "I forgot my password,""I forgot my password," and "I lost my password" all have the same meaning, and a corresponding answer pattern could be, for example, "Please reset your password from this page."
この場合、「パスワードを忘れた」という質問文に対して、自然言語処理を行い、「忘れた」を同義文辞書などを用いて変換することにより、「パスワードを失念した」、「パスワードをなくした」などの別の表現、言い換え表現の質問文を作成することが可能となる。 In this case, by performing natural language processing on the question "I forgot my password" and converting "forgot" using a synonym dictionary, it is possible to create a question with a different or paraphrased expression, such as "I forgot my password" or "I lost my password."
質問文作成部104は、このように同義語辞書を用いて作成した質問文を、別の表現の質問文の候補としてもよいし、学習パターンとして追加した上で、統計モデルや機械学習を用いた方法により別の質問文を作成してもよい。 The question creation unit 104 may use a question created using a synonym dictionary in this way as a candidate for a question with a different expression, or may add it as a learning pattern and then create another question using a statistical model or machine learning method.
以下、質問文作成部104が質問文を作成するに際し、特に機械学習を用いた方法について具体的に述べる。 The following describes in detail the method in which the question creation unit 104 creates questions, particularly using machine learning.
質問文作成部104では、記憶部101に記憶される質問回答データベースの質問パターン群を学習データとして用いる。併せて、同義文辞書を用意した上で学習データに役立ててもよい。言い換え表現に変換された質問文を得るためには、特に、機械学習の技術、さらには、アテンション付LSTM翻訳モデルを用いて、ニューラル翻訳と同様に学習モデルを構築するとよい。 The question creation unit 104 uses the question patterns in the question and answer database stored in the storage unit 101 as training data. A synonym dictionary may also be prepared and used as training data. In order to obtain questions converted into paraphrased expressions, it is particularly effective to use machine learning techniques, and more specifically, an attention-enabled LSTM translation model, to build a training model similar to neural translation.
通常の機械翻訳では、ある自然文とその翻訳文との関係は1対1である。しかし質問文作成部104において、言い換え表現を作成するためには、出力文に柔軟性を与えることが必要である。したがって、言い換え表現の関係にある学習データとなる質問パターン群のように、複数の質問パターンが存在し、言い換え表現が1対Nの関係にある学習データを用いることが望ましい。 In normal machine translation, the relationship between a natural sentence and its translation is one-to-one. However, in order for the question creation unit 104 to create paraphrased expressions, it is necessary to provide flexibility to the output sentences. Therefore, it is desirable to use training data in which there are multiple question patterns and paraphrased expressions have a one-to-N relationship, such as a group of question patterns that serve as training data in which paraphrased expressions are related.
ここで、回答パターンの集合をA=(a1,a2,…aN)とする。aiにはmi個の質問パターンQi=(qi1,qi2,…qimi)が結びついている。またすべての質問パターンはQ=(Q1,Q2,…QN)として表すことができる。 Here, let the set of answer patterns be A = (a1, a2, ... aN). ai is associated with mi question patterns Qi = (qi1, qi2, ... qimi). Furthermore, all question patterns can be expressed as Q = (Q1, Q2, ... QN).
学習データセットは、(qij,qik)の組み合わせからなる。このとき、iは1からNまでのいずれかであり、j及びkは1からmiまでの値であり、j=kとはならないことが条件である。 The training dataset consists of combinations of (qij, qik), where i is a value between 1 and N, j and k are values between 1 and mi, and j and k cannot equal k.
学習モデルの作成において、すべての組み合わせのデータを学習データとして用いると、データ量が膨大となるため、ランダムで一定量を選択し、ダウンサプリングしてもよい。 When creating a learning model, if all combinations of data are used as training data, the amount of data will be enormous, so it is also possible to randomly select a certain amount and downsample it.
学習データセットを確定した後、質問文作成部104は、学習データセットを用いて、アテンション付LSTM翻訳モデルの学習モデルを構築する。 After determining the training dataset, the question creation unit 104 uses the training dataset to construct a training model for the attention-enabled LSTM translation model.
質問文作成部104は、取得した質問文をアテンション付LSTM翻訳モデルに入力し、別の表現の質問文を作成する。ここで、ニューラル翻訳モデルであるアテンション付LSTM翻訳を用いることで、出力と同時に尤度を算出することができる。したがって、算出された尤度を質問文に対する言い換え表現の信頼度の指標である確信度として用いることが可能である。 The question creation unit 104 inputs the acquired question into an attention-enabled LSTM translation model to create a differently expressed question. Here, by using attention-enabled LSTM translation, a neural translation model, likelihood can be calculated simultaneously with output. Therefore, the calculated likelihood can be used as a confidence level, which is an indicator of the reliability of the paraphrased expression for the question.
さらに、質問文作成部104は、一定の閾値を設定し、算出された確信度に対して、枝刈を行いつつ貪欲法を用いたビームサーチを行うことで、閾値以上の確信度を有する言い換え表現の質問文を取り出し、複数の候補の言い換え表現を作成することが可能となる。 Furthermore, the question creation unit 104 sets a certain threshold and performs a beam search using a greedy method while pruning the calculated confidence level, thereby extracting question sentences with paraphrased expressions that have a confidence level above the threshold, making it possible to create multiple candidate paraphrased expressions.
このとき、質問文作成部104は、単純にビームサーチを行うと文頭の確信度の影響が大きくなるので、文頭単語に関しては上位数個を持っておいて文頭単語を起点に言い換え表現の質問文を作成してもよい。 In this case, if the question creation unit 104 simply performs a beam search, the influence of the confidence level at the beginning of the sentence will be large, so it may keep the top few words at the beginning of the sentence and create a paraphrased question using these words as a starting point.
上記では、特に、機械学習の技術を用いた上で、アテンション付LSTM翻訳モデルを用いる方法を述べたが、その他の機械学習を用いる場合にも、同様に学習データを用意した上で、複数の言い換え表現の質問文を出力させた上で、閾値を用いて、上位N個の質問文を作成する方法をとることができる。 The above describes a method that uses machine learning technology and an attention-assisted LSTM translation model, but even when using other machine learning methods, it is possible to similarly prepare training data, output multiple paraphrased questions, and then use a threshold to create the top N questions.
さらに、統計的モデルを用いる場合にも、同様に学習データを用意した上で、尤度とともに複数の言い換え表現の質問文を出力させ、閾値を用いて、上位N個の質問文を作成する方法をとることができる。 Furthermore, when using a statistical model, it is possible to similarly prepare training data, output multiple paraphrased question sentences along with their likelihoods, and then use a threshold to create the top N questions.
マスキング部105は、質問文作成部104で作成された質問文について、固有名詞にマスキングを施す。マスキング部105例えば、単語辞書を用いて、自然言語処理により、単語辞書にない単語を固有名詞として抽出を行う。 The masking unit 105 masks proper nouns in the question created by the question creation unit 104. For example, the masking unit 105 uses a word dictionary and natural language processing to extract words that are not in the word dictionary as proper nouns.
マスキング部105は、その他にも、機械学習を用いて、固有名詞を抽出した上で、マスキングを施してもよい。 The masking unit 105 may also use machine learning to extract proper nouns and then apply masking.
マスキング部105において、言い換え表現である質問文に対して、マスキングを行うことで、固有名詞の影響を排除し、多くの質問パターンを学習データとして採用した上で質問文を作成することが可能となる。 The masking unit 105 masks the question sentences, which are paraphrases, to eliminate the influence of proper nouns and to create questions by using many question patterns as training data.
質問文選択部106は、質問文作成部104が作成した管理者が入力した質問文の言い換え表現の質問文又は、マスキング部105においてマスキング処理された質問文に対して、回答パターンに登録すべき質問パターンを管理者に選択させる。そして、選択された質問文を記憶部101に質問パターンとして追加する。 The question selection unit 106 allows the administrator to select a question pattern to be registered as an answer pattern for a question created by the question creation unit 104 that is a paraphrase of the question entered by the administrator, or for a question masked by the masking unit 105. The selected question is then added to the storage unit 101 as a question pattern.
図5に、質問文作成部104が作成した質問文の具体例と、質問文選択部106において、管理者に対して質問文を表示し、選択させるインタフェースの具体例を示す。図5において、管理者が質問文を選択した上で、登録ボタンを押下することにより、管理者が入力した質問文と同じ回答パターンに言い換え表現の質問文を質問パターンとして登録し、記憶部101に記憶する。 Figure 5 shows a specific example of a question created by the question creation unit 104, and a specific example of an interface in the question selection unit 106 that displays questions to the administrator and allows them to select one. In Figure 5, the administrator selects a question and then presses the registration button, whereby a question phrased in a paraphrase of the same answer pattern as the question entered by the administrator is registered as a question pattern and stored in the storage unit 101.
<処理の流れ>
図6は、本開示における質問回答表示サーバのユーザが使用する際の処理の流れを示す。
<Processing flow>
FIG. 6 shows the flow of processing when a user uses the question and answer display server according to the present disclosure.
質問文取得部102は、ネットワークNWを介して、ユーザ端末200-1~200-Nから質問文を取得する。質問文は、自然文の形式で取得することが可能である(ステップS1)。 The question acquisition unit 102 acquires questions from user terminals 200-1 to 200-N via the network NW. The questions can be acquired in the form of natural language (step S1).
回答パターン表示部103は、質問文取得部102で取得した質問文に対して、記憶部101に登録されている質問パターンと比較し、質問パターンとの類似度を算出する。類似度の算出に際しては、例えば、自然言語処理により計算することが可能である。 The answer pattern display unit 103 compares the question sentence acquired by the question sentence acquisition unit 102 with question patterns registered in the storage unit 101 and calculates the degree of similarity with the question pattern. The degree of similarity can be calculated, for example, using natural language processing.
また、回答パターン表示部103は、類似度に基づいて、質問文との間の類似度の高い質問パターンに対する回答パターンをユーザ端末200-1~200-Nに表示する(ステップS2)。 Furthermore, the answer pattern display unit 103 displays answer patterns for question patterns that have a high degree of similarity with the question sentence on the user terminals 200-1 to 200-N based on the similarity (step S2).
図7は、本開示における質問回答表示サーバにおいて、管理者端末201-1~201-Mから入力された質問文を変換し、言い換えた質問文を作成した上で、管理者に選択させる際の処理の流れを示す。 Figure 7 shows the processing flow when a question and answer display server according to the present disclosure converts a question input from an administrator terminal 201-1 to 201-M, creates a paraphrased question, and then allows the administrator to select a question.
質問文作成部104は、管理者端末201-1~201-Mより入力された質問文を変換して、言い換えた質問文を作成する。具体的には、記憶部101に記憶された質問パターン群を学習データとして、アテンション付LSTM翻訳モデルを構築し、入力された質問文の言い換え表現である質問文を作成する(ステップS3)。 The question creation unit 104 converts questions input from the administrator terminals 201-1 to 201-M to create paraphrased questions. Specifically, it uses the question patterns stored in the storage unit 101 as training data to build an attention-enabled LSTM translation model and creates questions that are paraphrased versions of the input questions (step S3).
マスキング部105は、質問文作成部104により作成された質問文について、固有名詞に対してマスキングを行う。このとき、自然言語処理を用いて、辞書にない単語を固有名詞として判別を行う(ステップS4)。 The masking unit 105 masks proper nouns in the question created by the question creation unit 104. At this time, natural language processing is used to determine that words not in the dictionary are proper nouns (step S4).
質問文選択部106は、質問文作成部104により作成された言い換えられた表現の質問文を管理者端末201-1~201-Mに表示して管理者に選択させ、選択された質問文を質問パターンとして記憶部101に記憶する(ステップS5)。 The question selection unit 106 displays the rephrased questions created by the question creation unit 104 on the administrator terminals 201-1 to 201-M to allow the administrator to select one, and stores the selected question in the memory unit 101 as a question pattern (step S5).
<効果>
本開示により、質問回答表示サーバにおいて、管理者がある回答パターンに対する質問パターンを作成する際に、質問文作成部104によりシステム側で言い換え表現の質問文を提示することにより、容易に質問パターンを作成することが可能となる。
<Effects>
According to the present disclosure, when an administrator creates a question pattern for a certain answer pattern in a question and answer display server, the question creation unit 104 can present a paraphrased question sentence on the system side, making it possible to easily create a question pattern.
これにより、質問パターンの作成に慣れていない初心者の管理者であっても容易に質問パターンを作成することが可能となり、また、慣れている者にとっても、適切な質問パターンを登録する助けとすることができる。 This allows even novice administrators who are unfamiliar with creating question patterns to easily create them, and also helps experienced administrators register appropriate question patterns.
さらに、翻訳モデルから出力されるパラメータに対して、閾値を制御して、閾値を超えるもののみを質問文の候補とすることにより、精度の高い言い換え表現でありながら、複数の言い換え表現を提示することを可能とする。 Furthermore, by controlling a threshold for the parameters output from the translation model and selecting only those exceeding the threshold as question candidates, it is possible to present multiple paraphrases while still providing highly accurate paraphrases.
加えて、変換された質問文に対してマスキングを行うことで多くのデータを学習データとして活用することが可能となるとともに、選択された質問文を質問パターンとして登録するユーザインタフェースを提供することで簡単に質問パターンを登録することが可能となる。 In addition, by masking the converted questions, it is possible to use a large amount of data as training data, and by providing a user interface for registering selected questions as question patterns, it is possible to easily register question patterns.
<プログラム>
図8は、コンピュータ801の構成を示す概略ブロック図である。コンピュータ801は、CPU802、主記憶装置803、補助記憶装置804、インタフェース805を備える。
<Program>
8 is a schematic block diagram showing the configuration of a computer 801. The computer 801 includes a CPU 802, a main storage device 803, an auxiliary storage device 804, and an interface 805.
ここで、質問回答表示サーバ100を構成する各機能を実現するためのプログラムの詳細について説明する。 Here, we will explain in detail the programs that realize each function that makes up the question and answer display server 100.
質問回答表示サーバ100は、コンピュータ801に実装される。そして、評価装置1の各構成要素の動作は、プログラムの形式で補助記憶装置804に記憶されている。CPU802は、プログラムを補助記憶装置804から読み出して主記憶装置803に展開し、当該プログラムに従って上記処理を実行する。また、CPU802は、プログラムに従って、上述した記憶部に対応する記憶領域を主記憶装置803に確保する。 The question and answer display server 100 is implemented in a computer 801. The operation of each component of the evaluation device 1 is stored in the form of a program in the auxiliary storage device 804. The CPU 802 reads the program from the auxiliary storage device 804, loads it into the main storage device 803, and executes the above-mentioned processing in accordance with the program. The CPU 802 also allocates storage areas in the main storage device 803 corresponding to the above-mentioned storage units in accordance with the program.
当該プログラムは、具体的には、コンピュータ801において、回答パターンとそれに対応する複数の質問パターンを含む質問回答データベースを記憶する記憶ステップと、ユーザ端末に対話形式のインタフェースを提供し、ユーザ端末により入力された質問文を取得する質問文取得ステップと、取得した質問文と記憶ステップにて記憶した質問パターンとの類似度に基づいて、対応する回答パターンをユーザ端末に表示させる回答パターン表示ステップと、質問回答データベースに基づき、管理者端末から入力された質問文を入力された質問文と同じ回答パターンに対応する一又は複数の別の表現の質問文に変換する質問文作成ステップとをコンピュータに実行させるためのプログラムである。 Specifically, this program causes the computer 801 to execute the following steps: a storage step for storing a question and answer database containing answer patterns and multiple corresponding question patterns; a question acquisition step for providing an interactive interface to the user terminal and acquiring a question entered from the user terminal; an answer pattern display step for displaying a corresponding answer pattern on the user terminal based on the similarity between the acquired question and the question pattern stored in the storage step; and a question creation step for converting a question entered from the administrator terminal into one or more question sentences expressed differently that correspond to the same answer pattern as the entered question, based on the question and answer database.
なお、補助記憶装置804は、一時的でない有形の媒体の一例である。一時的でない有形の媒体の他の例としては、インタフェース805を介して接続される磁気ディスク、光磁気ディスク、CD-ROM(Compact Disc Read-Only Memory)、DVD-ROM(Digital Versatile Disc Read-Only Memory)、半導体メモリ等が挙げられる。また、このプログラムがネットワークを介してコンピュータ801に配信される場合、配信を受けたコンピュータ801が当該プログラムを主記憶装置803に展開し、上記処理を実行してもよい。 Note that auxiliary storage device 804 is an example of a non-transitory tangible medium. Other examples of non-transitory tangible media include magnetic disks, optical magnetic disks, CD-ROMs (Compact Disc Read-Only Memory), DVD-ROMs (Digital Versatile Disc Read-Only Memory), and semiconductor memories connected via interface 805. Furthermore, if this program is distributed to computer 801 via a network, computer 801 that receives the program may load the program into main storage device 803 and execute the above-described processing.
また、当該プログラムは、前述した機能の一部を実現するためのものであってもよい。さらに、当該プログラムは、前述した機能を補助記憶装置804に既に記憶されている他のプログラムとの組み合わせで実現するもの、いわゆる差分ファイル(差分プログラム)であってもよい。 The program may also be one that realizes some of the functions described above. Furthermore, the program may be a so-called differential file (differential program) that realizes the functions described above in combination with other programs already stored in the auxiliary storage device 804.
以上、本開示の実施形態について説明したが、設計上の都合やその他の要因によって必要となる様々な修正や組み合わせは、請求項に記載されている発明や発明の実施形態に記載されている具体例に対応する発明の範囲に含まれるものとする。 The above describes the embodiments of the present disclosure, but various modifications and combinations that may be necessary due to design considerations or other factors are intended to fall within the scope of the invention described in the claims and the inventions corresponding to the specific examples described in the embodiments of the invention.
1…質問回答表示システム、100…質問回答表示サーバ、101…記憶部、102…質問文取得部、103…回答パターン表示部、104…マスキング部、105…質問文作成部、106…質問文選択部、111…ユーザ又は管理者に提示するインタフェース、200-1~200-N…ユーザ端末、201-1~201-M…管理者端末、801…コンピュータ、802…CPU、803…主記憶装置、804…補助記憶装置、805…インタフェース、NW…ネットワーク 1...Question and answer display system, 100...Question and answer display server, 101...Memory unit, 102...Question acquisition unit, 103...Answer pattern display unit, 104...Masking unit, 105...Question creation unit, 106...Question selection unit, 111...Interface presented to user or administrator, 200-1 to 200-N...User terminal, 201-1 to 201-M...Administrator terminal, 801...Computer, 802...CPU, 803...Main memory, 804...Auxiliary memory, 805...Interface, NW...Network
Claims (6)
回答パターンとそれに対応する複数の質問パターンを含む質問回答データベースを記憶する記憶部と、
ユーザ端末により入力された質問文を取得する質問文取得部と、
前記取得した質問文と前記記憶部に記憶している前記質問パターンとの類似度に基づいて、対応する回答パターンをユーザ端末に表示させる回答パターン表示部と、
当該学習モデルに前記質問パターンを入力することで、機械翻訳の技術による学習モデルを生成し、管理者端末から入力された質問文を該入力された質問文と同じ回答パターンに対応する一又は複数の別の表現に変換された質問文を作成する質問文作成部と、
前記質問文作成部により変換された一又は複数の前記別の表現の質問文を候補として表示し、管理者が選択した前記別の表現の質問文のうち一又は複数を取得して質問回答データベースに記憶する質問文選択部と、を備え、
前記学習モデルは、複数の前記質問パターンが存在し、言い換え表現が前記回答パターンを1とし、この回答パターンに対応する質問パターンがNの関係にある学習データを用いて学習され、前記管理者端末から入力された前記質問文と同じ前記回答パターンに対応する一又は複数の前記別の表現に変換する学習モデルである、質問回答表示サーバ。 A server that answers questions based on pre-registered answer patterns and corresponding question patterns,
a storage unit that stores a question and answer database including answer patterns and a plurality of question patterns corresponding to the answer patterns;
a question acquisition unit that acquires a question input by a user terminal;
an answer pattern display unit that displays a corresponding answer pattern on a user terminal based on the similarity between the acquired question sentence and the question pattern stored in the storage unit;
a question creation unit that generates a learning model using machine translation technology by inputting the question pattern into the learning model , and creates a question that converts a question input from an administrator terminal into one or more different expressions that correspond to the same answer pattern as the input question ;
a question selection unit that displays one or more of the question sentences in the alternative phrases converted by the question creation unit as candidates, and acquires one or more of the question sentences in the alternative phrases selected by an administrator and stores them in a question and answer database ;
The learning model is a question and answer display server that is trained using learning data in which there are multiple question patterns, and paraphrases are expressed such that the answer pattern is 1 and there are N question patterns corresponding to this answer pattern , and converts the question text input from the administrator terminal into one or more other expressions corresponding to the same answer pattern.
回答パターンとそれに対応する複数の質問パターンを含む質問回答データベースを記憶する記憶ステップと、
ユーザ端末により入力された質問文を取得する質問文取得ステップと、
前記取得した質問文と前記記憶ステップにて記憶した前記質問パターンとの類似度に基づいて、対応する回答パターンをユーザ端末に表示させる回答パターン表示ステップと、
当該学習モデルに前記質問パターンを入力することで、前記質問回答データベースに基づき、機械翻訳の技術による学習モデルを生成し、管理者端末から入力された質問文を該入力された質問文と同じ回答パターンに対応する一又は複数の別の表現に変換された質問文を作成する質問文作成ステップと、
前記質問文作成ステップにより変換された一又は複数の前記別の表現の質問文を候補として表示し、管理者が選択した前記別の表現の質問文のうち一又は複数を取得して質問回答データベースに記憶する質問文選択ステップと、をコンピュータに実行させ、
前記学習モデルは、複数の前記質問パターンが存在し、言い換え表現が前記回答パターンを1とし、この回答パターンに対応する質問パターンがNの関係にある学習データを用いて学習され、前記管理者端末から入力された前記質問文と同じ前記回答パターンに対応する一又は複数の前記別の表現に変換する学習モデルである、質問回答表示方法。 A method for answering questions based on pre-registered answer patterns and corresponding question patterns,
a storage step of storing a question and answer database including answer patterns and a plurality of question patterns corresponding to the answer patterns;
a question acquisition step of acquiring a question inputted by a user terminal;
an answer pattern display step of displaying a corresponding answer pattern on a user terminal based on the similarity between the acquired question sentence and the question pattern stored in the storage step;
a question generation step of generating a learning model using machine translation technology based on the question and answer database by inputting the question pattern into the learning model , and generating a question sentence in which the question sentence input from the administrator terminal is converted into one or more different expressions corresponding to the same answer pattern as the input question sentence ;
a question selection step of displaying one or more of the question sentences in the alternative phrases converted by the question creation step as candidates, and acquiring one or more of the question sentences in the alternative phrases selected by an administrator and storing them in a question and answer database ;
A question and answer display method in which the learning model is trained using learning data in which there are multiple question patterns, and paraphrases are expressed such that the answer pattern is 1 and there are N question patterns corresponding to this answer pattern , and the learning model converts the question text input from the administrator terminal into one or more other expressions corresponding to the same answer pattern.
回答パターンとそれに対応する複数の質問パターンを含む質問回答データベースを記憶する記憶ステップと、
ユーザ端末により入力された質問文を取得する質問文取得ステップと、
前記取得した質問文と前記記憶ステップにて記憶した前記質問パターンとの類似度に基づいて、対応する回答パターンをユーザ端末に表示させる回答パターン表示ステップと、
当該学習モデルに前記質問パターンを入力することで、前記質問回答データベースに基づき、機械翻訳の技術による学習モデルを生成し、管理者端末から入力された質問文を該入力された質問文と同じ回答パターンに対応する一又は複数の別の表現に変換された質問文を作成する質問文作成ステップと、
前記質問文作成ステップにより変換された一又は複数の前記別の表現の質問文を候補として表示し、管理者が選択した前記別の表現の質問文のうち一又は複数を取得して質問回答データベースに記憶する質問文選択ステップと、をコンピュータに実行させ、
前記学習モデルは、複数の前記質問パターンが存在し、言い換え表現が前記回答パターンを1とし、この回答パターンに対応する質問パターンがNの関係にある学習データを用いて学習され、前記管理者端末から入力された前記質問文と同じ前記回答パターンに対応する一又は複数の前記別の表現に変換する学習モデルである質問回答表示プログラム。 A program that answers questions based on pre-registered answer patterns and corresponding question patterns,
a storage step of storing a question and answer database including answer patterns and a plurality of question patterns corresponding to the answer patterns;
a question acquisition step of acquiring a question inputted by a user terminal;
an answer pattern display step of displaying a corresponding answer pattern on a user terminal based on the similarity between the acquired question sentence and the question pattern stored in the storage step;
a question generation step of generating a learning model using machine translation technology based on the question and answer database by inputting the question pattern into the learning model , and generating a question sentence in which the question sentence input from the administrator terminal is converted into one or more different expressions corresponding to the same answer pattern as the input question sentence ;
a question selection step of displaying one or more of the question sentences in the alternative phrases converted by the question creation step as candidates, and acquiring one or more of the question sentences in the alternative phrases selected by an administrator and storing them in a question and answer database ;
The learning model is a question and answer display program that is a learning model that learns using learning data in which there are multiple question patterns, and paraphrases are expressed such that the answer pattern is 1 and there are N question patterns corresponding to this answer pattern , and converts the question text input from the administrator terminal into one or more other expressions that correspond to the same answer pattern.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2019239356A JP7741529B2 (en) | 2019-12-27 | 2019-12-27 | Question and answer display server, question and answer display method, and question and answer display program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2019239356A JP7741529B2 (en) | 2019-12-27 | 2019-12-27 | Question and answer display server, question and answer display method, and question and answer display program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2021108033A JP2021108033A (en) | 2021-07-29 |
| JP7741529B2 true JP7741529B2 (en) | 2025-09-18 |
Family
ID=76967942
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2019239356A Active JP7741529B2 (en) | 2019-12-27 | 2019-12-27 | Question and answer display server, question and answer display method, and question and answer display program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7741529B2 (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP7137028B1 (en) | 2022-02-25 | 2022-09-13 | 株式会社Jsol | Question text generation device, question text generation method, question text generation program |
| WO2024171395A1 (en) * | 2023-02-16 | 2024-08-22 | 日本電信電話株式会社 | Generation device, generation method, and generation program |
| JPWO2025013278A1 (en) * | 2023-07-13 | 2025-01-16 | ||
| JP2025044197A (en) * | 2023-09-19 | 2025-04-01 | ソフトバンクグループ株式会社 | system |
| JP7648261B1 (en) * | 2024-12-02 | 2025-03-18 | AI-DataScience株式会社 | Know-how research support device and application program |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101563682A (en) * | 2006-12-22 | 2009-10-21 | 日本电气株式会社 | Sentence rephrasing method, program, and system |
| WO2019167281A1 (en) * | 2018-03-02 | 2019-09-06 | 富士通株式会社 | Reply processing program, reply processing method, reply processing device, and reply processing system |
| JP7087938B2 (en) * | 2018-06-07 | 2022-06-21 | 日本電信電話株式会社 | Question generator, question generation method and program |
| JP6442807B1 (en) * | 2018-06-15 | 2018-12-26 | カラクリ株式会社 | Dialog server, dialog method and dialog program |
| JP6591024B1 (en) * | 2018-10-16 | 2019-10-16 | 損害保険ジャパン日本興亜株式会社 | FAQ creation support method and FAQ creation support system |
-
2019
- 2019-12-27 JP JP2019239356A patent/JP7741529B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2021108033A (en) | 2021-07-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7741529B2 (en) | Question and answer display server, question and answer display method, and question and answer display program | |
| CN112346567B (en) | Virtual interaction model generation method and device based on AI (Artificial Intelligence) and computer equipment | |
| CN113268609A (en) | Dialog content recommendation method, device, equipment and medium based on knowledge graph | |
| CN111177307A (en) | Test scheme and system based on semantic understanding similarity threshold configuration | |
| CN117370190A (en) | Test case generation method and device, electronic equipment and storage medium | |
| CN110929532B (en) | Data processing method, device, equipment and storage medium | |
| CN117216229A (en) | Method and device for generating customer service answers | |
| CN111444729A (en) | Information processing method, device, equipment and readable storage medium | |
| CN112395887A (en) | Dialogue response method, dialogue response device, computer equipment and storage medium | |
| CN113051388A (en) | Intelligent question and answer method and device, electronic equipment and storage medium | |
| Crook et al. | Task completion platform: A self-serve multi-domain goal oriented dialogue platform | |
| JP7395976B2 (en) | Information presentation device, information presentation method | |
| JPWO2019150583A1 (en) | Question group extraction method, question group extraction device and question group extraction program | |
| CN117744632A (en) | Method, device, equipment and medium for constructing vulnerability information keyword extraction model | |
| CN117422068A (en) | Information processing methods, devices, electronic equipment and storage media | |
| US20230140480A1 (en) | Utterance generation apparatus, utterance generation method, and program | |
| CN120277199B (en) | Children's education knowledge boundary management method, system and equipment based on large model | |
| JP7782574B2 (en) | Information processing device, information processing method, and information processing program | |
| JP2021108117A (en) | Question-answer display server, question-answer display method, and question-answer display program | |
| CN117874210A (en) | Autonomous interactive question-answering method, system, equipment and medium | |
| Patil | Healthcare chatbot using artificial intelligence | |
| JP2020140674A (en) | Answer selection device and program | |
| US20250238445A1 (en) | Information processing apparatus, information processing method, and non-transitory computer readable storage medium | |
| CN119691093B (en) | Multi-task vector retrieval method and device for intelligent dialogue | |
| US20250238446A1 (en) | Information processing apparatus, information processing method, and non-transitory 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: 20220912 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20230630 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20230705 |
|
| A601 | Written request for extension of time |
Free format text: JAPANESE INTERMEDIATE CODE: A601 Effective date: 20230824 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20231025 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20231129 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20240111 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20240426 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20240725 |
|
| A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20240807 |
|
| A912 | Re-examination (zenchi) completed and case transferred to appeal board |
Free format text: JAPANESE INTERMEDIATE CODE: A912 Effective date: 20241129 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20250620 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20250829 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7741529 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |