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
JP3845727B2 - Question answering system using statistical tests - Google Patents
[go: Go Back, main page]

JP3845727B2 - Question answering system using statistical tests - Google Patents

Question answering system using statistical tests Download PDF

Info

Publication number
JP3845727B2
JP3845727B2 JP2002282795A JP2002282795A JP3845727B2 JP 3845727 B2 JP3845727 B2 JP 3845727B2 JP 2002282795 A JP2002282795 A JP 2002282795A JP 2002282795 A JP2002282795 A JP 2002282795A JP 3845727 B2 JP3845727 B2 JP 3845727B2
Authority
JP
Japan
Prior art keywords
expression
unit
question sentence
probability
quantity expression
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.)
Expired - Lifetime
Application number
JP2002282795A
Other languages
Japanese (ja)
Other versions
JP2004118647A (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.)
National Institute of Information and Communications Technology
Original Assignee
National Institute of Information and Communications Technology
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 National Institute of Information and Communications Technology filed Critical National Institute of Information and Communications Technology
Priority to JP2002282795A priority Critical patent/JP3845727B2/en
Publication of JP2004118647A publication Critical patent/JP2004118647A/en
Application granted granted Critical
Publication of JP3845727B2 publication Critical patent/JP3845727B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

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

Description

【0001】
【発明の属する技術分野】
本発明は,コンピュータによる自然言語の情報処理システムに係わり,特に統計的検定を利用して不要な共起語を除去する質問応答システムに関するものである。
【0002】
質問応答システムとは,例えば「日本の首都はどこですか」,「2002年のワールドカップの優勝国はどこですか」といった質問を入力すると,大量の電子化テキストから「東京」,「ブラジル」といった解を的確に出力するシステムのことである。
【0003】
質問応答システムは,検索した記事から解を探す必要がある情報検索などとは異なり,解自体を的確に出力するため,ユーザーがより早く解の情報を得ることができる。また,質問応答システムは,解自体を自動で出力するため,他の自動の知識処理システムの内部での知識処理システムとして利用することも可能である。本発明は,このように有用な質問応答システムのうち,統計的検定を利用して不要な共起語を除去する質問応答システムに関する。
【0004】
【従来の技術】
質問応答システムの実行例として,「20世紀最初にトラはどのくらいいましたか」という質問文を与えることを考える。当該質問文の解は「10万頭」であるが,これを求めるために一般の質問応答システムでは「どのくらい」という表現から数量表現が解であろうと推測する。また,さらに「トラはどのくらい」また「どのくらいいました」といった表現から,「どのくらい」に相当する数量表現としては,「...頭」といった「頭」を単位表現とした数量表現であろうと推測する。
【0005】
この情報に基づいて,例えば,キーワード抽出を行ない,「20世紀最初」「トラ」をキーワードとして記事や文書を検索し,その検索によって得られた記事や文書から,数字表現+「頭」のパターンを取り出すことで,解の「10万頭」を取り出すことができる。
【0006】
このような単位表現を含んだ解を取り出す質問応答システムは従来から存在した。(非特許文献1参照。)。
【0007】
また,与えられた文書集合を特徴付ける単語を選出する方法についても,従来から存在している(非特許文献2参照。)。
【0008】
【非特許文献1】
佐々木裕,磯崎秀樹,平博順,平尾努,賀沢秀人,鈴木潤,国領弘治,前田英作,SAIQA:大量文書に基づく質問応答システム,情報処理学会自然言語処理研究会2001−NL−145,2001
【非特許文献2】
久光徹,丹羽芳樹,組み合わせ的確率モデルに基づく特徴単語選択方法,情報処理学会自然言語処理研究会,140−12,2000
【0009】
【発明が解決しようとする課題】
しかし,上記非特許文献1に記載された従来技術は,単位表現の抽出に人手で記述した規則,もしくはテーブルを利用しているため,質問文によっては解の抽出に有用な単位表現かを的確に判断することができず,低い正解率しか得られない場合が生じ得る。
【0010】
また,非特許文献2に記載された従来技術は,文章のキーワードとしての特徴単語の選択を目的としており,言語の機能的な表現である単位表現の抽出を意図したものではなかった。
【0011】
本発明は,上記従来技術の問題点を解決し,質問文に対する解が数量表現の場合に,当該数量表現に付される単位表現として適切な単位表現か否かを的確に判断することが可能な質問応答方法および質問応答システムを提供することを目的とする。
【0012】
【課題を解決するための手段】
上記課題を解決するため,本発明では,質問文中の主たる名詞と単位表現との新聞コーパス等の電子化テキスト情報における共起頻度情報に基づいて,統計的検定を用いることにより解の抽出に有用な単位表現かを判断し,当該有用な単位表現のみを解の抽出に用い,不要と判断した単位表現を解の抽出に用いないようにする。主たる名詞とは,質問文中の質問の主たる対象をいい,例えば上記「20世紀最初にトラはどのくらいいましたか」という質問文においては「トラ」が主たる名詞である。
【0013】
ここで,例えば「20世紀最初にトラはどのくらいいましたか」という質問文の「どのくらい」に相当する数量表現は,「...頭」といった「頭」を単位表現とした数量表現であろうと推測する場合,”「トラは」+数量表現”といったパターンを大量に取り出し,その数量表現に付されている単位表現を抽出することで単位表現「頭」を取り出したり,”数量表現+「いました」”といったパターンから同様に単位表現「頭」を取り出したりすることができる。
【0014】
しかし,このような方法だけでは,例えば,「トラは1992年に..」といった文からは「年」という単位表現が取り出されることになる。「年」も単位表現として解の抽出に使えることとしてしまうと,「1992年」といった表現を誤って解と出力する可能性がある。
【0015】
また,コーパス等における共起頻度情報を用いる方法も考えられる。「トラ」と共起して出現する単位表現の回数を数え,この回数の最も大きな単位表現のみを用いるのである。このようにすると,おそらく「頭」がもっとも出現頻度が高いので,「頭」を単位表現とすることになり,「年」を単位表現として抽出してしまうという問題は解消される。
【0016】
しかし,「20世紀最初にトラはどのくらいいましたか」という質問文の「どのくらい」に相当する数量表現での単位表現としては,「匹」という表現も考えられる。解の表現が「10万匹」となっていた場合,最大の頻度の「頭」だけを使うと,「10万匹」を解として取り出せなくなってしまう。
【0017】
そこで,本発明では,上記主たる名詞と単位表現とのコーパス等における共起頻度情報に基づき,統計的検定を用いて,前記数量表現に付されている各単位表現のうち前記主たる名詞と共起して出現する可能性が低い単位表現を不要な共起語と判断して除去するとともに,有用と判断した単位表現のみを解の抽出に用いるようにする。
【0018】
具体的には,
『当該単位表現と共起して出現する「トラは」の出現確率=コーパスにおける「トラは」の一般的出現確率』
という仮説を立てて,コーパス等における「トラは」と単位表現とが共起して出現する回数や「トラは」と単位表現のそれぞれの出現頻度に基づいて上記仮説の検定を行うことを通じて,「トラは」と「頭」,「匹」等の各単位表現が偶然共起したものか,必然的に共起しているものかの判断を行なう。検定結果に基づいて,「トラは」とある単位表現が偶然共起したものであると判断される場合,それは偶然共起しただけであり,不要な単位表現と判断する。また,「トラは」とある単位表現が必然的に共起したものであると判断される場合,それは必然的に共起したものであるから,関係が深い表現であろうと予想されるので,有用な単位表現と判断する。この方法により,個々の単位表現に対して,解の抽出に用いる単位表現として有用か不要かの判断を下すことができる。そして,有用と判断された単位表現のみを用いて質問応答システムの解の判断を行なうと,先のすべての問題が解消されることになる。
【0019】
即ち,本発明は,自然言語による質問文を入力し,データベースに記憶された電子化テキスト情報中の文との照合によって解を生成して出力する質問応答方法であって,前記質問文を入力する質問文入力過程と,入力された質問文の解が数量表現である場合に,統計的検定を用いて,前記電子化テキスト情報において出現する前記質問文の主たる名詞と数量表現との組み合わせパターンから抽出される単位表現のうち前記質問文中の主たる名詞と共起して出現する可能性が低い単位表現を不要な共起語と判断し,前記質問文中の主たる名詞と共起して出現する可能性が高い単位表現を有用な共起語と判断し,前記有用な共起語と判断した単位表現を用いて前記質問文の解としての数量表現を推測する表現推測過程と,前記推測された数量表現を用いて前記質問文の解を抽出する解答抽出過程とを有することを特徴とする。
【0020】
また,本発明において,前記表現推測過程は,前記質問文情報に基づいて,質問文の解が数量表現であるかを判断する数量表現判断過程と,前記質問文情報から前記主たる名詞を認定する主名詞認定過程と,前記数量表現判断過程において質問文の解が数量表現であると判断した場合に,前記電子化テキスト情報から前記認定された主たる名詞と数量表現とが係り受け関係である組み合わせパターンを抽出し,抽出された前記組み合わせパターンから前記数量表現に付されている1又は複数の単位表現を抽出する単位表現抽出過程と,前記電子化テキスト情報における前記主たる名詞と前記抽出された各単位表現の出現頻度を算出し,算出した出現頻度情報に基づいて前記主たる名詞の一般的出現確率を算出する出現確率算出過程と,前記算出した主たる名詞の一般的出現確率に基づいて,前記電子化テキスト情報において前記各単位表現が出現するパターンのうち前記主たる名詞が前記各単位表現と共起して出現する回数の確率分布を算出する確率分布算出過程と,前記算出した確率分布における前記主たる名詞が前記各単位表現と共起して出現する回数が前記主たる名詞と数量表現とが係り受け関係である組み合わせパターンにおける前記数量表現に付されている各単位表現の出現回数以上である確率である検定確率を算出し,前記単位表現抽出過程において抽出した1又は複数の単位表現のうち,算出した前記検定確率が予め設定した閾値以上の単位表現を前記主たる名詞と共起して出現する可能性が低い不要な共起語と判断して除去し,前記検定確率が閾値未満の単位表現を有用な共起語と判断する不要単位表現除去過程と,前記有用と判断した単位表現を用いて前記質問文の解としての数量表現を推測する数量表現推測過程とを有することを特徴とする。
【0021】
また,本発明において,前記表現推測過程は,前記質問文情報に基づいて,質問文の解が数量表現であるかを判断する数量表現判断過程と,前記質問文情報から前記主たる名詞を認定する主名詞認定過程と,前記数量表現判断過程において質問文の解が数量表現であると判断した場合に,前記電子化テキスト情報から前記認定された主たる名詞と数量表現とが係り受け関係である組み合わせパターンを抽出し,抽出された前記組み合わせパターンから前記数量表現に付されている1又は複数の単位表現を抽出する単位表現抽出過程と,前記電子化テキスト情報における前記主たる名詞と前記抽出された各単位表現の出現頻度を算出し,算出した出現頻度情報に基づいて前記各単位表現の一般的出現確率を算出する出現確率算出過程と,前記各単位表現の一般的出現確率に基づいて,前記電子化テキスト情報において前記主たる名詞が出現するパターンのうち前記各単位表現が前記主たる名詞と共起して出現する回数の確率分布を算出する確率分布算出過程と,前記算出した確率分布における前記各単位表現が前記主たる名詞と共起して出現する回数が前記主たる名詞と数量表現とが係り受け関係である組み合わせパターンにおいて前記数量表現に付されている前記各単位表現と共起して出現する前記数量表現の出現回数以上である確率である検定確率を算出し,前記単位表現抽出過程において抽出した1又は複数の単位表現のうち,算出した前記検定確率が予め設定した閾値以上の単位表現を前記主たる名詞と共起して出現する可能性が低い不要な共起語と判断して除去し,前記検定確率が閾値未満の単位表現を有用な共起語と判断する不要単位表現除去過程と,前記有用と判断した単位表現を用いて前記質問文の解としての数量表現を推測する数量表現推測過程とを有することを特徴とする。
【0022】
また,本発明において,前記表現推測過程は,前記質問文情報に基づいて,質問文の解が数量表現であるかを判断する数量表現判断過程と,前記質問文情報から前記主たる名詞を認定する主名詞認定過程と,前記数量表現判断過程において質問文の解が数量表現であると判断した場合に,前記電子化テキスト情報から前記認定された主たる名詞と数量表現とが係り受け関係である組み合わせパターンを抽出し,抽出された前記組み合わせパターンから前記数量表現に付されている1又は複数の単位表現を抽出する単位表現抽出過程と,前記電子化テキスト情報における前記主たる名詞と前記抽出された各単位表現の出現頻度を算出し,算出した出現頻度情報に基づいて前記主たる名詞の一般的出現確率を算出する出現確率算出過程と,前記算出した主たる名詞の一般的出現確率に基づいて,前記電子化テキスト情報において前記各単位表現が出現するパターンのうち前記主たる名詞が前記各単位表現と共起して出現する回数の確率分布を算出する確率分布算出過程と,前記算出した確率分布における前記主たる名詞が前記各単位表現と共起して出現する回数が前記主たる名詞と数量表現とが係り受け関係である組み合わせパターンにおける前記数量表現に付されている各単位表現の出現回数以下である確率である検定確率を算出し,前記単位表現抽出過程において抽出した1又は複数の単位表現のうち,算出した前記検定確率が予め設定した閾値未満の単位表現を前記主たる名詞と共起して出現する可能性が低い不要な共起語と判断して除去し,前記検定確率が閾値以上の単位表現を有用な共起語と判断する不要単位表現除去過程と,前記有用と判断した単位表現を用いて前記質問文の解としての数量表現を推測する数量表現推測過程とを有することを特徴とする。
【0023】
また,本発明において,前記表現推測過程は,前記質問文情報に基づいて,質問文の解が数量表現であるかを判断する数量表現判断過程と,前記質問文情報から前記主たる名詞を認定する主名詞認定過程と,前記数量表現判断過程において質問文の解が数量表現であると判断した場合に,前記電子化テキスト情報から前記認定された主たる名詞と数量表現とが係り受け関係である組み合わせパターンを抽出し,抽出された前記組み合わせパターンから前記数量表現に付されている1又は複数の単位表現を抽出する単位表現抽出過程と,前記電子化テキスト情報における前記主たる名詞と前記抽出された各単位表現の出現頻度を算出し,算出した出現頻度情報に基づいて前記各単位表現の一般的出現確率を算出する出現確率算出過程と,前記各単位表現の一般的出現確率に基づいて,前記電子化テキスト情報において前記主たる名詞が出現するパターンのうち前記各単位表現が前記主たる名詞と共起して出現する回数の確率分布を算出する確率分布算出過程と,前記算出した確率分布における前記各単位表現が前記主たる名詞と共起して出現する回数が前記主たる名詞と数量表現とが係り受け関係である組み合わせパターンにおいて前記数量表現に付されている前記各単位表現と共起して出現する前記数量表現の出現回数以下である確率である検定確率を算出し,前記単位表現抽出過程において抽出した1又は複数の単位表現のうち,算出した前記検定確率が予め設定した閾値未満の単位表現を前記主たる名詞と共起して出現する可能性が低い不要な共起語と判断して除去し,前記検定確率が閾値以上の単位表現を有用な共起語と判断する不要単位表現除去過程と,前記有用と判断した単位表現を用いて前記質問文の解としての数量表現を推測する数量表現推測過程とを有することを特徴とする。
【0024】
また,本発明において,前記表現推測過程は,前記質問文情報に基づいて,質問文の解が数量表現であるかを判断する数量表現判断過程と,前記質問文情報から前記主たる名詞を認定する主名詞認定過程と,前記数量表現判断過程において質問文の解が数量表現であると判断した場合に,前記電子化テキスト情報から前記認定された主たる名詞と数量表現とが係り受け関係である組み合わせパターンを抽出し,抽出された前記組み合わせパターンから前記数量表現に付されている1又は複数の単位表現を抽出する単位表現抽出過程と,前記電子化テキスト情報における前記主たる名詞と前記抽出された各単位表現の出現頻度を算出する出現頻度抽出過程と,超幾何分布を用いて,超幾何分布における前記主たる名詞が前記各単位表現と共起して出現する回数が前記主たる名詞と数量表現とが係り受け関係である組み合わせパターンにおける前記数量表現に付されている各単位表現の出現回数以上である確率である検定確率を算出し,前記単位表現抽出過程において抽出した1又は複数の単位表現のうち,算出した前記検定確率が予め設定した閾値以上の単位表現を前記主たる名詞と共起して出現する可能性が低い不要な共起語と判断して除去し,前記検定確率が閾値未満の単位表現を有用な共起語と判断する不要単位表現除去過程と,前記有用と判断した単位表現を用いて前記質問文の解としての数量表現を推測する数量表現推測過程とを有することを特徴とする。
【0025】
また,本発明において,前記表現推測過程は,前記質問文情報に基づいて,質問文の解が数量表現であるかを判断する数量表現判断過程と,前記質問文情報から前記主たる名詞を認定する主名詞認定過程と,前記数量表現判断過程において質問文の解が数量表現であると判断した場合に,前記電子化テキスト情報から前記認定された主たる名詞と数量表現とが係り受け関係である組み合わせパターンを抽出し,抽出された前記組み合わせパターンから前記数量表現に付されている1又は複数の単位表現を抽出する単位表現抽出過程と,前記電子化テキスト情報における前記主たる名詞と前記抽出された各単位表現の出現頻度を算出する出現頻度抽出過程と,超幾何分布を用いて,超幾何分布における前記主たる名詞が前記各単位表現と共起して出現する回数が前記主たる名詞と数量表現とが係り受け関係である組み合わせパターンにおける前記数量表現に付されている各単位表現の出現回数以下である確率である検定確率を算出し,前記単位表現抽出過程において抽出した1又は複数の単位表現のうち,算出した前記検定確率が予め設定した閾値未満の単位表現を前記主たる名詞と共起して出現する可能性が低い不要な共起語と判断して除去し,前記検定確率が閾値以上の単位表現を有用な共起語と判断する不要単位表現除去過程と,前記有用と判断した単位表現を用いて前記質問文の解としての数量表現を推測する数量表現推測過程とを有することを特徴とする。
【0026】
また,本発明は,自然言語による質問文を入力し,データベースに記憶された電子化テキスト情報中の文との照合によって解を生成して出力する質問応答システムであって,前記質問文を入力する質問文入力手段と,入力された質問文の解が数量表現である場合に,統計的検定を用いて,前記電子化テキスト情報において出現する,前記質問文に含まれる,形態素解析と文パターンを用いた所定の規則に基づいて認定される特定の名詞と数量表現との組み合わせパターンから単位表現を抽出し,抽出された単位表現が前記質問文中の特定の名詞と共起して出現する可能性を示す確率値を算出し,算出した前記確率値が閾値以上かによって,前記質問文の解としての数量表現の決定に用いる単位表現を決定し,決定した単位表現を含む数量表現を決定する手段と,前記決定された数量表現を用いて前記質問文の解を抽出する解答抽出手段とを備えることを特徴とする。
【0027】
また,本発明は,自然言語による質問文を入力し,データベースに記憶された電子化テキスト情報中の文との照合によって解を生成して出力する質問応答システムであって,前記質問文を入力する質問文入力手段と,前記質問文に数量表現を問い合わせる単語が含まれるかどうかにより,前記質問文の解が数量表現であるかを判断する数量表現判断手段と,形態素解析と文パターンを用いた所定の規則に基づいて,前記質問文に含まれる特定の名詞を認定する手段と,前記数量表現判断手段が質問文の解が数量表現であると判断した場合に,前記電子化テキスト情報から前記認定された特定の名詞と数量表現とが係り受け関係である組み合わせパターンを抽出し,抽出された前記組み合わせパターンから前記数量表現に付されている1又は複数の単位表現を抽出する単位表現抽出手段と,前記電子化テキスト情報における前記特定の名詞と前記抽出された各単位表現の出現回数を算出し,算出した出現回数の情報に基づいて前記特定の名詞の一般的出現確率を算出する出現確率算出手段と,前記算出した特定の名詞の一般的出現確率に基づいて,前記電子化テキスト情報において前記各単位表現が出現するパターンのうち前記特定の名詞が前記各単位表現と共起して出現する回数の確率分布を算出する確率分布算出手段と,前記算出した確率分布における前記特定の名詞が前記各単位表現と共起して出現する回数が前記特定の名詞と数量表現とが係り受け関係である組み合わせパターンにおける前記数量表現に付されている各単位表現の出現回数以上である確率である検定確率を算出し,前記単位表現抽出手段が抽出した1又は複数の単位表現のうち,算出した前記検定確率が予め設定した閾値以上の単位表現を除去する不要単位表現除去手段と,前記検定確率が閾値未満の単位表現を含む数量表現を決定する手段と,前記質問文中からキーワードを抽出し,抽出したキーワードを用いて前記電子化テキスト情報から前記質問文の解が記述された情報を取り出す手段と,前記決定された数量表現を用いて,前記質問文の解が記述された情報から前記質問文の解を抽出する解答抽出手段とを備えることを特徴とする。
【0028】
また,本発明は,自然言語による質問文を入力し,データベースに記憶された電子化テキスト情報中の文との照合によって解を生成して出力する質問応答システムであって,前記質問文を入力する質問文入力手段と,前記質問文に数量表現を問い合わせる単語が含まれるかどうかにより,前記質問文の解が数量表現であるかを判断する数量表現判断手段と,形態素解析と文パターンを用いた所定の規則に基づいて,前記質問文に含まれる特定の名詞を認定する手段と,前記数量表現判断手段が質問文の解が数量表現であると判断した場合に,前記電子化テキスト情報から前記認定された特定の名詞と数量表現とが係り受け関係である組み合わせパターンを抽出し,抽出された前記組み合わせパターンから前記数量表現に付されている1又は複数の単位表現を抽出する単位表現抽出手段と,前記電子化テキスト情報における前記特定の名詞と前記抽出された各単位表現の出現回数を算出し,算出した出現回数の情報に基づいて前記各単位表現の一般的出現確率を算出する出現確率算出手段と,前記各単位表現の一般的出現確率に基づいて,前記電子化テキスト情報において前記特定の名詞が出現するパターンのうち前記各単位表現が前記特定の名詞と共起して出現する回数の確率分布を算出する確率分布算出手段と,前記算出した確率分布における前記各単位表現が前記特定の名詞と共起して出現する回数が前記特定の名詞と数量表現とが係り受け関係である組み合わせパターンにおいて前記数量表現に付されている前記各単位表現と共起して出現する前記数量表現の出現回数以上である確率である検定確率を算出し,前記単位表現抽出手段が抽出した1又は複数の単位表現のうち,算出した前記検定確率が予め設定した閾値以上の単位表現を除去する不要単位表現除去手段と,前記検定確率が閾値未満の単位表現を含む数量表現を決定する手段と,前記質問文中からキーワードを抽出し,抽出したキーワードを用いて前記電子化テキスト情報から前記質問文の解が記述された情報を取り出す手段と,前記決定された数量表現を用いて,前記質問文の解が記述された情報から前記質問文の解を抽出する解答抽出手段とを備えることを特徴とする。
【0029】
また,本発明は,自然言語による質問文を入力し,データベースに記憶された電子化テキスト情報中の文との照合によって解を生成して出力する質問応答システムであって,前記質問文を入力する質問文入力手段と,前記質問文に数量表現を問い合わせる単語が含まれるかどうかにより,前記質問文の解が数量表現であるかを判断する数量表現判断手段と,形態素解析と文パターンを用いた所定の規則に基づいて,前記質問文に含まれる特定の名詞を認定する手段と,前記数量表現判断手段が質問文の解が数量表現であると判断した場合に,前記電子化テキスト情報から前記認定された特定の名詞と数量表現とが係り受け関係である組み合わせパターンを抽出し,抽出された前記組み合わせパターンから前記数量表現に付されている1又は複数の単位表現を抽出する単位表現抽出手段と,前記電子化テキスト情報における前記特定の名詞と前記抽出された各単位表現の出現回数を算出し,算出した出現回数の情報に基づいて前記特定の名詞の一般的出現確率を算出する出現確率算出手段と,前記算出した特定の名詞の一般的出現確率に基づいて,前記電子化テキスト情報において前記各単位表現が出現するパターンのうち前記特定の名詞が前記各単位表現と共起して出現する回数の確率分布を算出する確率分布算出手段と,前記算出した確率分布における前記特定の名詞が前記各単位表現と共起して出現する回数が前記特定の名詞と数量表現とが係り受け関係である組み合わせパターンにおける前記数量表現に付されている各単位表現の出現回数以下である確率である検定確率を算出し,前記単位表現抽出手段が抽出した1又は複数の単位表現のうち,算出した前記検定確率が予め設定した閾値未満の単位表現を除去する不要単位表現除去手段と,前記検定確率が閾値以上の単位表現を含む数量表現を決定する手段と,前記質問文中からキーワードを抽出し,抽出したキーワードを用いて前記電子化テキスト情報から前記質問文の解が記述された情報を取り出す手段と,前記決定された数量表現を用いて,前記質問文の解が記述された情報から前記質問文の解を抽出する解答抽出手段とを備えることを特徴とする。
【0030】
また,本発明は,自然言語による質問文を入力し,データベースに記憶された電子化テキスト情報中の文との照合によって解を生成して出力する質問応答システムであって,前記質問文を入力する質問文入力手段と,前記質問文に数量表現を問い合わせる単語が含まれるかどうかにより,前記質問文の解が数量表現であるかを判断する数量表現判断手段と,形態素解析と文パターンを用いた所定の規則に基づいて,前記質問文に含まれる特定の名詞を認定する手段と,前記数量表現判断手段が質問文の解が数量表現であると判断した場合に,前記電子化テキスト情報から前記認定された特定の名詞と数量表現とが係り受け関係である組み合わせパターンを抽出し,抽出された前記組み合わせパターンから前記数量表現に付されている1又は複数の単位表現を抽出する単位表現抽出手段と,前記電子化テキスト情報における前記特定の名詞と前記抽出された各単位表現の出現回数を算出し,算出した出現回数の情報に基づいて前記各単位表現の一般的出現確率を算出する出現確率算出手段と,前記各単位表現の一般的出現確率に基づいて,前記電子化テキスト情報において前記特定の名詞が出現するパターンのうち前記各単位表現が前記特定の名詞と共起して出現する回数の確率分布を算出する確率分布算出手段と,前記算出した確率分布における前記各単位表現が前記特定の名詞と共起して出現する回数が前記特定の名詞と数量表現とが係り受け関係である組み合わせパターンにおいて前記数量表現に付されている前記各単位表現と共起して出現する前記数量表現の出現回数以下である確率である検定確率を算出し,前記単位表現抽出手段が抽出した1又は複数の単位表現のうち,算出した前記検定確率が予め設定した閾値未満の単位表現を除去する不要単位表現除去手段と,前記検定確率が閾値以上の単位表現を含む数量表現を決定する手段と,前記質問文中からキーワードを抽出し,抽出したキーワードを用いて前記電子化テキスト情報から前記質問文の解が記述された情報を取り出す手段と,前記決定された数量表現を用いて,前記質問文の解が記述された情報から前記質問文の解を抽出する解答抽出手段とを備えることを特徴とする。
【0031】
また,本発明は,自然言語による質問文を入力し,データベースに記憶された電子化テキスト情報中の文との照合によって解を生成して出力する質問応答システムであって,前記質問文を入力する質問文入力手段と,前記質問文に数量表現を問い合わせる単語が含まれるかどうかにより,前記質問文の解が数量表現であるかを判断する数量表現判断手段と,形態素解析と文パターンを用いた所定の規則に基づいて,前記質問文に含まれる特定の名詞を認定する手段と,前記数量表現判断手段が質問文の解が数量表現であると判断した場合に,前記電子化テキスト情報から前記認定された特定の名詞と数量表現とが係り受け関係である組み合わせパターンを抽出し,抽出された前記組み合わせパターンから前記数量表現に付されている1又は複数の単位表現を抽出する単位表現抽出手段と,前記電子化テキスト情報における前記特定の名詞と前記抽出された各単位表現の出現回数を算出する手段と,超幾何分布を用いて,超幾何分布における前記特定の名詞が前記各単位表現と共起して出現する回数が前記特定の名詞と数量表現とが係り受け関係である組み合わせパターンにおける前記数量表現に付されている各単位表現の出現回数以上である確率である検定確率を算出し,前記単位表現抽出手段が抽出した1又は複数の単位表現のうち,算出した前記検定確率が予め設定した閾値以上の単位表現を除去する不要単位表現除去手段と,前記検定確率が閾値未満の単位表現を含む数量表現を決定する手段と,前記質問文中からキーワードを抽出し,抽出したキーワードを用いて前記電子化テキスト情報から前記質問文の解が記述された情報を取り出す手段と,前記決定された数量表現を用いて,前記質問文の解が記述された情報から前記質問文の解を抽出する解答抽出手段とを備えることを特徴とする。
【0032】
また,本発明は,自然言語による質問文を入力し,データベースに記憶された電子化テキスト情報中の文との照合によって解を生成して出力する質問応答システムであって,前記質問文を入力する質問文入力手段と,前記質問文に数量表現を問い合わせる単語が含まれるかどうかにより,前記質問文の解が数量表現であるかを判断する数量表現判断手段と,形態素解析と文パターンを用いた所定の規則に基づいて,前記質問文に含まれる特定の名詞を認定する手段と,前記数量表現判断手段が質問文の解が数量表現であると判断した場合に,前記電子化テキスト情報から前記認定された特定の名詞と数量表現とが係り受け関係である組み合わせパターンを抽出し,抽出された前記組み合わせパターンから前記数量表現に付されている1又は複数の単位表現を抽出する単位表現抽出手段と,前記電子化テキスト情報における前記特定の名詞と前記抽出された各単位表現の出現回数を算出する手段と,超幾何分布を用いて,超幾何分布における前記特定の名詞が前記各単位表現と共起して出現する回数が前記特定の名詞と数量表現とが係り受け関係である組み合わせパターンにおける前記数量表現に付されている各単位表現の出現回数以下である確率である検定確率を算出し,前記単位表現抽出手段が抽出した1又は複数の単位表現のうち,算出した前記検定確率が予め設定した閾値未満の単位表現を除去する不要単位表現除去手段と,前記検定確率が閾値以上の単位表現を含む数量表現を決定する手段と,前記質問文中からキーワードを抽出し,抽出したキーワードを用いて前記電子化テキスト情報から前記質問文の解が記述された情報を取り出す手段と,前記決定された数量表現を用いて,前記質問文の解が記述された情報から前記質問文の解を抽出する解答抽出手段とを備えることを特徴とする。
【0033】
また,本発明は,前記統計的検定を利用した質問応答方法をコンピュータに実行させるための統計的検定を利用した質問応答プログラムである。
【0034】
また,本発明は,前記統計的検定を利用した質問応答方法をコンピュータに実行させるための統計的検定を利用した質問応答プログラムを記録した記録媒体である。
【0035】
本発明を用いることにより,質問文に対する解が数量表現の場合に,当該数量表現に付される単位表現として適切な単位表現か否かを的確に判断することが可能な方法およびシステムを提供することが可能となる。
【0036】
【発明の実施の形態】
以下に,図を用いて,本発明の実施の形態を説明する。図1は本発明の統計的検定を利用した質問応答システムの構成の一例を示す図である。1は本発明の統計的検定を利用した質問応答システム,11は不要共起語除去システム,12は質問文情報が入力される質問文入力部,13はデータベース16からキーワード抽出や情報検索を行うキーワード抽出/情報検索部,14は質問文の解を抽出する解答抽出部,15は解答を出力する解答出力部,16は新聞コーパス等の電子化テキスト情報が記憶されたデータベース,17は質問文の解となり得そうな表現を推測する表現推測部,18はデータベース16から抽出した単位表現を記憶する単位表現データベースである。
【0037】
図2は,不要共起語除去システム11の構成図の一例である。20は質問文入力部12に入力された質問文情報に基づいて,質問文の解が数量表現であるかを判断する数量表現判断手段,21は質問文情報から主たる名詞を認定する主名詞認定手段,22はデータベース16に記憶された電子化テキスト情報から主名詞認定手段21が認定した主たる名詞と数量表現とが係り受け関係である組み合わせパターンを抽出し,抽出された前記組み合わせパターンから前記数量表現に付されている1又は複数の単位表現を抽出し,単位表現データベース18に記録する単位表現抽出手段,23は前記1又は複数の単位表現が前記主たる名詞と共起して出現する可能性が高いか否かを判断する検定手段,24は質問文の解としての数量表現を推測する数量表現推測手段である。
【0038】
また,230は前記電子化テキスト情報における前記主たる名詞と前記抽出された各単位表現の出現頻度を算出し,算出した出現頻度情報に基づいて前記主たる名詞の一般的出現確率を算出する出現確率算出手段,231は前記算出した主たる名詞の一般的出現確率に基づいて,前記電子化テキスト情報において前記各単位表現が出現するパターンのうち前記主たる名詞が前記各単位表現と共起して出現する回数の確率分布を算出する確率分布算出手段,232は確率分布算出手段231が算出した確率分布における前記主たる名詞が前記各単位表現と共起して出現する回数が前記主たる名詞と数量表現とが係り受け関係である組み合わせパターンにおける前記数量表現に付されている各単位表現の出現回数以上である確率である検定確率を算出し,前記単位表現抽出手段が抽出した1又は複数の単位表現のうち,算出した前記検定確率が予め設定した閾値以上の単位表現を前記主たる名詞と共起して出現する可能性が低い不要な共起語と判断して単位表現データベース18から除去し,前記検定確率が閾値未満の単位表現を有用な単位表現と判断する不要単位表現除去手段である。
【0039】
以下に,図1,図2および図8を参照しつつ,図3および図4に基づいて本発明の第一の実施の形態を説明する。本発明の第一の実施の形態では,後述するように,各単位表現と共起する場合の主たる名詞のコーパスにおける出現確率p’が主たる名詞の一般的出現確率pと等しいという仮説を立てる。そして,一般的出現確率pに基づく主たる名詞がコーパスにおいてn回出現する各単位表現wi と共起して出現する回数が,実際にコーパスにおいて各単位表現wi と主たる名詞とが共起して出現する頻度であるxi 回以上である確率(検定確率)Pの大きさに基づき上記仮説を右片側検定することを通じてp’>pかを結論付け,p’>pと結論付けできる単位表現は有用な単位表現と判断し,p’>pと結論付けできない単位表現は不要な単位表現と判断する。
【0040】
図3は,本発明の統計的検定を利用した質問応答処理フローの一例を示す図である。まず,質問文が質問文入力部12に入力される(ステップS1)。例えば,「日本の国土面積はどのくらいですか」という質問文が質問文入力部12に入力される。次に,入力された質問文情報が質問文入力部12から不要共起語除去システム11の表現推測部17に渡される(ステップS2)。次に,不要共起語除去システム11において,表現推測部17が,統計的検定を用いて,コーパスから抽出した単位表現のうち,解となり得そうな表現の推測に有用な単位表現かまたは不要な単位表現かを判断し,不要と判断した単位表現を除去する(ステップS3)。
【0041】
次に,表現推測部17が,有用と判断された単位表現を用いて,解となり得そうな表現を推測する(ステップS4)。具体的には,表現推測部17の数量表現推測手段24が,解となり得そうな数量表現を推測する。
【0042】
そして,キーワード抽出/情報検索部13が,表現推測部17から渡された質問文からキーワードを抽出する。そして,抽出したキーワードを用いてデータベースから解が記述してありそうな記事群を取り出し,取り出した記事群を解答抽出部14に渡す(ステップS5)。
【0043】
次に,解答抽出部14において,前記取り出された記事群から,表現推測部17で推測した表現に合致する表現を抽出し,抽出した表現を解答出力部15に渡す(ステップS6)。最後に,渡された表現を解答出力部15が解答として出力する(ステップS7)。
【0044】
ここで,本発明の第一の実施の形態における不要な単位表現の除去処理フローの詳細の一例を図4に示す。図4は,図3のステップS3の詳細を示す図である。まず,数量表現判断手段20が,前記入力された質問文情報に基づいて,質問文の解が数量表現であるかを判断する(ステップS21)。例えば,質問文が「日本の国土面積はどのくらいですか」の場合のように「どのくらい」などの表現を含んでいた場合は,質問文の解が数量表現であると判断される。質問文の解が数量表現でないと判断する場合は前記ステップS5へ進む。
【0045】
質問文の解が数量表現であると判断する場合は,数量表現判断手段20は,質問文が単位表現を有していないかを判断する(ステップS22)。質問文が単位表現を有していない場合には,主名詞認定手段21は,質問文情報から質問文における主たる名詞を認定する(ステップS23)。主たる名詞の認定は,「Xはどのくらい」のパターンから,形態素解析と文パターンを用いた規則に基づいてなされる。例えば上記質問文における主たる名詞は,「面積」であると認定される。質問文が単位表現を有している場合には,処理を終了する。
【0046】
次に,検定手段23の出現確率算出手段230は,前記コーパスにおける前記主たる名詞の一般的出現確率pを算出する(ステップS24)。かかる一般的出現確率pは,コーパスにおける前記主たる名詞の出現回数をコーパスの規模で割ったものである。毎日新聞などの大規模な新聞コーパスを用いると,例えば,上記「面積」のコーパスにおける出現回数は7,933回となる。コーパスの規模が,例えば409,502,077文字であるとすると,「面積」の一般的出現確率pは,
p=7,933/409,502,077
=0.00001937230711530676
と算出される。
【0047】
次に,単位表現抽出手段22が,コーパスから前記主たる名詞と数量表現とが係り受け関係である組み合わせパターンを抽出し,抽出された前記組み合わせパターンから前記数量表現に付されている1又は複数の単位表現wi を抽出し,単位表現データベース18に記録する(ステップS25)。本実施の形態では,「面積は」+数量表現のパターンをコーパスから取り出し,数量表現に付されている単位表現wi を取り出す。各単位表現wi の取り出しは,形態素解析結果,また,単語辞書を用いて行なわれる。抽出された各単位表現wi は,単位表現データベース18に記憶される。数量表現のパターンの取り出しは形態素解析と文パターンを用いた規則に基づいてなされる。
【0048】
ここで,コーパスから「面積は」+数量表現のパターンで取り出した数量表現から以下の単位表現wi が例えば以下の頻度で抽出できる。
【0049】
平方メートル:41回,ヘクタール:27回,平方キロメートル:5回,倍:2回,分:2回,畳:1回,番:1回,平方センチメートル:1回
コロンの前が単位表現wi で,数字が頻度である。「面積は」+数量表現のパターンの頻度は,上記の頻度の合計で80回である。
【0050】
次に,出現確率算出手段230が,上記抽出した各単位表現wi のコーパスにおける出現頻度nを算出する(ステップS26)。上記各単位表現wi のコーパスでの出現頻度nは,例えば平方メートル:17,510回,ヘクタール:8,088回,平方キロメートル:247回,倍:41,686回,分:730,790回,畳:4,829回,番:124,233回,平方センチメートル:20回である。
【0051】
また,出現確率算出手段230は,実際にコーパスにおいて各単位表現wi と主たる名詞とが共起して出現する頻度xi を算出する(ステップS27)。ここでの共起の定義は,例えば主たる名詞が「面積」の場合,「面積は」+数量表現のパターンにおける数量表現の単位表現がwi であることとする。即ち,コーパスにおける各単位表現wi のn個の出現パターンのうち,その数量表現と「面積」が"「面積は」+数量表現" のパターンで共起して出現した頻度がxi である。例えば,平方メートルの例だと,xi =41回となる。
【0052】
次に,「平方メートル」と共起する場合の「面積」の出現確率p’=そのような条件のないときの「面積」の一般的出現確率pという仮説を立てて,二項分布を利用した検定を行う。即ち,まず,確率分布算出手段231が,前記算出した主たる名詞の一般的出現確率pに基づく前記コーパスにおいて前記主たる名詞と前記単位表現wi とが共起して出現する回数の確率分布を算出する(ステップS28)。個々の試行はすべて独立とし,ある単位表現wi がn回出現しているときに,一般的出現確率pの主たる名詞が出現する回数の確率分布を求めるのである。かかる確率分布は,主たる名詞の出現回数をr(r=0,1,2,3・・・n)として,
n r r (1−p)n-r
と算出され,図8に示されるような二項分布となる。
【0053】
次に,不要単位表現除去手段232は,算出した確率分布における前記主たる名詞と各単位表現wi とが共起して出現する回数がxi 回以上である確率(検定確率)Pを算出する(ステップS29)。図8では斜線部分の確率がPである。例えば,「平方メートル」のn=17510回の出現場面において,一般的出現確率p=約0.00001937の「面積」が,xi =41回以上現れる検定確率Pを求める。
【0054】
本発明の実施の形態では,「平方メートル」と共起する場合の「面積」の出現確率p’とそのような条件のないときの「面積」の一般的出現確率pは本来異なる可能性があるのに同じであると仮定しており,「平方メートル」と共起する場合の「面積」の出現確率p’に,そのような条件のないときの「面積」の一般的出現確率pを用いている。
【0055】
従って,検定確率Pの値が十分に小さい場合は,p’=pという仮説は棄却され,p’とpとは異なると判断できる。また,本発明の実施の形態では,「xi 回以上」のように,検定確率Pを求める際に,確率分布の片側の領域のみを用いているので,片側検定になっている。さらに,用いている領域が「xi 回以上」のように大きい場合の方の領域を用いる右片側検定であるため,Pの値が十分に小さい場合,p’>pと結論付けできる。ただし,かかる判断は必ず正しいという意味ではなく,確率Pだけは誤る可能性をもった判断である。
【0056】
不要単位表現除去手段232は,Pの値が十分に小さく,「平方メートル」と共起する場合の「面積」の出現確率p’が,そのような条件のないときの「面積」の一般的出現確率pよりも大きいと結論付けできる場合は,この「平方メートル」と「面積」の共起は偶然ではなく必然的な共起であるとして「平方メートル」を有用な単位表現と判断する。
【0057】
逆に,検定確率Pの値が十分に小さくなく,「平方メートル」と共起する場合の「面積」の出現確率p’が,そのような条件のないときの「面積」の一般的出現確率pよりも大きいと結論できない場合は,この「平方メートル」と「面積」の共起は必然的なものではなく偶然的な共起である可能性が高いとして「平方メートル」を不要な単位表現と判断し,以降の質問応答システムの処理では用いないようにする。
【0058】
即ち,不要単位表現除去手段232は,各単位表現wi の検定確率Pの値が予め設定した閾値未満かを判断し(ステップS30),Pの値が閾値未満の単位表現を有用な単位表現と判断し(ステップS32),Pの値が閾値以上の単位表現を不要な単位表現と判断して単位表現データベース18から除去し(ステップS31),処理を終了する。
【0059】
実際に上記の例でPの値を計算すると,平方メートル:0.00000000,ヘクタール:0.00000000,平方キロメートル:0.00000000,倍:0.19392510,分:0.99998923,畳:0.08930732,番:0.90988811,平方センチメートル:0.00038737となる。この計算は上述したように,二項分布の理論を使うことで計算することができる。ここでは,フリーソフトのMath−CDF−0.1のサブルーチンpbinomを用いて計算した。
【0060】
ここで,Pの値が十分小さいことを意味する閾値として,例えば,0.1を用いると,
平方メートル:0.00000000
ヘクタール:0.00000000
平方キロメートル:0.00000000
畳:0.08930732
平方センチメートル:0.00038737
が有用な単位表現,すなわち妥当な共起語で,
倍:0.19392510
分:0.99998923
番:0.90988811
が不要な単位表現,すなわち妥当でない共起語であると判断できる。
【0061】
実際,平方メートル:0.00000000,ヘクタール:0.00000000,平方キロメートル:0.00000000,畳:0.08930732,平方センチメートル:0.00038737は,面積の単位表現として利用できるが,倍:0.19392510,分:0.99998923,番:0.90988811は,面積の単位表現としては不当な表現である。
【0062】
このようにして妥当な単位表現と判断した単位表現を用いて質問文の解としての数量表現の推測に利用するのである。
【0063】
本発明の第一の実施の形態においては,「平方メートル」と共起する場合の「面積」の出現確率p’が「面積」の一般的出現確率pと等しいという仮説を立てて,Pの値の大きさに基づいて右片側検定を行って,上記仮説が棄却できるか,即ちp’>pかを結論付け,p’>pと結論付けできる単位表現は有用な単位表現であり,p’>pと結論付けできない単位表現は不要な単位表現と判断していたが,本発明においては,以下のように左片側検定を行ってp’<pかを結論付け,p’<pと結論付けできる単位表現は不要な単位表現であり,p’<pと結論付けできない単位表現は有用な単位表現と判断することもできる。
【0064】
本発明の第二の実施の形態においては,まず第一の実施の形態と同様に「面積」の表現の一般的出現確率pと,各単位表現の出現数nを求める。「平方メートル」の例では例えばn=17,510となる。
【0065】
このn個のパターンのうち,その数量表現と「面積」が" 「面積は」+数量表現" のパターンで共起して出現した頻度をxi とする。例えば,平方メートルの例だと,xi =41となる。
【0066】
次に,個々の試行はすべて独立と仮定し,「平方メートル」のn回の出現場面において,一般的出現確率pの「面積」が,xi 回以下現れる確率(検定確率)Pを求める。言い換えると,「平方メートル」がn回出現していて,1 回にpの確率で出現する「面積」が,このn回の「平方メートル」とともに共起して出現する回数がxi 回以下である確率(検定確率)Pを求める。
【0067】
ここでは,「平方メートル」と共起する場合の「面積」の出現確率p’とそのような条件のないときの「面積」の一般的出現確率pは本来異なる可能性があるのに同じであると仮定しており,「平方メートル」と共起する場合の「面積」の出現確率p’に,そのような条件のないときの「面積」の一般的出現確率pを用いている。
【0068】
従って,検定確率Pの値が十分に小さい場合は,p’=pという仮説は棄却され,p’とpとは異なると判断できる。また,本発明の実施の形態では,「xi 回以下」のように,検定確率Pを求める際に,確率分布の片側の領域のみを用いているので,片側検定になっている。さらに,用いている領域が「xi 回以下」のように小さい場合の方の領域を用いる左片側検定であるので,Pの値が十分に小さい場合,p’<pと結論付けできる。ただし,かかる判断は必ず正しいという意味ではなく,確率Pだけは誤る可能性をもった判断である。
【0069】
不要単位表現除去手段232は,Pの値が十分に小さく,「平方メートル」と共起する場合の「面積」の出現確率p’が,そのような条件のないときの「面積」の一般的出現確率pよりも小さいと結論付けできる場合は,この「平方メートル」と「面積」の共起は偶然であるとして「平方メートル」を不要な単位表現と判断し,単位表現データベース18から除去する。
【0070】
逆に,検定確率Pの値が十分に小さくなく,「平方メートル」と共起する場合の「面積」の出現確率p’が,そのような条件のないときの「面積」の一般的出現確率pよりも小さいと結論付けできない場合は,この「平方メートル」と「面積」の共起は偶然的なものではなく必然的な共起である可能性が高いとして「平方メートル」を有用な単位表現と判断し,当該有用と判断した単位表現を用いて数量表現推測手段24が質問文の解としての数量表現を推測する。
【0071】
以上整理すると,Pの値が小さいほど,不要な単位表現と判断し,Pの値が大きいほど,有用な単位表現と判断するということになる。
【0072】
実際に上記の例でPの値を計算すると,
平方メートル:1.00000000
ヘクタール:1.00000000
平方キロメートル:1.00000000
倍:0.95148679
分:0.00008198
畳:0.99588861
番:0.30698656
平方センチメートル:0.99999993
となる。
【0073】
この計算は二項分布の理論を使うことで計算することができる.ここでは,フリーソフトのMath−CDF−0.1のサブルーチンpbinomを用いて計算した。
【0074】
ここで,Pの値が十分小さいことを意味する閾値として,例えば,0.99を用いると,Pの値が0.99未満の単位表現は不要な単位表現であって不要な共起語であると判断し,Pの値が0.99以上の単位表現は主たる名詞「面積」と共起して出現する可能性が高く,有用な単位表現であって妥当な共起語であると判断する。即ち,
平方メートル:1.00000000
ヘクタール:1.00000000
平方キロメートル:1.00000000
畳:0.99588861
平方センチメートル:0.9999993
が妥当な共起語で,
倍:0.95148679
分:0.00008198
番:0.30698656
が妥当でない不要な共起語であると判断される。
【0075】
実際,平方メートル:1.00000000,ヘクタール:1.00000000,平方キロメートル:1.00000000,畳:0.99588861,平方センチメートル:0.9999993は面積の単位表現として利用できるが,倍:0.95148679,分:0.00008198,番:0.30698656は,面積の単位表現としては不当な表現である。
【0076】
このようにして求めた妥当な単位表現のみを用いて質問文の解としての数量表現の推測に利用するのである。
【0077】
図5は,上記本発明の第二の実施の形態における不要な単位表現の除去処理フローの詳細の一例を示す図であり,図3のステップS3の詳細であるステップS41乃至ステップS52を示したものである。なお,本発明の第二の実施の形態においては,図3におけるステップ3以外のステップは第一の実施の形態と同様である。
【0078】
図5に示すように,本発明の第二の実施の形態においては,ステップS49において,算出した確率分布における主たる名詞と各単位表現wi とが共起して出現する回数がxi 回以下である確率P(検定確率)を算出することと,ステップS52においてPの値<閾値の場合には不要な単位表現と判断して単位表現データベースから除去することと,ステップS51においてPの値<閾値でない場合には有用な単位表現と判断する点において図4に示す本発明の第一の実施の形態と異なり,図5における他のステップは本発明の第一の実施の形態と同様である。
【0079】
本発明は,その趣旨に基づき,以下のように種々の変形が可能である。
【0080】
上記本発明の第一の実施の形態および第二の実施の形態では,一般的出現確率をpとして,コーパスでの主たる名詞としての「面積」の出現確率を用いたが,本発明では,コーパスにおける一般的出現確率pとしては,単位表現wi の出現確率を用いて,コーパスにおいて主たる名詞「面積」が出現した個数をnとしても同様の検定が行なえる。
【0081】
即ち,「面積」と共起する場合の「平方メートル」の出現確率p’が「平方メートル」の一般的出現確率pと等しいという仮説を立てて左片側検定を行い,「平方メートル」が上記n回出現する主たる名詞「面積」と共起して出現する回数がxi 回(例えば41回)以下である検定確率Pの値の大きさが閾値(例えば0.99)未満である場合はp’<pであると結論付けて「平方メートル」は不要な単位表現と判断し,検定確率Pの値の大きさが閾値以上であり,p’<pと結論付けできない場合は有用な単位表現と判断することもできる。
【0082】
例えば,「平方メートル」の場合だと,
p=17510/409502077,n=7933であり,
P=1.00000000>0.99
となって,p’<pと判断できないため,「平方メートル」は有用な単位表現であると判断できる。
【0083】
かかる左片側検定を行う本発明の第三の実施の形態の不要な単位表現の除去処理フローの詳細の一例を図6に示す。図6は,図3のステップS3の詳細であるステップS81乃至ステップS92を示したものである。図6に示すように,本発明の第三の実施の形態においては,ステップS84においてコーパスにおける各単位表現wi の一般的出現確率pを算出していることと,ステップS86において,主たる名詞のコーパスにおける出現頻度nを算出している点において図5に示す本発明の第二の実施の形態と異なる。
【0084】
もちろん,本発明においては,「面積」と共起する場合の「平方メートル」の出現確率p’が「平方メートル」の一般的出現確率pと等しいという仮説を立てて右片側検定を行い,「平方メートル」が上記n回出現する「面積」と共起して出現する回数がxi 回以上である検定確率Pの値の大きさが閾値未満である場合はp’>pと結論付けて有用な単位表現と判断し,検定確率Pの値の大きさが閾値以上であり,p’>pと結論付けできない場合は不要な単位表現と判断することもできる。
【0085】
かかる右片側検定を行う本発明の第四の実施の形態の不要な単位表現の除去処理フローの詳細の一例を図7に示す。図7は,図3のステップS3の詳細であるステップS61乃至ステップS72を示したものである。図7に示すように,本発明の第四の実施の形態においては,ステップS64においてコーパスにおける各単位表現wi の一般的出現確率pを算出していることと,ステップS66において,主たる名詞のコーパスにおける出現頻度nを算出している点において図4に示す本発明の第一の実施の形態と異なる。
【0086】
また,本発明においては,以下に示す超幾何分布を用いた検定を行うこともできる。
【0087】
超幾何分布とは,
hg(N,k,n,m)=C(K,m)×C(N−K,n−m)/C(N,n)
の形で表せる分布である。
【0088】
ただし,Cは「組み合わせ」を意味する記号C(A,B)=A!/B!/(B−A)!であり,また,hg(N,k,n,m)は,「N個の玉の中にK個の赤い玉があるとき,任意に取り出したn個の玉の中に赤い玉がちょうどm個含まれる確率」である。
【0089】
ここで,hgs(N,K,n,k)=Σhg(N,K,n,m)
とすると,hgs(N,K,n,k)は,「N個の玉の中にK個の赤い玉があるとき,任意に取り出したn個の玉の中に赤い玉がk個以上含まれる確率」となる。なお,Σhg(N,K,n,m)は,m≧kであるmについてのhg(N,k,n,m)の合計を意味する。
【0090】
ここで,N,K,n,kを以下のように解釈する。
【0091】
N:コーパスの大きさ
K:「面積」の出現頻度
n:ある単位表現の出現頻度
k:「面積」と,ある単位表現の共起回数
上記解釈によると,hgs(N,K,n,k)は,「Nの大きさのコーパスの中に「面積」という表現がK個あるときに,ある着目している単位表現をn個取り出し,そのn個の単位表現のうち,k個以上のもので,「面積」とその単位表現が共起する事象の起る確率」を意味することとなる。
【0092】
これは,前記本発明の実施の形態において,p=K/Nを「面積」の一般的出現確率としていたところを,K/Nの形にまとめずにKとNにわけたまま扱っていることに相当する。超幾何分布を用いる方法では,p=K/NとせずにKとNとにわけている分,仮定が少なく,近似の少ない手法で精度は高くなるものである。
【0093】
この方法では,hgs(N,K,n,k)が小さいほど,「面積」と単位表現の共起が妥当なものと判断でき,hgs(N,K,n,k)が大きいほど,「面積」と単位表現の共起は偶然のもので,妥当なものではないと判断できる。
【0094】
従って,本発明においては,不要単位表現除去手段232は,hgs(N,K,n,k)がある閾値より小さい単位表現を有用な単位表現と判断して質問文の解としての数量表現の推定に用いるようにし,hgs(N,K,n,k)がある閾値以上の単位表現を不要な単位表現と判断して除去する。
【0095】
本発明の第五の実施の形態では,上述した超幾何分布を用いて右片側検定を行う。図9は,本発明の第五の実施の形態における不要な単位表現の除去処理フローの詳細の一例を示す図であり,図3のステップS3の詳細であるステップS101乃至ステップS111を示したものである。なお,図3におけるその他のステップは本発明の第一の実施の形態と同様である。
【0096】
図9に示すように,本発明の第五の実施の形態においては,質問文の解が数量表現であるかを判断し(ステップS101),解が数量表現でない場合は図3のステップS5に移行し,解が数量表現の場合は質問文が単位表現を有していないかを判断する(ステップS102)。
【0097】
質問文が単位表現を有している場合には処理を終了して図3のステップS4に移行し,質問文が単位表現を有していない場合には,質問文情報から質問文における主たる名詞を認定する(ステップS103)。
【0098】
次に,コーパスにおける主たる名詞の出現頻度Kを算出する(ステップS104)。そして,コーパスから主たる名詞と数量表現とが係り受け関係である組み合わせパターンを抽出し,抽出された前記組み合わせパターンから前記数量表現に付されている1又は複数の単位表現wi を抽出し,単位表現データベース18に記録する(ステップS105)。そして,抽出した各単位表現wi のコーパスにおける出現頻度nを算出する(ステップS106)。
【0099】
次に,各単位表現wi と主たる名詞とが共起して出現する回数kを算出する(ステップS107)。次に,超幾何分布における主たる名詞と各単位表現wi とが共起して出現する回数がk回以上である検定確率P=hgs(N,K,n,k)を算出する(ステップS108)。なお,Nはコーパスの大きさである。
【0100】
そして,Pの値<閾値であるかを判断し(ステップS109),Pの値<閾値である場合には有用な単位表現と判断し(ステップS111),Pの値<閾値でない場合は,不要な単位表現と判断して単位表現データベースから除去する(ステップS110)。
【0101】
また,本発明においては,超幾何分布を用いて左片側検定を行うこともできる。超幾何分布を用いて左片側検定を行う本発明の第六の実施の形態における不要単位表現の除去処理フローの詳細の一例を図10に示す。図10は,図3のステップS3の詳細であるステップS121乃至ステップS131を示したものである。本発明の第六の実施の形態においては,図10のステップS128において超幾何分布における主たる名詞と各単位表現wi とが共起して出現する回数がk回以下である検定確率P=hgs(N,K,n,k)を算出することと,ステップS130において,Pの値<閾値でない場合には有用な単位表現と判断することと,ステップS131において,Pの値<閾値である場合は,不要な単位表現と判断して単位表現データベースから除去する点で図9に示す本発明の第五の実施の形態と異なる。
【0102】
なお,本発明の第五の実施の形態または本発明の第六の実施の形態においては,K=主たる名詞の出現頻度,n=各単位表現の出現頻度としたが,このKとnは交換可能で,K=各単位表現の出現頻度,n=主たる名詞の出現回数としてもよい。
【0103】
以上説明した全ての本発明の実施の形態では,ある種の比率の検定を行なっていることに相当する。おおよそ,主たる名詞と単位表現の一般的出現確率から予想される主たる名詞と単位表現の共起回数よりも大きい回数もしくは共起回数以上の回数で主たる名詞と単位表現の共起が出現しているかどうかを検定するのである。
【0104】
また,本発明は,AICやZ−scoreなどの比率の検定を行なうことができる統計的検定法でも実現できる。
【0105】
なお,本発明は,前記従来技術における人手で記述した規則,もしくは,テーブルの作成の補助にも用いることができる。
【0106】
【発明の効果】
本発明を用いることにより,質問文に対する解が数量表現の場合に,当該数量表現に付される単位表現として適切な単位表現か否かを的確に判断することが可能な方法およびシステムを提供することが可能となる。
【図面の簡単な説明】
【図1】統計的検定を利用した質問応答システムの構成の一例を示す図である。
【図2】不要共起語除去システムの構成図の一例である。
【図3】統計的検定を利用した質問応答処理フローの一例を示す図である。
【図4】不要な単位表現の除去処理フローの詳細の一例を示す図である。
【図5】不要な単位表現の除去処理フローの詳細の一例を示す図である。
【図6】不要な単位表現の除去処理フローの詳細の一例を示す図である。
【図7】不要な単位表現の除去処理フローの詳細の一例を示す図である。
【図8】二項分布を示す図である。
【図9】不要な単位表現の除去処理フローの詳細の一例を示す図である。
【図10】不要な単位表現の除去処理フローの詳細の一例を示す図である。
【符号の説明】
1 統計的検定を利用した質問応答システム
11 不要共起語除去システム
12 質問文入力部
13 キーワード抽出/情報検索部
14 解答抽出部
15 解答出力部
16 データベース
17 表現推測部
18 単位表現データベース
20 数量表現判断手段
21 主名詞認定手段
22 単位表現抽出手段
23 検定手段
24 数量表現推測手段
230 出現確率算出手段
231 確率分布算出手段
232 不要単位表現除去手段
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a natural language information processing system using a computer, and more particularly to a question answering system that removes unnecessary co-occurrence words using a statistical test.
[0002]
For example, if you enter a question such as “Where is the capital of Japan?” Or “Where is the winning country of the 2002 World Cup”? Is a system that accurately outputs.
[0003]
Unlike information retrieval that requires searching for a solution from searched articles, the question answering system accurately outputs the solution itself, so that the user can obtain information on the solution more quickly. Further, since the question answering system automatically outputs the solution itself, it can also be used as a knowledge processing system inside another automatic knowledge processing system. The present invention relates to a question answering system that removes unnecessary co-occurrence words by using a statistical test among such question answering systems.
[0004]
[Prior art]
As an execution example of the question answering system, consider giving a question sentence “How many tigers were there at the beginning of the 20th century?”. The answer to the question sentence is “100,000 heads”. In order to obtain this, a general question answering system estimates that the quantity expression is the answer from the expression “how much”. In addition, from the expressions “how much was a tiger” and “how long have you been”, it is assumed that the quantity expression corresponding to “how much” would be a quantity expression with “head” as a unit expression such as “... head”. To do.
[0005]
Based on this information, for example, keyword extraction is performed, articles and documents are searched for using “first 20th century” and “tiger” as keywords, and a pattern of numeric expression + “head” is obtained from the articles and documents obtained by the search. By taking out, "100,000 heads" of solutions can be taken out.
[0006]
Conventionally, there has been a question answering system for extracting a solution including such unit expressions. (Refer nonpatent literature 1.).
[0007]
A method for selecting a word that characterizes a given document set has also existed conventionally (see Non-Patent Document 2).
[0008]
[Non-Patent Document 1]
Hiroshi Sasaki, Hideki Amagasaki, Hiroyuki Hira, Tsutomu Hirao, Hideto Kazawa, Jun Suzuki, Koji Kyori, Eisaku Maeda, SAIQA: Question Answering System Based on Mass Documents, Information Processing Society of Japan, Natural Language Processing Society 2001-NL-145, 2001
[Non-Patent Document 2]
Toru Hisamitsu, Yoshiki Niwa, Feature word selection method based on combinatorial probability model, Natural Language Processing Study Group, IPSJ, 140-12, 2000
[0009]
[Problems to be solved by the invention]
However, since the prior art described in Non-Patent Document 1 uses rules or tables that are described manually for the extraction of unit expressions, depending on the question sentence, it is appropriate to determine whether the unit expression is useful for solution extraction. In some cases, it is impossible to make a decision, and only a low accuracy rate can be obtained.
[0010]
The prior art described in Non-Patent Document 2 is intended to select feature words as keywords of sentences, and is not intended to extract unit expressions that are functional expressions of languages.
[0011]
The present invention solves the above-mentioned problems of the prior art, and when the answer to the question sentence is a quantity expression, it is possible to accurately determine whether or not the unit expression to be attached to the quantity expression is an appropriate unit expression. It is an object to provide a simple question answering method and question answering system.
[0012]
[Means for Solving the Problems]
In order to solve the above problems, the present invention is useful for extracting a solution by using a statistical test based on co-occurrence frequency information in digitized text information such as a newspaper corpus of main nouns and unit expressions in a question sentence. Only the useful unit representation is used for solution extraction, and the unit representation judged to be unnecessary is not used for solution extraction. The main noun refers to the main subject of the question in the question sentence. For example, in the question sentence “How many tigers were there at the beginning of the 20th century”, “tiger” is the main noun.
[0013]
Here, for example, the quantity expression corresponding to “how much” in the question sentence “How many tigers were there at the beginning of the 20th century” would be a quantity expression with “head” as a unit expression such as “... head”. When inferring, a large number of patterns such as ““ tiger is ”+ quantity expression” are extracted, and the unit expression “head” is extracted by extracting the unit expression attached to the quantity expression, or “quantity expression +“ now Similarly, the unit expression “head” can be extracted from a pattern such as “”.
[0014]
However, with such a method alone, for example, a unit expression “year” is extracted from a sentence such as “tiger is in 1992”. If “year” can also be used as a unit expression for solution extraction, the expression “1992” may be erroneously output as a solution.
[0015]
A method using co-occurrence frequency information in a corpus or the like is also conceivable. Count the number of unit expressions that co-occur with "tiger" and use only the unit expression with the largest number. In this case, “head” has the highest appearance frequency, so that “head” is used as a unit expression, and the problem of extracting “year” as a unit expression is solved.
[0016]
However, as a unit expression in the quantity expression equivalent to “how much” of the question sentence “How many tigers were there at the beginning of the 20th century”, the expression “animal” is also conceivable. If the expression of the solution is “100,000”, using only the “head” with the maximum frequency makes it impossible to extract “100,000” as a solution.
[0017]
Therefore, in the present invention, based on the co-occurrence frequency information in the corpus or the like of the main noun and the unit expression, using the statistical test, the unit noun and the co-occurrence among the unit expressions attached to the quantity expression. Thus, unit expressions that are unlikely to appear are determined to be unnecessary co-occurrence words and removed, and only unit expressions that are determined to be useful are used for solution extraction.
[0018]
In particular,
“Appearance probability of“ tiger ”appearing together with the unit expression = general probability of occurrence of“ tiger ”in the corpus
Through the test of the above hypothesis based on the number of occurrences of “tiger” and unit expression appearing together in corpus, etc., and the frequency of occurrence of “tiger” and unit expression, It is judged whether each unit expression such as “tiger”, “head”, “animal”, etc. co-occurs by chance or inevitably co-occurs. Based on the test result, if it is determined that a unit expression “tiger is” co-occurs by chance, it is determined that it is only an accidental unit expression and is an unnecessary unit expression. In addition, if it is judged that a unit expression is inevitably co-occurring with "tiger", it is inevitably co-occurring, so it is expected that the expression will be deeply related. Judged as a useful unit expression. This method makes it possible to determine whether each unit representation is useful or unnecessary as a unit representation used for solution extraction. Then, if the solution of the question answering system is judged using only the unit expressions judged to be useful, all the above problems are solved.
[0019]
That is, the present invention is a question answering method for inputting a question sentence in a natural language, generating a solution by collation with sentences in digitized text information stored in a database, and outputting the answer. A combination pattern of a main noun and a quantity expression of the question sentence appearing in the digitized text information using a statistical test when a question sentence input process to be performed and a solution of the input question sentence is a quantity expression The unit expression extracted from the unit sentence that is unlikely to appear together with the main noun in the question sentence is judged as an unnecessary co-occurrence word, and appears together with the main noun in the question sentence. An expression estimation process for determining a unit expression having a high possibility as a useful co-occurrence word and inferring a quantity expression as a solution of the question sentence using the unit expression determined as the useful co-occurrence word; Quantity expression And having a answer extraction step of extracting the solution of the question by using.
[0020]
Also, in the present invention, the expression estimation process is a quantity expression determination process for determining whether a solution of a question sentence is a quantity expression based on the question sentence information, and the main noun is recognized from the question sentence information. A combination in which the recognized main noun and the quantity expression are in a dependency relationship from the digitized text information when it is determined that the answer to the question sentence is a quantity expression in the main noun recognition process and the quantity expression judgment process. A unit expression extraction process for extracting one or a plurality of unit expressions attached to the quantity expression from the extracted combination pattern, the main noun in the digitized text information, and each extracted An appearance probability calculating step of calculating an appearance frequency of the unit expression and calculating a general appearance probability of the main noun based on the calculated appearance frequency information; Based on the general appearance probability of the main noun, the probability distribution of the number of times that the main noun appears together with each unit expression among the patterns in which each unit expression appears in the digitized text information is calculated. Probability distribution calculation process, and the number of times that the main noun in the calculated probability distribution co-occurs with each unit expression is attached to the quantity expression in the combination pattern in which the main noun and the quantity expression have a dependency relationship. A test probability that is a probability that is equal to or greater than the number of occurrences of each unit expression, and among the one or more unit expressions extracted in the unit expression extraction process, the calculated test probability is greater than or equal to a preset threshold value Unit expressions that are judged as unnecessary co-occurrence words that are unlikely to appear together with the main noun are removed, and the unit expression whose test probability is less than the threshold And unnecessary units represented removing process of determining a useful occurrence word, and having a quantity representation guess process to infer the quantity expressed as the solution of the question by using the unit representation is determined that the useful.
[0021]
Also, in the present invention, the expression estimation process is a quantity expression determination process for determining whether a solution of a question sentence is a quantity expression based on the question sentence information, and the main noun is recognized from the question sentence information. A combination in which the recognized main noun and the quantity expression are in a dependency relationship from the digitized text information when it is determined that the answer to the question sentence is a quantity expression in the main noun recognition process and the quantity expression judgment process. A unit expression extraction process for extracting one or a plurality of unit expressions attached to the quantity expression from the extracted combination pattern, the main noun in the digitized text information, and each extracted An appearance probability calculating step of calculating an appearance frequency of the unit expression, and calculating a general appearance probability of each unit expression based on the calculated appearance frequency information; Probability distribution that calculates the probability distribution of the number of times each unit representation appears together with the main noun among the patterns in which the main noun appears in the digitized text information based on the general appearance probability of the position representation The number of times that each unit expression in the calculated probability distribution co-occurs with the main noun is added to the quantity expression in a combination pattern in which the main noun and the quantity expression have a dependency relationship. Calculating a test probability that is a probability that is equal to or greater than the number of appearances of the quantity expression appearing together with each of the unit expressions, and calculating the calculated one of the unit expressions extracted in the unit expression extraction process Unit expressions whose test probabilities are equal to or higher than a preset threshold are judged to be unnecessary co-occurrence words that are unlikely to appear together with the main noun and are removed. An unnecessary unit expression removing process for determining a unit expression having a probability less than a threshold as a useful co-occurrence word, and a quantity expression estimating process for estimating a quantity expression as a solution of the question sentence using the unit expression determined to be useful. It is characterized by having.
[0022]
Also, in the present invention, the expression estimation process is a quantity expression determination process for determining whether a solution of a question sentence is a quantity expression based on the question sentence information, and the main noun is recognized from the question sentence information. A combination in which the recognized main noun and the quantity expression are in a dependency relationship from the digitized text information when it is determined that the answer to the question sentence is a quantity expression in the main noun recognition process and the quantity expression judgment process. A unit expression extraction process for extracting one or a plurality of unit expressions attached to the quantity expression from the extracted combination pattern, the main noun in the digitized text information, and each extracted An appearance probability calculating step of calculating an appearance frequency of the unit expression and calculating a general appearance probability of the main noun based on the calculated appearance frequency information; Based on the general appearance probability of the main noun, the probability distribution of the number of times that the main noun appears together with each unit expression among the patterns in which each unit expression appears in the digitized text information is calculated. Probability distribution calculation process, and the number of times that the main noun in the calculated probability distribution co-occurs with each unit expression is attached to the quantity expression in the combination pattern in which the main noun and the quantity expression have a dependency relationship. A test probability that is a probability that is less than or equal to the number of occurrences of each unit expression being calculated, and among the one or more unit expressions extracted in the unit expression extraction process, the calculated test probability is less than a preset threshold value Unit expressions that are judged to be unnecessary co-occurrence words that are unlikely to appear together with the main noun are eliminated, and the unit expression whose test probability is equal to or greater than a threshold value And unnecessary units represented removing process of determining a useful occurrence word, and having a quantity representation guess process to infer the quantity expressed as the solution of the question by using the unit representation is determined that the useful.
[0023]
Also, in the present invention, the expression estimation process is a quantity expression determination process for determining whether a solution of a question sentence is a quantity expression based on the question sentence information, and the main noun is recognized from the question sentence information. A combination in which the recognized main noun and the quantity expression are in a dependency relationship from the digitized text information when it is determined that the answer to the question sentence is a quantity expression in the main noun recognition process and the quantity expression judgment process. A unit expression extraction process for extracting one or a plurality of unit expressions attached to the quantity expression from the extracted combination pattern, the main noun in the digitized text information, and each extracted An appearance probability calculating step of calculating an appearance frequency of the unit expression, and calculating a general appearance probability of each unit expression based on the calculated appearance frequency information; Probability distribution that calculates the probability distribution of the number of times each unit representation appears together with the main noun among the patterns in which the main noun appears in the digitized text information based on the general appearance probability of the position representation The number of times that each unit expression in the calculated probability distribution co-occurs with the main noun is added to the quantity expression in a combination pattern in which the main noun and the quantity expression have a dependency relationship. A test probability that is a probability that is equal to or less than the number of appearances of the quantity expression that co-occurs with each of the unit expressions, and the calculated one of the unit expressions extracted in the unit expression extraction process Unit expressions whose test probabilities are less than a preset threshold are judged to be unnecessary co-occurrence words that are unlikely to appear together with the main noun and are removed. An unnecessary unit expression removing process for determining a unit expression having a probability equal to or greater than a threshold value as a useful co-occurrence word, and a quantity expression estimating process for estimating a quantity expression as a solution of the question sentence using the unit expression determined to be useful. It is characterized by having.
[0024]
Also, in the present invention, the expression estimation process is a quantity expression determination process for determining whether a solution of a question sentence is a quantity expression based on the question sentence information, and the main noun is recognized from the question sentence information. A combination in which the recognized main noun and the quantity expression are in a dependency relationship from the digitized text information when it is determined that the answer to the question sentence is a quantity expression in the main noun recognition process and the quantity expression judgment process. A unit expression extraction process for extracting one or a plurality of unit expressions attached to the quantity expression from the extracted combination pattern, the main noun in the digitized text information, and each extracted Using the appearance frequency extraction process for calculating the appearance frequency of the unit representation and the hypergeometric distribution, the main noun in the hypergeometric distribution co-occurs with each unit representation. Calculating a test probability that is a probability that the number of appearances is equal to or greater than the number of appearances of each unit expression in the combination pattern in which the main noun and the quantity expression have a dependency relationship, and extracting the unit expression Among one or a plurality of unit expressions extracted in the process, a unit expression having a calculated test probability equal to or higher than a preset threshold is determined as an unnecessary co-occurrence word that is unlikely to appear together with the main noun. And removing unnecessary unit expressions that determine unit expressions with a test probability less than a threshold as useful co-occurrence words, and inferring quantity expressions as solutions to the question sentence using the unit expressions determined to be useful And a quantity expression inference process.
[0025]
Also, in the present invention, the expression estimation process is a quantity expression determination process for determining whether a solution of a question sentence is a quantity expression based on the question sentence information, and the main noun is recognized from the question sentence information. A combination in which the recognized main noun and the quantity expression are in a dependency relationship from the digitized text information when it is determined that the answer to the question sentence is a quantity expression in the main noun recognition process and the quantity expression judgment process. A unit expression extraction process for extracting one or a plurality of unit expressions attached to the quantity expression from the extracted combination pattern, the main noun in the digitized text information, and each extracted Using the appearance frequency extraction process for calculating the appearance frequency of the unit representation and the hypergeometric distribution, the main noun in the hypergeometric distribution co-occurs with each unit representation. Calculating a test probability that is a probability that the number of appearances is less than or equal to the number of appearances of each unit expression in the combination pattern in which the main noun and the quantity expression have a dependency relationship, and extracting the unit expression Among one or more unit expressions extracted in the process, a unit expression whose calculated test probability is less than a preset threshold is determined as an unnecessary co-occurrence word that is unlikely to appear along with the main noun. And removing unnecessary unit expressions that determine unit expressions with a test probability equal to or greater than a threshold value as useful co-occurrence words, and inferring quantity expressions as solutions to the question sentence using the unit expressions determined to be useful And a quantity expression inference process.
[0026]
  Further, the present invention is a question answering system for inputting a question sentence in a natural language, generating a solution by collation with sentences in electronic text information stored in a database, and outputting the answer. Included in the question text that appears in the digitized text information using a statistical test when the answer to the question text input means and the answer of the input question text is a quantitative expression,Using morphological analysis and sentence patternsA unit expression is extracted from a combination pattern of a specific noun and a quantity expression certified based on a predetermined rule, and the possibility that the extracted unit expression co-occurs with a specific noun in the question sentence is shown. Means for calculating a probability value, determining a unit expression used to determine a quantity expression as a solution of the question sentence according to whether the calculated probability value is equal to or greater than a threshold, and determining a quantity expression including the determined unit expression; Answer extraction means for extracting an answer to the question sentence using the determined quantity expression.
[0027]
  Further, the present invention is a question answering system for inputting a question sentence in a natural language, generating a solution by collation with sentences in electronic text information stored in a database, and outputting the answer. And a question expression input means for determining whether a solution of the question sentence is a quantity expression according to whether the question sentence includes a word for inquiring a quantity expression;Using morphological analysis and sentence patternsBased on a predetermined rule, when the means for certifying a specific noun included in the question sentence and the quantity expression determining means determine that the answer to the question sentence is a quantity expression, Unit expression extraction means for extracting a combination pattern in which a specific authorized noun and a quantity expression have a dependency relationship, and extracting one or a plurality of unit expressions attached to the quantity expression from the extracted combination pattern And an appearance probability for calculating the number of appearances of the specific noun and the extracted unit expressions in the digitized text information, and calculating a general appearance probability of the specific noun based on the calculated number of appearance information Based on the calculated general appearance probability of the specific noun, the specific text out of the patterns in which each unit expression appears in the digitized text information Probability distribution calculating means for calculating a probability distribution of the number of times that a noun appears together with each unit expression, and the number of times that the specific noun in the calculated probability distribution appears together with each unit expression Calculating a test probability that is a probability that the unit expression attached to the quantity expression in the combination pattern having a dependency relationship between the specific noun and the quantity expression is equal to or more than the number of appearances, and the unit expression extracting unit extracts Among the one or a plurality of unit expressions, an unnecessary unit expression removing means for removing a unit expression whose calculated test probability is equal to or higher than a preset threshold value and a quantity expression including a unit expression whose test probability is less than the threshold value are determined. Means for extracting a keyword from the question sentence, and using the extracted keyword to extract information describing a solution of the question sentence from the digitized text information; Using serial determined quantity expressed, characterized in that it comprises a answer extraction means for extracting the solution of the question message from the information solutions of the question is described.
[0028]
  Further, the present invention is a question answering system for inputting a question sentence in a natural language, generating a solution by collation with sentences in electronic text information stored in a database, and outputting the answer. And a question expression input means for determining whether a solution of the question sentence is a quantity expression according to whether the question sentence includes a word for inquiring a quantity expression;Using morphological analysis and sentence patternsBased on a predetermined rule, when the means for certifying a specific noun included in the question sentence and the quantity expression determining means determine that the answer to the question sentence is a quantity expression, Unit expression extraction means for extracting a combination pattern in which a specific authorized noun and a quantity expression have a dependency relationship, and extracting one or a plurality of unit expressions attached to the quantity expression from the extracted combination pattern And an appearance probability for calculating the number of appearances of the specific noun and the extracted unit representations in the digitized text information, and calculating a general appearance probability of the unit representations based on the calculated appearance number information Based on the calculation means and the general appearance probability of each unit representation, each unit representation among the patterns in which the specific noun appears in the digitized text information is A probability distribution calculating means for calculating a probability distribution of the number of times of occurrence co-occurring with a specific noun, and the number of times that each unit expression in the calculated probability distribution co-occurs with the specific noun The test probability is a probability that is equal to or more than the number of appearances of the quantity expression that co-occurs with the unit expressions attached to the quantity expression in the combination pattern in which the noun and the quantity expression have a dependency relationship And an unnecessary unit expression removing means for removing a unit expression having a calculated test probability equal to or higher than a preset threshold among one or a plurality of unit expressions extracted by the unit expression extracting means, and the test probability is less than the threshold value. Means for determining a quantity expression including a unit expression; a keyword is extracted from the question sentence; and a solution of the question sentence is described from the digitized text information using the extracted keyword. Means for retrieving the information, using the determined quantity expressed, characterized in that it comprises a answer extraction means for extracting the solution of the question message from the information solutions of the question is described.
[0029]
  Further, the present invention is a question answering system for inputting a question sentence in a natural language, generating a solution by collation with sentences in electronic text information stored in a database, and outputting the answer. And a question expression input means for determining whether a solution of the question sentence is a quantity expression according to whether the question sentence includes a word for inquiring a quantity expression;Using morphological analysis and sentence patternsBased on a predetermined rule, when the means for certifying a specific noun included in the question sentence and the quantity expression determining means determine that the answer to the question sentence is a quantity expression, Unit expression extraction means for extracting a combination pattern in which a specific authorized noun and a quantity expression have a dependency relationship, and extracting one or a plurality of unit expressions attached to the quantity expression from the extracted combination pattern And an appearance probability for calculating the number of appearances of the specific noun and the extracted unit expressions in the digitized text information, and calculating a general appearance probability of the specific noun based on the calculated number of appearance information Based on the calculated general appearance probability of the specific noun, the specific text out of the patterns in which each unit expression appears in the digitized text information Probability distribution calculating means for calculating a probability distribution of the number of times that a noun appears together with each unit expression, and the number of times that the specific noun in the calculated probability distribution appears together with each unit expression A test probability that is a probability that the number of appearances of each unit expression attached to the quantity expression in a combination pattern in which the specific noun and the quantity expression have a dependency relationship is equal to or less than the number of appearances is extracted, and the unit expression extraction unit extracts Among the one or a plurality of unit expressions, an unnecessary unit expression removing means for removing a unit expression whose calculated test probability is less than a preset threshold value and a quantity expression including a unit expression having the test probability equal to or higher than the threshold value are determined. Means for extracting a keyword from the question sentence, and using the extracted keyword to extract information describing a solution of the question sentence from the digitized text information; Using serial determined quantity expressed, characterized in that it comprises a answer extraction means for extracting the solution of the question message from the information solutions of the question is described.
[0030]
  Further, the present invention is a question answering system for inputting a question sentence in a natural language, generating a solution by collation with sentences in electronic text information stored in a database, and outputting the answer. And a question expression input means for determining whether a solution of the question sentence is a quantity expression according to whether the question sentence includes a word for inquiring a quantity expression;Using morphological analysis and sentence patternsBased on a predetermined rule, when the means for certifying a specific noun included in the question sentence and the quantity expression determining means determine that the answer to the question sentence is a quantity expression, Unit expression extraction means for extracting a combination pattern in which a specific authorized noun and a quantity expression have a dependency relationship, and extracting one or a plurality of unit expressions attached to the quantity expression from the extracted combination pattern And an appearance probability for calculating the number of appearances of the specific noun and the extracted unit representations in the digitized text information, and calculating a general appearance probability of the unit representations based on the calculated appearance number information Based on the calculation means and the general appearance probability of each unit representation, each unit representation among the patterns in which the specific noun appears in the digitized text information is A probability distribution calculating means for calculating a probability distribution of the number of times of occurrence co-occurring with a specific noun, and the number of times that each unit expression in the calculated probability distribution co-occurs with the specific noun The test probability is a probability that is equal to or less than the number of appearances of the quantity expression that co-occurs with the unit expressions attached to the quantity expression in the combination pattern in which the noun and the quantity expression have a dependency relationship And an unnecessary unit expression removing means for removing a unit expression whose calculated test probability is less than a preset threshold among one or a plurality of unit expressions extracted by the unit expression extracting means; Means for determining a quantity expression including a unit expression; a keyword is extracted from the question sentence; and a solution of the question sentence is described from the digitized text information using the extracted keyword. Means for retrieving the information, using the determined quantity expressed, characterized in that it comprises a answer extraction means for extracting the solution of the question message from the information solutions of the question is described.
[0031]
  Further, the present invention is a question answering system for inputting a question sentence in a natural language, generating a solution by collation with sentences in electronic text information stored in a database, and outputting the answer. And a question expression input means for determining whether a solution of the question sentence is a quantity expression according to whether the question sentence includes a word for inquiring a quantity expression;Using morphological analysis and sentence patternsBased on a predetermined rule, when the means for certifying a specific noun included in the question sentence and the quantity expression determining means determine that the answer to the question sentence is a quantity expression, Unit expression extraction means for extracting a combination pattern in which a specific authorized noun and a quantity expression have a dependency relationship, and extracting one or a plurality of unit expressions attached to the quantity expression from the extracted combination pattern And means for calculating the number of occurrences of the specific noun and the extracted unit representations in the digitized text information, and using the hypergeometric distribution, the specific noun in the hypergeometric distribution Number of occurrences of each unit expression attached to the quantity expression in the combination pattern in which the number of times of co-occurrence is a dependency relationship between the specific noun and the quantity expression An unnecessary unit expression removal that calculates a test probability that is a probability above and removes a unit expression having a calculated test probability equal to or higher than a preset threshold among one or a plurality of unit expressions extracted by the unit expression extraction unit Means for determining a quantity expression including a unit expression whose test probability is less than a threshold; a keyword is extracted from the question sentence, and a solution of the question sentence is described from the digitized text information using the extracted keyword And a means for extracting the answer of the question sentence from the information in which the answer of the question sentence is described using the determined quantity expression.
[0032]
  Further, the present invention is a question answering system for inputting a question sentence in a natural language, generating a solution by collation with sentences in electronic text information stored in a database, and outputting the answer. And a question expression input means for determining whether a solution of the question sentence is a quantity expression according to whether the question sentence includes a word for inquiring a quantity expression;Using morphological analysis and sentence patternsBased on a predetermined rule, when the means for certifying a specific noun included in the question sentence and the quantity expression determining means determine that the answer to the question sentence is a quantity expression, Unit expression extraction means for extracting a combination pattern in which a specific authorized noun and a quantity expression have a dependency relationship, and extracting one or a plurality of unit expressions attached to the quantity expression from the extracted combination pattern And means for calculating the number of occurrences of the specific noun and the extracted unit representations in the digitized text information, and using the hypergeometric distribution, the specific noun in the hypergeometric distribution Number of occurrences of each unit expression attached to the quantity expression in the combination pattern in which the number of times of co-occurrence is a dependency relationship between the specific noun and the quantity expression Unnecessary unit expression removal that calculates a test probability that is a lower probability and removes a unit expression whose calculated test probability is less than a preset threshold among one or more unit expressions extracted by the unit expression extraction unit Means for determining a quantity expression including a unit expression having a test probability equal to or greater than a threshold; a keyword is extracted from the question sentence, and a solution of the question sentence is described from the digitized text information using the extracted keyword And a means for extracting the answer of the question sentence from the information in which the answer of the question sentence is described using the determined quantity expression.
[0033]
The present invention also provides a question answering program using a statistical test for causing a computer to execute the question answering method using the statistical test.
[0034]
Further, the present invention is a recording medium on which a question answering program using a statistical test for causing a computer to execute the question answering method using the statistical test is recorded.
[0035]
By using the present invention, when a solution to a question sentence is a quantity expression, a method and a system capable of accurately determining whether or not a unit expression appropriate as a unit expression attached to the quantity expression is provided. It becomes possible.
[0036]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a diagram showing an example of the configuration of a question answering system using the statistical test of the present invention. 1 is a question answering system using the statistical test of the present invention, 11 is an unnecessary co-occurrence word elimination system, 12 is a question sentence input unit for inputting question sentence information, and 13 is a keyword extraction or information search from a database 16. A keyword extraction / information retrieval unit, 14 an answer extraction unit for extracting a question sentence solution, 15 an answer output unit for outputting an answer, 16 a database storing digitized text information such as a newspaper corpus, and 17 a question sentence Reference numeral 18 denotes a unit expression database for storing unit expressions extracted from the database 16.
[0037]
FIG. 2 is an example of a configuration diagram of the unnecessary co-occurrence word removal system 11. 20 is a quantity expression judging means for judging whether the answer of the question sentence is a quantity expression based on the question sentence information input to the question sentence input unit 12, and 21 is a main noun authorization for certifying a main noun from the question sentence information. Means 22 extracts from the digitized text information stored in the database 16 a combination pattern in which the main noun recognized by the main noun recognition means 21 has a dependency relationship with the quantity expression, and the quantity is extracted from the extracted combination pattern. The unit expression extraction means 23 extracts one or more unit expressions attached to the expression and records them in the unit expression database 18, and the possibility that the one or more unit expressions appear together with the main noun The test means 24 for judging whether or not is high is a quantity expression estimation means 24 for estimating a quantity expression as a solution to the question sentence.
[0038]
In addition, 230 calculates the appearance frequency of the main noun and the extracted unit expressions in the computerized text information, and calculates the appearance probability of the main noun based on the calculated appearance frequency information. The means 231 is the number of times that the main noun appears co-occurring with the unit representations among the patterns in which the unit representations appear in the digitized text information based on the calculated general appearance probability of the main nouns. 232 is a probability distribution calculating means for calculating the probability distribution, and 232 is the number of times the main noun appears in the probability distribution calculated by the probability distribution calculating means 231 together with each unit expression. A test probability that is a probability that is equal to or greater than the number of occurrences of each unit expression attached to the quantity expression in the combination pattern that is a receiving relationship. Out of one or a plurality of unit expressions extracted by the unit expression extracting unit, it is unnecessary that a unit expression having a calculated test probability equal to or higher than a preset threshold is likely to appear together with the main noun. It is an unnecessary unit expression removing unit that determines that a co-occurrence word is removed from the unit expression database 18 and determines that a unit expression whose test probability is less than a threshold is a useful unit expression.
[0039]
Hereinafter, a first embodiment of the present invention will be described based on FIGS. 3 and 4 with reference to FIGS. 1, 2, and 8. FIG. In the first embodiment of the present invention, as will be described later, it is assumed that the appearance probability p 'in the corpus of the main noun when co-occurring with each unit expression is equal to the general appearance probability p of the main noun. Each unit expression w in which the main noun based on the general appearance probability p appears n times in the corpusiThe number of occurrences that co-occur with each unit representation w in the corpusiX, the frequency at which the main nouns co-occuriBased on the probability that the number of times is greater than or equal to the number of times (test probability) P A unit expression that cannot be concluded as p ′> p is determined as an unnecessary unit expression.
[0040]
FIG. 3 is a diagram showing an example of a question response processing flow using the statistical test of the present invention. First, a question text is input to the question text input unit 12 (step S1). For example, a question sentence “How big is the land area of Japan?” Is input to the question sentence input unit 12. Next, the inputted question sentence information is transferred from the question sentence input unit 12 to the expression estimation unit 17 of the unnecessary co-occurrence word removal system 11 (step S2). Next, in the unnecessary co-occurrence word removal system 11, the expression estimation unit 17 uses a statistical test to determine whether a unit expression extracted from the corpus is useful for estimating an expression that is likely to be a solution or unnecessary. It is determined whether the unit expression is correct, and the unit expression determined to be unnecessary is removed (step S3).
[0041]
Next, the expression estimation unit 17 uses a unit expression determined to be useful to estimate an expression that is likely to be a solution (step S4). Specifically, the quantity expression estimation means 24 of the expression estimation unit 17 estimates a quantity expression that is likely to be a solution.
[0042]
Then, the keyword extraction / information retrieval unit 13 extracts a keyword from the question sentence passed from the expression estimation unit 17. Then, using the extracted keyword, an article group in which a solution is likely to be described is extracted from the database, and the extracted article group is passed to the answer extraction unit 14 (step S5).
[0043]
Next, the answer extraction unit 14 extracts an expression that matches the expression estimated by the expression estimation unit 17 from the extracted article group, and passes the extracted expression to the answer output unit 15 (step S6). Finally, the answer output unit 15 outputs the passed expression as an answer (step S7).
[0044]
Here, FIG. 4 shows an example of the details of the processing flow for removing unnecessary unit expressions in the first embodiment of the present invention. FIG. 4 is a diagram showing details of step S3 in FIG. First, the quantity expression judging means 20 judges whether the answer to the question sentence is a quantity expression based on the inputted question sentence information (step S21). For example, when the question sentence includes an expression such as “how much” as in “how much is the land area of Japan”, it is determined that the answer of the question sentence is a quantity expression. If it is determined that the answer to the question sentence is not a quantity expression, the process proceeds to step S5.
[0045]
When determining that the answer to the question sentence is a quantity expression, the quantity expression determining means 20 determines whether the question sentence has a unit expression (step S22). If the question sentence does not have a unit expression, the main noun recognition means 21 recognizes the main noun in the question sentence from the question sentence information (step S23). The main nouns are identified based on the rules using morphological analysis and sentence patterns from the pattern of “how much is X”. For example, the main noun in the above question sentence is recognized as “area”. If the question sentence has a unit expression, the process ends.
[0046]
Next, the appearance probability calculation means 230 of the test means 23 calculates a general appearance probability p of the main noun in the corpus (step S24). The general appearance probability p is obtained by dividing the number of appearances of the main noun in the corpus by the size of the corpus. If a large-scale newspaper corpus such as the Mainichi Shimbun is used, for example, the number of appearances in the “area” corpus is 7,933. If the size of the corpus is 409, 502, 077 characters, for example, the general appearance probability p of “area” is
p = 7,933 / 409,502,077
= 0.000019372307111530676
Is calculated.
[0047]
Next, the unit expression extracting means 22 extracts a combination pattern in which the main noun and the quantity expression are in a dependency relationship from the corpus, and one or a plurality of the combination expressions attached to the quantity expression from the extracted combination pattern. Unit representation wiIs extracted and recorded in the unit representation database 18 (step S25). In the present embodiment, “area is” + quantity expression pattern is extracted from the corpus, and unit expression w attached to the quantity expressioniTake out. Each unit expression wiIs extracted by using a morphological analysis result and a word dictionary. Each extracted unit representation wiIs stored in the unit representation database 18. The pattern of quantity expression is extracted based on morphological analysis and rules using sentence patterns.
[0048]
Here, the following unit expression w is obtained from the quantity expression extracted from the corpus as “area is” + quantity expression pattern.iCan be extracted with the following frequency, for example.
[0049]
Square meter: 41 times, ha: 27 times, square kilometer: 5 times, double: 2 times, minute: 2 times, tatami mat: 1 time, number: 1 time, square centimeter: 1 time
The unit expression w before the coloniThe number is the frequency. The frequency of the “area is” + quantity expression pattern is 80 times in total.
[0050]
Next, the appearance probability calculation means 230 uses the extracted unit representations w.iThe appearance frequency n in the corpus is calculated (step S26). Each unit representation wiThe appearance frequency n of the corpus is, for example, square meters: 17,510 times, hectares: 8,088 times, square kilometers: 247 times, doubles: 41,686 times, minutes: 730, 790 times, tatami mats: 4,829 times, No .: 124,233 times, square centimeter: 20 times.
[0051]
In addition, the appearance probability calculation means 230 actually uses each unit representation w in the corpus.iAnd the frequency of occurrence of the main noun co-occurring xiIs calculated (step S27). For example, when the main noun is “area”, the unit expression of the quantity expression in the pattern of “area is” + quantity expression is wiSuppose that That is, each unit representation w in the corpusiOf the n occurrence patterns, the quantity expression and the “area” co-occurred in the pattern ““ area is ”+ quantity expression” is xiIt is. For example, in the case of a square meter, xi= 41 times.
[0052]
Next, using the binomial distribution, we hypothesized that the occurrence probability p 'of the "area" when co-occurring with the "square meter" = the general appearance probability p of the "area" without such conditions Perform the test. That is, first, the probability distribution calculating means 231 uses the main noun and the unit representation w in the corpus based on the calculated general appearance probability p of the main noun.iThe probability distribution of the number of occurrences of and co-occurring is calculated (step S28). All individual trials are independent and a unit representation wiWhen n appears n times, the probability distribution of the number of times the main noun with the general appearance probability p appears is obtained. Such a probability distribution is expressed as follows: r (r = 0, 1, 2, 3... N)
nCrpr(1-p)nr
And a binomial distribution as shown in FIG. 8 is obtained.
[0053]
Next, the unnecessary unit representation removing unit 232 determines the main noun and each unit representation w in the calculated probability distribution.iThe number of occurrences of and co-occurs is xiThe probability (test probability) P that is greater than or equal to the number of times is calculated (step S29). In FIG. 8, the probability of the hatched portion is P. For example, in an appearance scene of n = 17510 times of “square meter”, an “area” with a general appearance probability p = about 0.00001937 is xi= Find the test probability P that appears 41 times or more.
[0054]
In the embodiment of the present invention, the appearance probability p ′ of “area” when co-occurring with “square meter” and the general appearance probability p of “area” when there is no such condition may be inherently different. The occurrence probability p ′ of “area” when co-occurring with “square meter” is used as the general appearance probability p of “area” when there is no such condition. Yes.
[0055]
Therefore, if the value of the test probability P is sufficiently small, the hypothesis that p ′ = p is rejected, and it can be determined that p ′ and p are different. In the embodiment of the present invention, “xiWhen the test probability P is obtained as in the case of “number of times or more”, only one region of the probability distribution is used. Furthermore, the area used is “xiSince it is the right one-sided test using the region of the larger case such as “more than times”, if the value of P is sufficiently small, it can be concluded that p ′> p. However, this determination does not necessarily mean that the determination is correct, and only the probability P is a determination that may be erroneous.
[0056]
Unnecessary unit representation removing means 232 has a sufficiently small value of P, and the occurrence probability p ′ of “area” when co-occurring with “square meter” is a general appearance of “area” when there is no such condition. If it can be concluded that the probability is greater than p, “square meter” is determined to be a useful unit expression because the co-occurrence of “square meter” and “area” is not a coincidence but an inevitable co-occurrence.
[0057]
On the other hand, when the value of the test probability P is not sufficiently small and co-occurs with “square meter”, the appearance probability p ′ of “area” is the general appearance probability p of “area” when there is no such condition. If it is not possible to conclude that it is larger than this, the co-occurrence of “square meter” and “area” is not inevitable, and it is likely that it is a coincidence. Therefore, it should not be used in subsequent question answering system processing.
[0058]
That is, the unnecessary unit representation removing unit 232 uses each unit representation w.iIt is determined whether the value of the test probability P is less than a preset threshold value (step S30), a unit expression with a value of P less than the threshold value is determined as a useful unit expression (step S32), and the value of P is greater than or equal to the threshold value The unit expression is determined as an unnecessary unit expression and is removed from the unit expression database 18 (step S31), and the process is terminated.
[0059]
When the value of P is actually calculated in the above example, square meter: 0.00000000, hectare: 0.00000000, square kilometer: 0.00000000, double: 0.193992510, minute: 0.99999233, tatami mat: 0.089307732 : 0.90988811 and square centimeter: 0.00038737. This calculation can be performed by using the binomial distribution theory as described above. Here, calculation was performed using the subroutine pbinom of the free software Math-CDF-0.1.
[0060]
Here, for example, when 0.1 is used as a threshold value that means that the value of P is sufficiently small,
Square meter: 0.00000000
Ha: 0.00000000
Square kilometers: 0.00000000
Tatami mat: 0.08930732
Square centimeter: 0.00038737
Is a useful unit expression, ie a valid co-occurrence word,
Double: 0.19392510
Minute: 0.9999923
Number: 0.90988811
Is an unnecessary unit expression, that is, an invalid co-occurrence word.
[0061]
In fact, square meters: 0.00000000, hectares: 0.00000000, square kilometers: 0.00000000, tatami mats: 0.08930732, square centimeters: 0.00038737 can be used as a unit representation of area, but times: 0.19392510, minutes: 0.99999233, number: 0.90988811 is an illegal expression as a unit expression of area.
[0062]
In this way, the unit expression determined to be an appropriate unit expression is used to estimate the quantity expression as the solution to the question sentence.
[0063]
In the first embodiment of the present invention, it is assumed that the appearance probability p ′ of “area” when co-occurring with “square meter” is equal to the general appearance probability p of “area”, and the value of P A right-sided test is performed based on the size of, and it is concluded that the above hypothesis can be rejected, that is, p ′> p, and a unit expression that can be concluded as p ′> p is a useful unit expression, and p ′ Unit expressions that cannot be concluded as> p have been determined to be unnecessary unit expressions. However, in the present invention, the left one-sided test is performed as follows to conclude whether p ′ <p, and p ′ <p is concluded. The unit expression that can be attached is an unnecessary unit expression, and the unit expression that cannot be concluded as p ′ <p can also be determined as a useful unit expression.
[0064]
In the second embodiment of the present invention, first, the general appearance probability p of the expression “area” and the number of appearances n of each unit expression are obtained as in the first embodiment. In the example of “square meter”, for example, n = 17,510.
[0065]
Of these n patterns, the quantity expression and the “area” co-occurrence with the pattern ““ area is ”+ quantity expression” is expressed as xiAnd For example, in the case of a square meter, xi= 41.
[0066]
Next, assuming that each trial is all independent, the “area” of the general occurrence probability p is xiThe probability (test probability) P that appears less than once is obtained. In other words, “square meter” appears n times, and the “area” that appears at a probability of p at one time is co-occurred with this “n square meters”.iThe probability (test probability) P that is less than or equal to the number of times is obtained.
[0067]
Here, the appearance probability p ′ of “area” when co-occurring with “square meter” and the general appearance probability p of “area” when there is no such condition are the same, although they may be inherently different. The general appearance probability p of “area” when there is no such condition is used as the appearance probability p ′ of “area” when co-occurring with “square meter”.
[0068]
Therefore, if the value of the test probability P is sufficiently small, the hypothesis that p ′ = p is rejected, and it can be determined that p ′ and p are different. In the embodiment of the present invention, “xiWhen the test probability P is obtained as in the case of “no more times”, only one region of the probability distribution is used. Furthermore, the area used is “xiSince it is a left one-sided test using the smaller region such as “less than or equal to times”, if the value of P is sufficiently small, it can be concluded that p ′ <p. However, this determination does not necessarily mean that the determination is correct, and only the probability P is a determination that may be erroneous.
[0069]
Unnecessary unit representation removing means 232 has a sufficiently small value of P, and the occurrence probability p ′ of “area” when co-occurring with “square meter” is a general appearance of “area” when there is no such condition. If it can be concluded that the probability is smaller than p, it is determined that the co-occurrence of “square meter” and “area” is a coincidence, and “square meter” is determined as an unnecessary unit representation, and is removed from the unit representation database 18.
[0070]
On the other hand, when the value of the test probability P is not sufficiently small and co-occurs with “square meter”, the appearance probability p ′ of “area” is the general appearance probability p of “area” when there is no such condition. If it is not possible to conclude that it is smaller than this, the co-occurrence of “square meter” and “area” is not a coincidence but is likely to be an inevitable co-occurrence. Then, using the unit expression judged to be useful, the quantity expression estimating means 24 estimates the quantity expression as a solution to the question sentence.
[0071]
In summary, the smaller the value of P, the more unnecessary unit expression is judged, and the larger the value of P, the more useful unit expression is judged.
[0072]
Actually calculating the value of P in the above example,
Square meter: 1.00000000
Hectare: 1.00000000
Square kilometers: 1.00000000
Double: 0.95148679
Minute: 0.00008198
Tatami mat: 0.99588861
No .: 0.30698656
Square centimeter: 0.99999993
It becomes.
[0073]
This calculation can be done using binomial distribution theory. Here, calculation was performed using the subroutine pbinom of the free software Math-CDF-0.1.
[0074]
Here, for example, when 0.99 is used as a threshold value that means that the value of P is sufficiently small, a unit expression having a value of P less than 0.99 is an unnecessary unit expression and an unnecessary co-occurrence word. Judging that there is a unit expression with a P value of 0.99 or more, it is highly likely that it will co-occur with the main noun “area”, and that it is a useful unit expression and is a valid co-occurrence word. To do. That is,
Square meter: 1.00000000
Hectare: 1.00000000
Square kilometers: 1.00000000
Tatami mat: 0.99588861
Square centimeter: 0.9999993
Is a valid co-occurrence word,
Double: 0.95148679
Minute: 0.00008198
No .: 0.30698656
Is considered an invalid co-occurrence word.
[0075]
Actually, square meter: 1.00000000, hectare: 1.00000000, square kilometer: 1.00000000, tatami mat: 0.99588861, square centimeter: 0.9999993 can be used as a unit representation of area, but times: 0.951448679, minutes: 0 00008198, No .: 0.30698656 is an illegal expression as a unit expression of area.
[0076]
Only the valid unit expressions obtained in this way are used to estimate the quantity expression as the solution of the question sentence.
[0077]
FIG. 5 is a diagram showing an example of the details of the processing flow for removing unnecessary unit expressions in the second embodiment of the present invention, and shows steps S41 to S52 which are details of step S3 in FIG. Is. In the second embodiment of the present invention, steps other than step 3 in FIG. 3 are the same as those in the first embodiment.
[0078]
As shown in FIG. 5, in the second embodiment of the present invention, in step S49, main nouns and unit representations w in the calculated probability distribution.iThe number of occurrences of and co-occurs is xiA probability P (test probability) that is less than or equal to the number of times, and if the value of P is less than the threshold value in step S52, it is determined that the unit expression is unnecessary and is removed from the unit expression database; Unlike the first embodiment of the present invention shown in FIG. 4 in that it is determined that the unit expression is useful when value <threshold, the other steps in FIG. 5 are the same as in the first embodiment of the present invention. It is.
[0079]
Based on the gist of the present invention, various modifications are possible as follows.
[0080]
In the first embodiment and the second embodiment of the present invention, the general appearance probability is p, and the appearance probability of “area” as the main noun in the corpus is used. As a general appearance probability p in, the unit expression wiA similar test can be performed even when n is the number of occurrences of the main noun “area” in the corpus.
[0081]
That is, the left one-sided test is performed with the hypothesis that the appearance probability p ′ of “square meter” when co-occurring with “area” is equal to the general appearance probability p of “square meter”, and “square meter” appears n times The number of times it co-occurs with the main noun “area” is xiIf the value of the test probability P that is less than or equal to 41 times (for example, 41 times) is less than a threshold value (for example, 0.99), it is concluded that p ′ <p and “square meter” is determined to be an unnecessary unit expression. When the value of the test probability P is equal to or greater than the threshold value and it cannot be concluded that p ′ <p, it can be determined as a useful unit expression.
[0082]
For example, in the case of “square meter”,
p = 17510/409502077, n = 7933,
P = 1.00000000> 0.99
Since p ′ <p cannot be determined, “square meter” can be determined to be a useful unit expression.
[0083]
FIG. 6 shows an example of the details of the processing flow for removing unnecessary unit expressions according to the third embodiment of the present invention that performs such left-side test. FIG. 6 shows steps S81 to S92 which are details of step S3 in FIG. As shown in FIG. 6, in the third embodiment of the present invention, in step S84, each unit representation w in the corpus is displayed.iIs different from the second embodiment of the present invention shown in FIG. 5 in that the general appearance probability p is calculated and the appearance frequency n in the corpus of the main noun is calculated in step S86.
[0084]
Of course, in the present invention, a right one-sided test is performed with the hypothesis that the appearance probability p ′ of “square meter” when co-occurring with “area” is equal to the general appearance probability p of “square meter”. Is the number of times that appears co-occurring with the “area” that appears n timesiIf the value of the test probability P that is greater than or equal to the number of times is less than the threshold value, it is concluded that p ′> p and is a useful unit expression, the value of the test probability P is greater than the threshold value, and p If it cannot be concluded that '> p, it can also be determined as an unnecessary unit expression.
[0085]
FIG. 7 shows an example of the details of the processing flow for removing unnecessary unit expressions according to the fourth embodiment of the present invention that performs such right-side test. FIG. 7 shows steps S61 to S72 which are details of step S3 of FIG. As shown in FIG. 7, in the fourth embodiment of the present invention, each unit representation w in the corpus in step S64.i4 is different from the first embodiment of the present invention shown in FIG. 4 in that the general appearance probability p is calculated and the appearance frequency n in the corpus of the main noun is calculated in step S66.
[0086]
In the present invention, a test using the following hypergeometric distribution can also be performed.
[0087]
What is hypergeometric distribution?
hg (N, k, n, m) = C (K, m) × C (N−K, nm) / C (N, n)
The distribution can be expressed in the form of
[0088]
However, C is a symbol C (A, B) = A! / B! / (BA)! And hg (N, k, n, m) is "When there are K red balls in N balls, a red ball is exactly m in n balls taken out arbitrarily. “Probability of being included”.
[0089]
Here, hgs (N, K, n, k) = Σhg (N, K, n, m)
Then, hgs (N, K, n, k) is "When there are K red balls in N balls, there are k or more red balls in n balls taken out arbitrarily. Probability. Note that Σhg (N, K, n, m) means the sum of hg (N, k, n, m) for m where m ≧ k.
[0090]
Here, N, K, n, and k are interpreted as follows.
[0091]
N: Size of corpus
K: Appearance frequency of “area”
n: Appearance frequency of a certain unit expression
k: “Area” and the number of co-occurrence of a unit expression
According to the above interpretation, hgs (N, K, n, k) is obtained by extracting “n” unit representations of interest when there are K representations of “area” in an N-size corpus. , Of the n unit representations, it means “probability of occurrence of an event where the unit representation co-occurs” with “k” or more.
[0092]
In the embodiment of the present invention, the case where p = K / N is regarded as a general appearance probability of “area” is treated as being divided into K and N without putting them into K / N form. It corresponds to that. In the method using the hypergeometric distribution, there are few assumptions and the accuracy is high with a method with few approximations because K and N are not divided into p = K / N.
[0093]
In this method, the smaller the hgs (N, K, n, k), the more appropriate the co-occurrence of “area” and unit expression can be determined. The larger the hgs (N, K, n, k), the “ Co-occurrence of “area” and unit expression is a coincidence and can be determined to be invalid.
[0094]
Therefore, in the present invention, the unnecessary unit expression removing unit 232 determines that a unit expression whose hgs (N, K, n, k) is smaller than a certain threshold value is a useful unit expression, and represents the quantity expression as a solution to the question sentence. It is used for estimation, and hgs (N, K, n, k) is determined to be an unnecessary unit expression that is equal to or higher than a certain threshold and is removed.
[0095]
In the fifth embodiment of the present invention, right-side test is performed using the hypergeometric distribution described above. FIG. 9 is a diagram showing an example of the details of the processing flow for removing unnecessary unit expressions in the fifth embodiment of the present invention, and shows steps S101 to S111 which are details of step S3 of FIG. It is. The other steps in FIG. 3 are the same as those in the first embodiment of the present invention.
[0096]
As shown in FIG. 9, in the fifth embodiment of the present invention, it is determined whether the answer to the question sentence is a quantity expression (step S101). If the answer is not a quantity expression, the process goes to step S5 in FIG. If the answer is a quantity expression, it is determined whether the question sentence has a unit expression (step S102).
[0097]
If the question sentence has a unit expression, the process is terminated and the process proceeds to step S4 in FIG. 3. If the question sentence does not have a unit expression, the main noun in the question sentence is determined from the question sentence information. Is certified (step S103).
[0098]
Next, the appearance frequency K of the main noun in the corpus is calculated (step S104). Then, a combination pattern in which the main noun and the quantity expression have a dependency relationship is extracted from the corpus, and one or a plurality of unit expressions w attached to the quantity expression from the extracted combination pattern.iIs extracted and recorded in the unit representation database 18 (step S105). And each extracted unit representation wiThe appearance frequency n in the corpus is calculated (step S106).
[0099]
Next, each unit expression wiAnd the number of times k and the main noun appear together are calculated (step S107). Next, the main nouns and each unit expression w in the hypergeometric distributioniThe test probability P = hgs (N, K, n, k) that the number of occurrences of and co-occurs is k times or more is calculated (step S108). N is the size of the corpus.
[0100]
Then, it is determined whether P value <threshold value (step S109). If P value <threshold value, it is determined as a useful unit expression (step S111). The unit representation is determined to be removed from the unit representation database (step S110).
[0101]
In the present invention, the left one-sided test can also be performed using the hypergeometric distribution. FIG. 10 shows an example of the details of the processing flow for removing unnecessary unit expressions in the sixth embodiment of the present invention in which the left one-side test is performed using the hypergeometric distribution. FIG. 10 shows steps S121 to S131 which are details of step S3 in FIG. In the sixth embodiment of the present invention, the main noun and each unit expression w in the hypergeometric distribution in step S128 of FIG.iThis is useful when calculating the test probability P = hgs (N, K, n, k) where the number of occurrences of and co-occurrence is equal to or less than k times, and in step S130, if the value of P is not less than the threshold value. In the fifth embodiment of the present invention shown in FIG. 9, the unit representation is determined to be an unnecessary unit representation and removed from the unit representation database if the value of P <threshold in step S131. Different from form.
[0102]
In the fifth embodiment or the sixth embodiment of the present invention, K = the frequency of appearance of the main noun and n = the frequency of appearance of each unit expression. Yes, K = frequency of appearance of each unit expression, and n = number of appearances of main nouns.
[0103]
In all the embodiments of the present invention described above, this corresponds to performing a certain ratio test. Is the co-occurrence of the main noun and the unit expression appearing at a number greater than or greater than the number of co-occurrence of the main noun and the unit expression expected from the general occurrence probability of the main noun and the unit expression? I will test it.
[0104]
The present invention can also be realized by a statistical test method capable of performing a ratio test such as AIC or Z-score.
[0105]
It should be noted that the present invention can also be used for assisting the creation of rules or tables manually described in the prior art.
[0106]
【The invention's effect】
By using the present invention, when a solution to a question sentence is a quantity expression, a method and a system capable of accurately determining whether or not a unit expression appropriate as a unit expression attached to the quantity expression is provided. It becomes possible.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating an example of a configuration of a question answering system using a statistical test.
FIG. 2 is an example of a configuration diagram of an unnecessary co-occurrence word removal system.
FIG. 3 is a diagram showing an example of a question answering process flow using a statistical test.
FIG. 4 is a diagram illustrating an example of details of an unnecessary unit expression removal processing flow;
FIG. 5 is a diagram illustrating an example of details of an unnecessary unit expression removal processing flow;
FIG. 6 is a diagram illustrating an example of details of an unnecessary unit expression removal processing flow;
FIG. 7 is a diagram illustrating an example of details of an unnecessary unit expression removal processing flow;
FIG. 8 is a diagram showing a binomial distribution.
FIG. 9 is a diagram illustrating an example of details of an unnecessary unit expression removal processing flow;
FIG. 10 is a diagram illustrating an example of details of an unnecessary unit representation removal processing flow;
[Explanation of symbols]
1 Question answering system using statistical tests
11 Unnecessary co-occurrence word removal system
12 Question text input part
13 Keyword extraction / information search section
14 answer extraction part
15 Answer output section
16 database
17 Expression guessing unit
18 Unit representation database
20 Quantity expression judging means
21 pronoun recognition means
22 Unit expression extraction means
23 Test means
24 Quantity expression guessing means
230 Appearance probability calculation means
231 Probability distribution calculation means
232 Means for removing unnecessary unit expressions

Claims (7)

自然言語による質問文を入力し,データベースに記憶された電子化テキスト情報中の文との照合によって解を生成して出力する質問応答システムであって,
前記質問文を入力する質問文入力手段と,
入力された質問文の解が数量表現である場合に,統計的検定を用いて,前記電子化テキスト情報において出現する,前記質問文に含まれる,形態素解析と文パターンを用いた所定の規則に基づいて認定される特定の名詞と数量表現との組み合わせパターンから単位表現を抽出し,抽出された単位表現が前記質問文中の特定の名詞と共起して出現する可能性を示す確率値を算出し,算出した前記確率値が閾値以上かによって,前記質問文の解としての数量表現の決定に用いる単位表現を決定し,決定した単位表現を含む数量表現を決定する手段と,
前記決定された数量表現を用いて前記質問文の解を抽出する解答抽出手段とを備える
ことを特徴とする統計的検定を利用した質問応答システム。
A question answering system that inputs a question sentence in a natural language, generates a solution by collation with sentences in digitized text information stored in a database, and outputs it.
A question sentence input means for inputting the question sentence;
When the answer to the input question sentence is a quantity expression, a statistical test is applied to the predetermined rule using the morphological analysis and sentence pattern included in the question sentence that appears in the digitized text information. A unit expression is extracted from a combination pattern of a specific noun and quantity expression that are recognized based on it, and a probability value indicating the possibility that the extracted unit expression appears together with the specific noun in the question sentence is calculated. Means for determining a unit expression used to determine a quantity expression as a solution to the question sentence according to whether the calculated probability value is equal to or greater than a threshold, and determining a quantity expression including the determined unit expression;
A question answering system using a statistical test, comprising: answer extracting means for extracting a solution of the question sentence using the determined quantity expression.
自然言語による質問文を入力し,データベースに記憶された電子化テキスト情報中の文との照合によって解を生成して出力する質問応答システムであって,
前記質問文を入力する質問文入力手段と,
前記質問文に数量表現を問い合わせる単語が含まれるかどうかにより,前記質問文の解が数量表現であるかを判断する数量表現判断手段と,
形態素解析と文パターンを用いた所定の規則に基づいて,前記質問文に含まれる特定の名詞を認定する手段と,
前記数量表現判断手段が質問文の解が数量表現であると判断した場合に,前記電子化テキスト情報から前記認定された特定の名詞と数量表現とが係り受け関係である組み合わせパターンを抽出し,抽出された前記組み合わせパターンから前記数量表現に付されている1又は複数の単位表現を抽出する単位表現抽出手段と,
前記電子化テキスト情報における前記特定の名詞と前記抽出された各単位表現の出現回数を算出し,算出した出現回数の情報に基づいて前記特定の名詞の一般的出現確率を算出する出現確率算出手段と,
前記算出した特定の名詞の一般的出現確率に基づいて,前記電子化テキスト情報において前記各単位表現が出現するパターンのうち前記特定の名詞が前記各単位表現と共起して出現する回数の確率分布を算出する確率分布算出手段と,
前記算出した確率分布における前記特定の名詞が前記各単位表現と共起して出現する回数が前記特定の名詞と数量表現とが係り受け関係である組み合わせパターンにおける前記数量表現に付されている各単位表現の出現回数以上である確率である検定確率を算出し,前記単位表現抽出手段が抽出した1又は複数の単位表現のうち,算出した前記検定確率が予め設定した閾値以上の単位表現を除去する不要単位表現除去手段と,
前記検定確率が閾値未満の単位表現を含む数量表現を決定する手段と,
前記質問文中からキーワードを抽出し,抽出したキーワードを用いて前記電子化テキスト情報から前記質問文の解が記述された情報を取り出す手段と,
前記決定された数量表現を用いて,前記質問文の解が記述された情報から前記質問文の解を抽出する解答抽出手段とを備える
ことを特徴とする統計的検定を利用した質問応答システム。
A question answering system that inputs a question sentence in a natural language, generates a solution by collation with sentences in digitized text information stored in a database, and outputs it.
A question sentence input means for inputting the question sentence;
A quantity expression judging means for judging whether or not a solution of the question sentence is a quantity expression according to whether or not the question sentence includes a word for inquiring a quantity expression;
Means for identifying a specific noun included in the question sentence based on a predetermined rule using morphological analysis and sentence patterns ;
When the quantity expression determining means determines that the answer to the question sentence is a quantity expression, a combination pattern in which the identified specific noun and the quantity expression are in a dependency relationship is extracted from the digitized text information; Unit expression extracting means for extracting one or a plurality of unit expressions attached to the quantity expression from the extracted combination pattern;
Appearance probability calculating means for calculating the number of appearances of the specific noun and the extracted unit expressions in the digitized text information, and calculating a general appearance probability of the specific noun based on the calculated number of appearance information When,
Based on the calculated general appearance probability of the specific noun, the probability of the number of appearances of the specific noun co-occurring with the unit representation in the digitized text information A probability distribution calculating means for calculating a distribution;
The number of times that the specific noun in the calculated probability distribution co-occurs with each unit expression is attached to the quantity expression in the combination pattern in which the specific noun and the quantity expression have a dependency relationship. A test probability that is a probability that is equal to or greater than the number of appearances of unit expressions is calculated, and unit expressions whose calculated test probabilities are equal to or higher than a preset threshold are removed from one or a plurality of unit expressions extracted by the unit expression extraction unit. Means for removing unnecessary unit expressions,
Means for determining a quantity expression including a unit expression whose test probability is less than a threshold;
Means for extracting a keyword from the question sentence, and extracting information describing a solution of the question sentence from the digitized text information using the extracted keyword;
A question answering system using a statistical test, comprising: answer extracting means for extracting the answer of the question sentence from information in which the answer of the question sentence is described using the determined quantity expression.
自然言語による質問文を入力し,データベースに記憶された電子化テキスト情報中の文との照合によって解を生成して出力する質問応答システムであって,
前記質問文を入力する質問文入力手段と,
前記質問文に数量表現を問い合わせる単語が含まれるかどうかにより,前記質問文の解が数量表現であるかを判断する数量表現判断手段と,
形態素解析と文パターンを用いた所定の規則に基づいて,前記質問文に含まれる特定の名詞を認定する手段と,
前記数量表現判断手段が質問文の解が数量表現であると判断した場合に,前記電子化テキスト情報から前記認定された特定の名詞と数量表現とが係り受け関係である組み合わせパターンを抽出し,抽出された前記組み合わせパターンから前記数量表現に付されている1又は複数の単位表現を抽出する単位表現抽出手段と,
前記電子化テキスト情報における前記特定の名詞と前記抽出された各単位表現の出現回数を算出し,算出した出現回数の情報に基づいて前記各単位表現の一般的出現確率を算出する出現確率算出手段と,
前記各単位表現の一般的出現確率に基づいて,前記電子化テキスト情報において前記特定の名詞が出現するパターンのうち前記各単位表現が前記特定の名詞と共起して出現する回数の確率分布を算出する確率分布算出手段と,
前記算出した確率分布における前記各単位表現が前記特定の名詞と共起して出現する回数が前記特定の名詞と数量表現とが係り受け関係である組み合わせパターンにおいて前記数量表現に付されている前記各単位表現と共起して出現する前記数量表現の出現回数以上である確率である検定確率を算出し,前記単位表現抽出手段が抽出した1又は複数の単位表現のうち,算出した前記検定確率が予め設定した閾値以上の単位表現を除去する不要単位表現除去手段と,
前記検定確率が閾値未満の単位表現を含む数量表現を決定する手段と,
前記質問文中からキーワードを抽出し,抽出したキーワードを用いて前記電子化テキスト情報から前記質問文の解が記述された情報を取り出す手段と,
前記決定された数量表現を用いて,前記質問文の解が記述された情報から前記質問文の解を抽出する解答抽出手段とを備える
ことを特徴とする統計的検定を利用した質問応答システム。
A question answering system that inputs a question sentence in a natural language, generates a solution by collation with sentences in digitized text information stored in a database, and outputs it.
A question sentence input means for inputting the question sentence;
A quantity expression judging means for judging whether or not a solution of the question sentence is a quantity expression according to whether or not the question sentence includes a word for inquiring a quantity expression;
Means for identifying a specific noun included in the question sentence based on a predetermined rule using morphological analysis and sentence patterns ;
When the quantity expression determining means determines that the answer to the question sentence is a quantity expression, a combination pattern in which the identified specific noun and the quantity expression are in a dependency relationship is extracted from the digitized text information; Unit expression extracting means for extracting one or a plurality of unit expressions attached to the quantity expression from the extracted combination pattern;
Appearance probability calculating means for calculating the number of appearances of the specific noun and the extracted unit expressions in the digitized text information, and calculating a general appearance probability of the unit expressions based on the calculated number of appearance information When,
Based on the general appearance probability of each unit expression, a probability distribution of the number of times each unit expression appears together with the specific noun among patterns in which the specific noun appears in the digitized text information A probability distribution calculating means for calculating;
The number of times that each unit expression in the calculated probability distribution co-occurs with the specific noun is attached to the quantity expression in a combination pattern in which the specific noun and the quantity expression have a dependency relationship. A test probability that is a probability that is equal to or greater than the number of appearances of the quantity expression that co-occurs with each unit expression is calculated, and the calculated test probability is one or more of the unit expressions extracted by the unit expression extraction unit Unnecessary unit representation removing means for removing unit representations that are equal to or greater than a preset threshold value;
Means for determining a quantity expression including a unit expression whose test probability is less than a threshold;
Means for extracting a keyword from the question sentence, and extracting information describing a solution of the question sentence from the digitized text information using the extracted keyword;
A question answering system using a statistical test, comprising: answer extracting means for extracting the answer of the question sentence from information in which the answer of the question sentence is described using the determined quantity expression.
自然言語による質問文を入力し,データベースに記憶された電子化テキスト情報中の文との照合によって解を生成して出力する質問応答システムであって,
前記質問文を入力する質問文入力手段と,
前記質問文に数量表現を問い合わせる単語が含まれるかどうかにより,前記質問文の解が数量表現であるかを判断する数量表現判断手段と,
形態素解析と文パターンを用いた所定の規則に基づいて,前記質問文に含まれる特定の名詞を認定する手段と,
前記数量表現判断手段が質問文の解が数量表現であると判断した場合に,前記電子化テキスト情報から前記認定された特定の名詞と数量表現とが係り受け関係である組み合わせパターンを抽出し,抽出された前記組み合わせパターンから前記数量表現に付されている1又は複数の単位表現を抽出する単位表現抽出手段と,
前記電子化テキスト情報における前記特定の名詞と前記抽出された各単位表現の出現回数を算出し,算出した出現回数の情報に基づいて前記特定の名詞の一般的出現確率を算出する出現確率算出手段と,
前記算出した特定の名詞の一般的出現確率に基づいて,前記電子化テキスト情報において前記各単位表現が出現するパターンのうち前記特定の名詞が前記各単位表現と共起して出現する回数の確率分布を算出する確率分布算出手段と,
前記算出した確率分布における前記特定の名詞が前記各単位表現と共起して出現する回数が前記特定の名詞と数量表現とが係り受け関係である組み合わせパターンにおける前記数量表現に付されている各単位表現の出現回数以下である確率である検定確率を算出し,前記単位表現抽出手段が抽出した1又は複数の単位表現のうち,算出した前記検定確率が予め設定した閾値未満の単位表現を除去する不要単位表現除去手段と,
前記検定確率が閾値以上の単位表現を含む数量表現を決定する手段と,
前記質問文中からキーワードを抽出し,抽出したキーワードを用いて前記電子化テキスト情報から前記質問文の解が記述された情報を取り出す手段と,
前記決定された数量表現を用いて,前記質問文の解が記述された情報から前記質問文の解を抽出する解答抽出手段とを備える
ことを特徴とする統計的検定を利用した質問応答システム。
A question answering system that inputs a question sentence in a natural language, generates a solution by collation with sentences in digitized text information stored in a database, and outputs it.
A question sentence input means for inputting the question sentence;
A quantity expression judging means for judging whether or not a solution of the question sentence is a quantity expression according to whether or not the question sentence includes a word for inquiring a quantity expression;
Means for identifying a specific noun included in the question sentence based on a predetermined rule using morphological analysis and sentence patterns ;
When the quantity expression determining means determines that the answer to the question sentence is a quantity expression, a combination pattern in which the identified specific noun and the quantity expression are in a dependency relationship is extracted from the digitized text information; Unit expression extracting means for extracting one or a plurality of unit expressions attached to the quantity expression from the extracted combination pattern;
Appearance probability calculating means for calculating the number of appearances of the specific noun and the extracted unit expressions in the digitized text information, and calculating a general appearance probability of the specific noun based on the calculated number of appearance information When,
Based on the calculated general appearance probability of the specific noun, the probability of the number of appearances of the specific noun co-occurring with the unit representation in the digitized text information A probability distribution calculating means for calculating a distribution;
The number of times that the specific noun in the calculated probability distribution co-occurs with each unit expression is attached to the quantity expression in the combination pattern in which the specific noun and the quantity expression have a dependency relationship. A test probability that is a probability that the number of occurrences of unit expressions is less than or equal to the number of occurrences is calculated, and unit expressions whose calculated test probabilities are less than a preset threshold are removed from one or more unit expressions extracted by the unit expression extraction unit Means for removing unnecessary unit expressions,
Means for determining a quantity expression including a unit expression having a test probability equal to or greater than a threshold;
Means for extracting a keyword from the question sentence, and extracting information describing a solution of the question sentence from the digitized text information using the extracted keyword;
A question answering system using a statistical test, comprising: answer extracting means for extracting the answer of the question sentence from information in which the answer of the question sentence is described using the determined quantity expression.
自然言語による質問文を入力し,データベースに記憶された電子化テキスト情報中の文との照合によって解を生成して出力する質問応答システムであって,
前記質問文を入力する質問文入力手段と,
前記質問文に数量表現を問い合わせる単語が含まれるかどうかにより,前記質問文の解が数量表現であるかを判断する数量表現判断手段と,
形態素解析と文パターンを用いた所定の規則に基づいて,前記質問文に含まれる特定の名詞を認定する手段と,
前記数量表現判断手段が質問文の解が数量表現であると判断した場合に,前記電子化テキスト情報から前記認定された特定の名詞と数量表現とが係り受け関係である組み合わせパターンを抽出し,抽出された前記組み合わせパターンから前記数量表現に付されている1又は複数の単位表現を抽出する単位表現抽出手段と,
前記電子化テキスト情報における前記特定の名詞と前記抽出された各単位表現の出現回数を算出し,算出した出現回数の情報に基づいて前記各単位表現の一般的出現確率を算出する出現確率算出手段と,
前記各単位表現の一般的出現確率に基づいて,前記電子化テキスト情報において前記特定の名詞が出現するパターンのうち前記各単位表現が前記特定の名詞と共起して出現する回数の確率分布を算出する確率分布算出手段と,
前記算出した確率分布における前記各単位表現が前記特定の名詞と共起して出現する回数が前記特定の名詞と数量表現とが係り受け関係である組み合わせパターンにおいて前記数量表現に付されている前記各単位表現と共起して出現する前記数量表現の出現回数以下である確率である検定確率を算出し,前記単位表現抽出手段が抽出した1又は複数の単位表現のうち,算出した前記検定確率が予め設定した閾値未満の単位表現を除去する不要単位表現除去手段と,
前記検定確率が閾値以上の単位表現を含む数量表現を決定する手段と,
前記質問文中からキーワードを抽出し,抽出したキーワードを用いて前記電子化テキスト情報から前記質問文の解が記述された情報を取り出す手段と,
前記決定された数量表現を用いて,前記質問文の解が記述された情報から前記質問文の解を抽出する解答抽出手段とを備える
ことを特徴とする統計的検定を利用した質問応答システム。
A question answering system that inputs a question sentence in a natural language, generates a solution by collation with sentences in digitized text information stored in a database, and outputs it.
A question sentence input means for inputting the question sentence;
A quantity expression judging means for judging whether or not a solution of the question sentence is a quantity expression according to whether or not the question sentence includes a word for inquiring a quantity expression;
Means for identifying a specific noun included in the question sentence based on a predetermined rule using morphological analysis and sentence patterns ;
When the quantity expression determining means determines that the answer to the question sentence is a quantity expression, a combination pattern in which the identified specific noun and the quantity expression are in a dependency relationship is extracted from the digitized text information; Unit expression extracting means for extracting one or a plurality of unit expressions attached to the quantity expression from the extracted combination pattern;
Appearance probability calculating means for calculating the number of appearances of the specific noun and the extracted unit expressions in the digitized text information, and calculating a general appearance probability of the unit expressions based on the calculated number of appearance information When,
Based on the general appearance probability of each unit expression, a probability distribution of the number of times each unit expression appears together with the specific noun among patterns in which the specific noun appears in the digitized text information A probability distribution calculating means for calculating;
The number of times that each unit expression in the calculated probability distribution co-occurs with the specific noun is attached to the quantity expression in a combination pattern in which the specific noun and the quantity expression have a dependency relationship. A test probability that is a probability that is equal to or less than the number of appearances of the quantity expression appearing together with each unit expression is calculated, and the calculated test probability is one or more of the unit expressions extracted by the unit expression extraction unit. Unnecessary unit representation removing means for removing unit representations of which is less than a preset threshold;
Means for determining a quantity expression including a unit expression having a test probability equal to or greater than a threshold;
Means for extracting a keyword from the question sentence, and extracting information describing a solution of the question sentence from the digitized text information using the extracted keyword;
A question answering system using a statistical test, comprising: answer extracting means for extracting the answer of the question sentence from information in which the answer of the question sentence is described using the determined quantity expression.
自然言語による質問文を入力し,データベースに記憶された電子化テキスト情報中の文との照合によって解を生成して出力する質問応答システムであって,
前記質問文を入力する質問文入力手段と,
前記質問文に数量表現を問い合わせる単語が含まれるかどうかにより,前記質問文の解が数量表現であるかを判断する数量表現判断手段と,
形態素解析と文パターンを用いた所定の規則に基づいて,前記質問文に含まれる特定の名詞を認定する手段と,
前記数量表現判断手段が質問文の解が数量表現であると判断した場合に,前記電子化テキスト情報から前記認定された特定の名詞と数量表現とが係り受け関係である組み合わせパターンを抽出し,抽出された前記組み合わせパターンから前記数量表現に付されている1又は複数の単位表現を抽出する単位表現抽出手段と,
前記電子化テキスト情報における前記特定の名詞と前記抽出された各単位表現の出現回数を算出する手段と,
超幾何分布を用いて,超幾何分布における前記特定の名詞が前記各単位表現と共起して出現する回数が前記特定の名詞と数量表現とが係り受け関係である組み合わせパターンにおける前記数量表現に付されている各単位表現の出現回数以上である確率である検定確率を算出し,前記単位表現抽出手段が抽出した1又は複数の単位表現のうち,算出した前記検定確率が予め設定した閾値以上の単位表現を除去する不要単位表現除去手段と,
前記検定確率が閾値未満の単位表現を含む数量表現を決定する手段と,
前記質問文中からキーワードを抽出し,抽出したキーワードを用いて前記電子化テキスト情報から前記質問文の解が記述された情報を取り出す手段と,
前記決定された数量表現を用いて,前記質問文の解が記述された情報から前記質問文の解を抽出する解答抽出手段とを備える
ことを特徴とする統計的検定を利用した質問応答システム。
A question answering system that inputs a question sentence in a natural language, generates a solution by collation with sentences in digitized text information stored in a database, and outputs it.
A question sentence input means for inputting the question sentence;
A quantity expression judging means for judging whether or not a solution of the question sentence is a quantity expression according to whether or not the question sentence includes a word for inquiring a quantity expression;
Means for identifying a specific noun included in the question sentence based on a predetermined rule using morphological analysis and sentence patterns ;
When the quantity expression determining means determines that the answer to the question sentence is a quantity expression, a combination pattern in which the identified specific noun and the quantity expression are in a dependency relationship is extracted from the digitized text information; Unit expression extracting means for extracting one or a plurality of unit expressions attached to the quantity expression from the extracted combination pattern;
Means for calculating the number of appearances of the specific noun and the extracted unit expressions in the digitized text information;
Using the hypergeometric distribution, the number of occurrences of the specific noun in the hypergeometric distribution co-occurring with the unit expressions is the quantity expression in the combination pattern in which the specific noun and the quantity expression have a dependency relationship. A test probability that is a probability that is equal to or greater than the number of appearances of each unit expression attached is calculated, and the calculated test probability is equal to or greater than a preset threshold among one or a plurality of unit expressions extracted by the unit expression extraction unit. Means for removing unnecessary unit expressions for removing unit expressions of
Means for determining a quantity expression including a unit expression whose test probability is less than a threshold;
Means for extracting a keyword from the question sentence, and extracting information describing a solution of the question sentence from the digitized text information using the extracted keyword;
A question answering system using a statistical test, comprising: answer extracting means for extracting the answer of the question sentence from information in which the answer of the question sentence is described using the determined quantity expression.
自然言語による質問文を入力し,データベースに記憶された電子化テキスト情報中の文との照合によって解を生成して出力する質問応答システムであって,
前記質問文を入力する質問文入力手段と,
前記質問文に数量表現を問い合わせる単語が含まれるかどうかにより,前記質問文の解が数量表現であるかを判断する数量表現判断手段と,
形態素解析と文パターンを用いた所定の規則に基づいて,前記質問文に含まれる特定の名詞を認定する手段と,
前記数量表現判断手段が質問文の解が数量表現であると判断した場合に,前記電子化テキスト情報から前記認定された特定の名詞と数量表現とが係り受け関係である組み合わせパターンを抽出し,抽出された前記組み合わせパターンから前記数量表現に付されている1又は複数の単位表現を抽出する単位表現抽出手段と,
前記電子化テキスト情報における前記特定の名詞と前記抽出された各単位表現の出現回数を算出する手段と,
超幾何分布を用いて,超幾何分布における前記特定の名詞が前記各単位表現と共起して出現する回数が前記特定の名詞と数量表現とが係り受け関係である組み合わせパターンにおける前記数量表現に付されている各単位表現の出現回数以下である確率である検定確率を算出し,前記単位表現抽出手段が抽出した1又は複数の単位表現のうち,算出した前記検定確率が予め設定した閾値未満の単位表現を除去する不要単位表現除去手段と,
前記検定確率が閾値以上の単位表現を含む数量表現を決定する手段と,
前記質問文中からキーワードを抽出し,抽出したキーワードを用いて前記電子化テキスト情報から前記質問文の解が記述された情報を取り出す手段と,
前記決定された数量表現を用いて,前記質問文の解が記述された情報から前記質問文の解を抽出する解答抽出手段とを備える
ことを特徴とする統計的検定を利用した質問応答システム。
A question answering system that inputs a question sentence in a natural language, generates a solution by collation with sentences in digitized text information stored in a database, and outputs it.
A question sentence input means for inputting the question sentence;
A quantity expression judging means for judging whether or not a solution of the question sentence is a quantity expression according to whether or not the question sentence includes a word for inquiring a quantity expression;
Means for identifying a specific noun included in the question sentence based on a predetermined rule using morphological analysis and sentence patterns ;
When the quantity expression determining means determines that the answer to the question sentence is a quantity expression, a combination pattern in which the identified specific noun and the quantity expression are in a dependency relationship is extracted from the digitized text information; Unit expression extracting means for extracting one or a plurality of unit expressions attached to the quantity expression from the extracted combination pattern;
Means for calculating the number of appearances of the specific noun and the extracted unit expressions in the digitized text information;
Using the hypergeometric distribution, the number of occurrences of the specific noun in the hypergeometric distribution co-occurring with the unit expressions is the quantity expression in the combination pattern in which the specific noun and the quantity expression have a dependency relationship. A test probability that is a probability that is less than or equal to the number of appearances of each unit expression attached is calculated, and the calculated test probability is less than a preset threshold among one or more unit expressions extracted by the unit expression extraction unit Means for removing unnecessary unit expressions for removing unit expressions of
Means for determining a quantity expression including a unit expression having a test probability equal to or greater than a threshold;
Means for extracting a keyword from the question sentence, and extracting information describing a solution of the question sentence from the digitized text information using the extracted keyword;
A question answering system using a statistical test, comprising: answer extracting means for extracting the answer of the question sentence from information in which the answer of the question sentence is described using the determined quantity expression.
JP2002282795A 2002-09-27 2002-09-27 Question answering system using statistical tests Expired - Lifetime JP3845727B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002282795A JP3845727B2 (en) 2002-09-27 2002-09-27 Question answering system using statistical tests

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002282795A JP3845727B2 (en) 2002-09-27 2002-09-27 Question answering system using statistical tests

Publications (2)

Publication Number Publication Date
JP2004118647A JP2004118647A (en) 2004-04-15
JP3845727B2 true JP3845727B2 (en) 2006-11-15

Family

ID=32276853

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002282795A Expired - Lifetime JP3845727B2 (en) 2002-09-27 2002-09-27 Question answering system using statistical tests

Country Status (1)

Country Link
JP (1) JP3845727B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107256258A (en) * 2017-06-12 2017-10-17 上海智臻智能网络科技股份有限公司 Semantic formula generation method and device

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4654745B2 (en) 2005-04-13 2011-03-23 富士ゼロックス株式会社 Question answering system, data retrieval method, and computer program
JP4919386B2 (en) * 2006-01-25 2012-04-18 独立行政法人情報通信研究機構 Information extraction / display device
JP4894037B2 (en) * 2006-07-12 2012-03-07 独立行政法人情報通信研究機構 Information extraction apparatus, information extraction method, and information extraction program
CN105631032B (en) * 2015-12-31 2018-12-28 上海智臻智能网络科技股份有限公司 Question and answer Knowledge Base, the apparatus and system recommended based on abstract semantics
US12013849B2 (en) 2018-06-14 2024-06-18 Nec Corporation Question responding apparatus, question responding method, and recording medium
JP7287475B2 (en) * 2019-08-30 2023-06-06 富士通株式会社 Information processing method, information processing program, and information processing apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107256258A (en) * 2017-06-12 2017-10-17 上海智臻智能网络科技股份有限公司 Semantic formula generation method and device
CN107256258B (en) * 2017-06-12 2019-09-06 上海智臻智能网络科技股份有限公司 Semantic formula generation method and device

Also Published As

Publication number Publication date
JP2004118647A (en) 2004-04-15

Similar Documents

Publication Publication Date Title
Evert The statistics of word cooccurrences: word pairs and collocations
US7552112B2 (en) Discovering associative intent queries from search web logs
Evert The statistics of word cooccurrences
CN109960756B (en) News event information induction method
Zhang et al. Extraction of Chinese compound words-an experimental study on a very large corpus
JP2004164036A (en) Method for evaluating commonality of document
Béchet et al. Discovering linguistic patterns using sequence mining
CN106294863A (en) A kind of abstract method for mass text fast understanding
CN101751455A (en) Method for automatically generating title by adopting artificial intelligence technology
Banerjee et al. Adapting the Lesk algorithm for word sense disambiguation to WordNet
JP3845727B2 (en) Question answering system using statistical tests
Gopan et al. Comparative study on different approaches in keyword extraction
Momeni et al. Modeling evolution of topics in large-scale temporal text corpora
Harmanani et al. A rule-based extensible stemmer for information retrieval with application to Arabic
CN114496231B (en) Knowledge graph-based constitution identification method, device, equipment and storage medium
Haribhakta et al. Unsupervised topic detection model and its application in text categorization
Li et al. The hong kong polytechnic university at duc 2005
Coenen et al. Statistical identification of key phrases for text classification
Nakov et al. Towards deeper understanding of the LSA performance
Boukhari et al. Raid: Robust algorithm for stemming text document
Adler et al. Unsupervised lexicon-based resolution of unknown words for full morphological analysis
Chen et al. An unsupervised approach for person name bipolarization using principal component analysis
Patrick et al. Developing SNOMED CT subsets from clinical notes for intensive care service
Kawahara et al. Question and Answering System based on Predicate-Argument Matching.
Lehmann Automatic retrieval of zero elements in a computerised corpus

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060124

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060327

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060425

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060623

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20060629

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: 20060718

R150 Certificate of patent or registration of utility model

Ref document number: 3845727

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

EXPY Cancellation because of completion of term