JP6799731B2 - Methods, computer programs and devices for computers to infer interactively - Google Patents

Methods, computer programs and devices for computers to infer interactively Download PDF

Info

Publication number
JP6799731B2
JP6799731B2 JP2016009324A JP2016009324A JP6799731B2 JP 6799731 B2 JP6799731 B2 JP 6799731B2 JP 2016009324 A JP2016009324 A JP 2016009324A JP 2016009324 A JP2016009324 A JP 2016009324A JP 6799731 B2 JP6799731 B2 JP 6799731B2
Authority
JP
Japan
Prior art keywords
computer program
user
variable
variables
character string
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2016009324A
Other languages
Japanese (ja)
Other versions
JP2017130070A (en
Inventor
中村圭介
Original Assignee
ナレルシステム株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ナレルシステム株式会社 filed Critical ナレルシステム株式会社
Priority to JP2016009324A priority Critical patent/JP6799731B2/en
Publication of JP2017130070A publication Critical patent/JP2017130070A/en
Application granted granted Critical
Publication of JP6799731B2 publication Critical patent/JP6799731B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、コンピュータが対話によって推論するための方法、コンピュータプログラム及び装置に関する。 The present invention relates to methods, computer programs and devices for computers to infer interactively.

かかる分野においては、従来から対話型の推論システム(MYCIN等を元祖とする)が存在した。
しかし、PROLOG等の本格的な述語論理学に基づく推論システムではその対話の制御は、
推論を行う根拠となる論理プログラム(PROLOGソース等)や知識ベースのプログラマ(知識を編集する権限をもつ利用者)が、
利用者(特に、結論や選択肢や根拠を求めて質問する側の一般利用者)による(質問や前提条件の)入力の制御(自由入力のプロンプトや選択肢の提示等)をするために
print文等出力系のコマンドやinput文等入力系のコマンド等、
多くのコードを入力しなければならなかった。
また、PROLOG等閉世界仮説を採用する処理系(下記、特許文献1のシステム)において、
真であるすべての事実(NOTを用いた場合は偽の事実でもよい)を網羅することは困難であり、コーディングコストが大きくなり、完全性や健全性の障害にもなっていた。
また、自由文の入力を許容する対話型システムにおいては、表記ゆれ等により、入力された内容と用意された知識形式とのミスマッチが問題となっていた。下記、特許文献1のシステムにおいては明示的な表記ゆれ吸収規則による知識の泣き別れを回避することも可能であったが、表記ゆれ吸収規則が用意されていない段階では回避することができず、また表記ゆれ吸収規則を用意するコストも少なくはなかった。
In such a field, an interactive inference system (originally from MYCIN or the like) has been conventionally used.
However, in an inference system based on full-scale predicate logic such as PROLOG, the control of the dialogue is
A logical program (PROLOG source, etc.) or a knowledge-based programmer (a user who has the authority to edit knowledge), which is the basis for making inferences,
To control input (questions and prerequisites) by users (especially general users who ask questions for conclusions, options and rationale) (prompts for free input, presentation of options, etc.)
Output commands such as print statements and input commands such as input statements, etc.
I had to enter a lot of code.
Further, in a processing system that adopts a closed-world hypothesis such as PROLOG (hereinafter, the system of Patent Document 1)
It was difficult to cover all the facts that were true (or even false facts when using NOT), which increased coding costs and hampered integrity and soundness.
Further, in the interactive system that allows the input of free sentences, a mismatch between the input contents and the prepared knowledge format has been a problem due to notational fluctuations and the like. In the system of Patent Document 1 below, it was possible to avoid the crying of knowledge due to the explicit notational fluctuation absorption rule, but it cannot be avoided at the stage when the notational fluctuation absorption rule is not prepared. The cost of preparing a notational fluctuation absorption rule was not small.

特願2013−87008Japanese Patent Application No. 2013-8708

したがって、本発明は、1)対話型のエキスパートシステムを運用するための知識ベースのコーディングを効率化すること(例えば、ゴール又はサブゴールとなる命題の真偽を利用者に問う全く別途のコーディングを不要とすること)。2)PROLOG等述語論理の扱える推論システムにおいて真となる事実の網羅(完全性)等、知識の事前編集負担を軽減して運用を効率化をしながら(閉世界仮説下又はそれ以外の解釈方針下で)健全性を損なわないようにすること。3)対話型システム一般において、入力を効率化し、表記ゆれが問題にならないようにすること、を目的とする。 Therefore, the present invention 1) streamlines knowledge-based coding for operating an interactive expert system (for example, no separate coding is required to ask the user whether the proposition that is the goal or subgoal is true or false. To be). 2) While reducing the burden of pre-editing knowledge and improving operational efficiency, such as coverage of facts that are true in inference systems that can handle predicate logic such as PROLOG (under the closed world hypothesis or other interpretation policies) Do not compromise health (below). 3) In general, the purpose is to improve the efficiency of input and prevent notational fluctuations from becoming a problem.

かかる目的のため、
(1)本発明は、

リテラルとして文字列に変数を埋め込んだ形式を許容して
PROLOGの機能の一部又は全

実施可能なコンピュータプログラムであって、
ルールのヘッド又はボディの条件であるリテラルについて
実行時に該リテラルの真偽又は該リテラルを真とする変数の値を
利用者に問うて、
利用者からの答えに従ってその後の処理を実施する
コンピュータプログラムを提供する。

ここで、
「ルールのヘッド又はボディの条件であるリテラル」とは、
実質的にゴール又はサブゴールとなるものを含んでよい。

また、
「利用者」とは、PROLOGの論理プログラムに対して質問を投げかけた利用者、
論理プログラムを編集する権限を有する利用者(オリジナルの著作権者、編集著作権者、
二次的著作権者、等)、
質問を投げかける直前に前提条件(一時的に必要なルールや事実)を入力した利用者又は
補助利用者
(エキスパートシステムとして利用している場合の利用アシスタントや専門家(医者・弁護士等))、等を
含む。
「利用者」が「論理プログラムを編集する権限を有する利用者」の場合、その利用者が答えを容易するまでにタイムラグがあってもよく、
「その後の処理」が「論理プログラムに対して質問を投げかけた利用者」宛ての、そのタイムラグ後のメール通知(論理プログラムが編集(知識追加)された旨、その編集により新たに可能になった推論内容や答え、その編集により対話が継続可能になった旨、等)を含んでいてもよい。
また、
「問う」とは、例えば、ダイアログボックスや入力待ちコンソールや音声待ちプロンプト
を、
質問の入力に用いた端末に新たに表示・音声出力する形式でもよく、
あるいはネットワークを介して別の端末から表示したり、
人型ロボット等の物理インターフェースを介して表示/出力したりする形でもよく
その後に答えとなる入力(コントロールボタン等のマウス操作、キーボード操作、画面タ
ッチ、等)や
音声等を待って元の問うた制御文脈(たとえばSLD導出過程の一点やその他の推論方式
における推論過程の一点)に
返す形でもよい。

なお、PROLOGに倣った処理系の場合、追加される知識(事実や文字列)は、元の論
理プログラムの最終行の後に
単純に行追加することにより、
動的に追加された知識をその後の推論(その質問に対する処理等)にも生かすこと可能で
ある。

このように動的に追加された知識は、利用者の選択により、
その質問のためだけあるいはその後の一定時間以内にされる質問集合のためだけの
一時的な文脈(前提条件と呼ぶこともできる)とすることもでき、
その後永久的に参照すべき保存版の(例えば、よくある典型的な問題を処理する)知識と
したりすることも明らかに可能である。

これにより、
利用者が認識している事実(詳しい、新しい、利用者にとって好ましい、等)を
反映した、より健全でより完全な半自動推論処理(導出、証明、解探索、等)が可能とな
る。
最も典型的には、
リテラルの前後に所定の記号(例えば「?」)が存在するときに、通常の自動確認(後ろ
向き推論)の後、falseの場合のみ
本当はtrueでないか
(すなわち、閉世界仮説下のありがちな弊害(事実列挙不足等)でないか)問うようにす
る。
別の実施形態では、true/falseのいずれの場合にも改めてtrue/falseを問うように設計す
ることができる。
また、リテラルに変数が含まれる場合に
モーダルダイアログを表示して
真となる解組を利用者が動的に追加したり削除したり
(解組候補の全体/部分集合を)承認したりできるように
コンピュータプログラムを設計することもできる
(追加する場合は解組候補として値組(例えば、($X,$Y)=(太郎,花子)と($
X,$Y)=(太郎,花子))が重複しないように
コンピュータプログラムが自動チェックすることも当然可能である)。

ここで、解組「候補」の集合は、
例えば、PROLOGのホーン節と等価な意味論をもつルールのボディ(複数の条件の系
列からなる)の
途中の条件までを充たした
暫定的な変数束縛情報(複数の変数に対する束縛値の組(一つ又は複数))とすることが
できる。


(2)本発明はまた、

前記リテラルがあらかじめ定めた形式の場合にのみ
前記利用者に問う
コンピュータプログラムを提供する。

例えば、リテラルの先頭に「?」がついている論理プログラムの場合以下のようになるが
、末尾でもよい。
===
$Aと友達:-$Aと仲がよい,?$Aとは長いつきあい
太郎と仲がよい
次郎と仲がよい
===

これにより、
(閉世界仮説により、)真の場合がすべて論理プログラムに定義(網羅)できていると
プログラマが考えている場合には「?」をつけずに
真の場合が網羅されていないとプログラマが考えている場合には「?」をつける等して、
論理プログラムの完成度(網羅度)に応じた、「プログラムからの(利用者あるいは外部
への)問い」の制御が可能となる。

なお、閉世界仮説を採用しない場合には、
===
1.「不明」という値を許容する
(この場合、「!今日は雨」という事実や「?今日は雨」という事実を論理プログラムの
一行として許容し、
「?今日は雨」については上記ヘッドに「?」がある場合と同様として利用者に真偽を問
う仕様とする)、
2.利用者からの「不明」という回答を許容して一律に偽側又は真側とみなす、
===
等とする解釈も可能である。

また、利用者によるオプション選択(GUI等)で、
プログラムに出現するすべてのリテラルについて「問う」ことを強要したり、
逆に「?」が先頭についているリテラルについても「問わない」ことを強要したり、
することも可能であり、いずれも一定の有用性を有する。

なお、上の例では、ボディ内に「?」が含まれているが、ヘッドの先頭に「?」がある場
合は、
例えば、
ボディの条件を充たすようなヘッド内各変数(上の例では$Aのみ)の解候補集合を自動
で求めた「後」に、
改めてのヘッド内各変数の解候補集合(の健全性(間違っていないか)及び完全性(不足
していないか))について
コンピュータが利用者に問うて手動での追加等を行えるという
(論理)プログラム解釈としてもよい。


(3)本発明はまた、

前記問うことを、
コンピュータプログラムが後ろ向き推論により
自動的に確認する前に行う
コンピュータプログラムも提供する。

これにより、真とわかった命題の後ろ向き推論を省略するモード等、
計算コストの節約を実現できる場合がある。


(4)本発明はまた、

前記問うことを、
コンピュータプログラムが後ろ向き推論により
自動的に確認した後に行う
コンピュータプログラムも提供する。

これにより、推論により適正に近くなったデフォルト解候補を示すことができ、
問われた利用者の編集コスト(解候補の加減操作)を節約できる。


(5)本発明はまた、

前記問うた際に、
自動的に確認して得た解候補を削除できる
コンピュータプログラムも提供する。

これにより、
確認に用いた論理(事実やルール)の誤謬による解等を
事後的に手動で排除することが可能になる。


(6)本発明はまた、

前記問うた際に、
自動的に確認して得た解候補を見ながら新しい解候補を追加できる
コンピュータプログラムも提供する。

これにより、デフォルト解候補により編集コストを節約しながら、
追加する解候補が重複となることを目視でも防ぐことができる。


(7)本発明はまた、

利用者から問われた質問又は問われた頻度の高い質問を
一操作以上の、質問文全体入力よりコストの小さい操作で質問できるコントロールを自動
生成する機能を有する
コンピュータプログラムも提供する。
「一操作」とはマウスのワンクリックやキーボードの[ENTER]やその他の物理入力
装置による単純な操作をいう。また、自動コンプレション(後続文字列補完)を一文字か
ら行える場合(論理プログラム全体のリテラル集合解析等による)も含む。
「一操作以上の質問文全体入力よりコストの小さい操作」には、2文字以上入力した段階
での完璧コンプレションやツリー形式の補完文字列選択UIが含まれる。
「自動生成」は、処理ログのログ解析等により明らかに可能である。
「コントロール」は問われた頻度等に基づいてランキング形式等で並んで表示されてもよ
い。

これにより、表記ゆれの解消、入力負担の軽減、新知識化のコスト軽減(前提条件の提案
や永続化した(ディスクを対象とした)保存等)が容易となる。


(8)本発明はまた、

前記「利用者からの答えに従ってその後の処理を実施する」は、
利用者が前提条件ないし文脈として
事実やルールを論理プログラム自体に一時的に又は永続的に追加して処理できること
である
コンピュータプログラムも提供する。

これにより、一時的に想定した場面を表す事実やルールに応じた結論(一時的に追加した
場合)を導いたり、
典型的な場面を表す事実やルールを追加した論理プログラムを
元の論理プログラムの派生バージョンであるライブラリとして記憶したり共有したり(ア
セット化)できる。

For that purpose
(1) The present invention

Some or all parts of the functions of PROLOG to allow format with embedded variable to a string as a literal
It is a computer program that can execute <br />
Ask the user at runtime the truth of the literal or the value of a variable that makes the literal true for the literal that is the condition of the head or body of the rule.
Provide a computer program that performs subsequent processing according to the answer from the user.

here,
What is a "literal that is a condition of the head or body of a rule"?
It may include what is substantially a goal or a subgoal.

Also,
A "user" is a user who asks a question about a PROLOG logic program.
Users who have the authority to edit logical programs (original copyright holder, editing copyright holder,
Secondary copyright holder, etc.),
A user or auxiliary user who entered the prerequisites (temporarily necessary rules and facts) just before asking a question (use assistant or expert (doctor, lawyer, etc.) when using as an expert system), etc. including.
If the "user" is a "user who has the authority to edit the logical program", there may be a time lag before the user can easily answer.
"Subsequent processing" is a mail notification after the time lag to "the user who asked the question to the logical program" (the fact that the logical program was edited (knowledge added) was newly made possible by the editing. It may include the content of the inference, the answer, the fact that the dialogue can be continued by editing it, etc.).
Also,
"Ask" means, for example, a dialog box, a console waiting for input, or a prompt waiting for voice.
It may be a format that is newly displayed and output to the terminal used for inputting the question.
Or you can display it from another terminal via the network,
It may be displayed / output via a physical interface such as a humanoid robot, and then the original question is asked after waiting for the answer input (mouse operation such as control buttons, keyboard operation, screen touch, etc.) and voice. It may be returned to the control context (for example, one point of the SLD derivation process or one point of the inference process in other inference methods).

In the case of a processing system that follows PROLOG, the added knowledge (facts and character strings) can be obtained by simply adding a line after the last line of the original logical program.
It is possible to utilize the dynamically added knowledge for subsequent inference (processing of the question, etc.).

The knowledge added dynamically in this way depends on the user's choice.
It can also be a temporary context (also called a precondition) just for that question or for a set of questions that will be asked within a certain amount of time thereafter.
It is also clearly possible to make it knowledge of the preserved version (eg, dealing with common typical problems) that should be referred to permanently afterwards.

This will
It enables sounder and more complete semi-automatic inference processing (derivation, proof, solution search, etc.) that reflects the facts that the user is aware of (detailed, new, favorable to the user, etc.).
Most typically
When a given symbol (for example, "?") Is present before and after a literal, after normal automatic confirmation (backward reasoning), is it really not true only if it is false (that is, a common harmful effect under the closed-world hypothesis)? Ask if it is not enough to list the facts).
In another embodiment, it can be designed to ask true / false again in any case of true / false.
It also allows users to dynamically add and remove true solutions (whole / subset of solution candidates) by displaying a modal dialog when the literal contains variables. You can also design a computer program in (for example, ($ X, $ Y) = (Taro, Hanako) and ($) as solution candidates when adding.
Of course, it is also possible for the computer program to automatically check that X, $ Y) = (Taro, Hanako)) do not overlap).

Here, the set of solution "candidates" is
For example, provisional variable bound information (a set of bound values for multiple variables (1) that satisfies the conditions in the middle of the body of the rule (consisting of a series of multiple conditions) that has the semantics equivalent to the horn clause of PROLOG. One or more)).


(2) The present invention also

A computer program that asks the user is provided only when the literal has a predetermined format.

For example, in the case of a logical program with a "?" At the beginning of a literal, it will be as follows, but it may be at the end.
===
$ A and friends:-Good friends with $ A ,? I have a long relationship with $ A. I am on good terms with Taro. I am on good terms with Jiro ===

This will
If the programmer thinks that all the true cases can be defined (covered) in the logical program (according to the closed-world hypothesis), the programmer thinks that the true cases are not covered without adding a question mark. If so, add a "?"
It is possible to control "questions (to the user or the outside) from the program" according to the degree of completion (coverage) of the logical program.

If you do not adopt the closed-world hypothesis,
===
1. 1. Allow the value "Unknown" (in this case, allow the fact "! Today is rain" or "? Today is rain" as a line of the logic program,
For "? Today's rain", the specification is to ask the user whether it is true or false, as if there is a "?" In the head above),
2. 2. Allow the user to answer "Unknown" and uniformly consider it as the false side or the true side,
===
It is also possible to interpret it as such.

In addition, by selecting options (GUI etc.) by the user,
Forcing you to "ask" about all the literals that appear in your program,
On the other hand, you can force a literal that has a "?" At the beginning to "don't care".
It is also possible to do so, and both have a certain degree of usefulness.

In the above example, "?" Is included in the body, but if there is a "?" At the beginning of the head,
For example
"After" the solution candidate set of each variable in the head (only $ A in the above example) that satisfies the body condition is automatically obtained.
It is said that the computer can ask the user about the solution candidate set (health (whether it is wrong) and completeness (whether it is insufficient)) of each variable in the head again and manually add it (logic). It may be a program interpretation.


(3) The present invention also

Ask the above question
It also provides a computer program that is performed before the computer program automatically confirms it by backward inference.

As a result, a mode that omits backward inference of propositions that are found to be true, etc.
Computational cost savings may be realized.


(4) The present invention also

Ask the above question
It also provides a computer program that is performed after the computer program automatically confirms it by backward inference.

This makes it possible to show default solution candidates that are closer to proper by inference.
It is possible to save the editing cost (adjustment operation of solution candidates) of the questioned user.


(5) The present invention also

When asking the above question
We also provide a computer program that can automatically check and delete the obtained solution candidates.

This will
It is possible to manually eliminate the solution due to the error of the logic (facts and rules) used for confirmation after the fact.


(6) The present invention also

When asking the above question
We also provide a computer program that allows you to add new solution candidates while automatically checking and looking at the obtained solution candidates.

This saves editing costs with default solution candidates while
It is possible to visually prevent duplication of solution candidates to be added.


(7) The present invention also

We also provide a computer program that has a function to automatically generate a control that can ask a question asked by a user or a frequently asked question with one or more operations at a lower cost than inputting the entire question text.
"One operation" refers to a simple operation using one click of a mouse, [ENTER] of a keyboard, or other physical input device. It also includes the case where automatic compression (subsequent character string interpolation) can be performed from a single character (by literal set analysis of the entire logical program, etc.).
"Operations that cost less than inputting the entire question text for one or more operations" include perfect compression when two or more characters are input and a tree-style complementary character string selection UI.
"Automatic generation" can be clarified by log analysis of processing logs.
The "controls" may be displayed side by side in a ranking format or the like based on the frequency of questions asked.

This makes it easier to eliminate notational fluctuations, reduce the input burden, and reduce the cost of new knowledge (proposal of preconditions, permanent storage (for disks, etc.), etc.).


(8) The present invention also

The above-mentioned "perform subsequent processing according to the answer from the user"
The user can temporarily or permanently add facts and rules to the logical program itself as prerequisites or contexts for processing.
It also provides computer programs.

In this way, you can draw conclusions (when temporarily added) according to the facts and rules that represent the temporarily assumed scene.
A logical program with added facts and rules representing typical situations can be stored and shared (assetized) as a library that is a derivative version of the original logical program.

(9)本発明はまた、

利用者から入力された文字列が
一部の予約語と合致した場合について、
利用者からの質問とも、前提条件ないし文脈とも解釈せず、
その予約語について定義された処理を行う、
コンピュータプログラムも提供する。

これにより、対話型システムとして実現する場合の
定型的な返答(例えば、あいさつ、定見、所信、手続き的処理、等)を
簡易に、効率的に、あるいは低コストで実現することができる。

なお、対話型システムとしての応答性やホスピタリティや利用者からの信頼を増し、
システムのぶっきらぼうさを減らしていくために、
質問をする立場の利用者からの入力(とりわけ質問文)のうち
論理プログラムにより応答できなかった内容について、
「論理プログラムを編集する権限を有する利用者」に自動的に示す等して、
応答できなかった内容を応答可能にする知識を優先して論理プログラムに編集追加するよ

コンピュータプログラムが自動的に促すようにする手段を備えることがこの場合に特に有
利である。


(10)本発明はまた、

利用者から入力された文字列が
5W2H形式(いつ、どこで、だれが、なぜ、なにを、どのように、どのぐらい)の
疑問を表す表現であることを所定の予約語と照合して検出し、
それぞれ対応する値種類(例えば、内容の種類であり、形式は文字列形式や、数値形式や、オブジ
ェクトへのポインタやURI形式、等様々)のみで束縛(代入)しうるように束縛制限し
た変数名に置き換えて以降の処理を行う
コンピュータプログラムも提供する。

これにより、対話型システムとして実現する場合に、
変数を束縛する値の範囲や種類を、
論理プログラミングに詳しくない一般的な質問者が簡易に指定することを容易にする。

a. 所定の予約語変換規則を論理プログラムで明示的に定義した例を以下に示す。
===
だれが⇒${誰}が
どなたが⇒${誰}が
どいつが⇒${誰}が
それはなぜ=${何故}
===

b. また、上記予約語変換規則に基づく文字列の変換例を以下に示す。
===
だれが犬にエサをやったの? ⇒ ${誰}が犬にエサをやったの?
===

c. また、束縛可能な値(内容)の規則を論理プログラムで明示的に定義した例を以下に
示す。
===
${誰}←{太郎|花子|家のロボット|・・・}
${何故}←{暖冬だから|感情だから|相手が先に挨拶をしたから|・・・}
===


(11)本発明はまた、

利用者が追加した知識により真であることを自動証明できる事実を自動的に利用者に示す
ことを特徴とする
コンピュータプログラムを提供する。

これによる有利な効果を以下に挙げる。
===
・一般的な対話形式が成立しやすくなる。
・クライアントからの明示的な質問を要しない能動的なコンサルティングが成立しやすく
なる。
・新しく証明可能になった事実をいちいち利用者が質問したり、知識を追加する前の(真
であることを証明可能な)事実集合と
知識を追加した後の集合との差分を利用者が明示的に分析したりする手間が省ける。
・コンピュータからの問い(ある意味の誘導尋問)によって知識を追加した/する(=認
めた/認める)ことによる副作用や
注意すべき点・TODO(技術上、正確性の保証上、用途上、検討上)等を(真偽や解と
ともに)利用者に体系的に示すことが
手軽に簡潔に可能となる。

以下に、この簡単な例を示す。
===
<元の知識>
$Aと友達:-$Aと仲がよい,?$Aとは長いつきあい
太郎と仲がよい

<前提条件(文脈)として利用者が追加する内容>
太郎とは長いつきあい

<利用者に自動的に示す内容>
「太郎と友達」なんですね?
===


以下に、実施形態に示したシステムを用いての、上記発明の簡単な実現方法を示す。
===
ステップ1)知識を加えないで求めた$A?(証明可能な事実の全体集合)の答えを求め
る。
ステップ2)知識を加えた後に求めた$A?(証明可能な事実の全体集合)の答えを求め
る。
ステップ3)二つの答えの差分Xを、「Xなんですね?」等と表示する。
===


(12)本発明はまた、
利用者に真偽を問うてよい旨の印のついたのあるリテラルについて、
利用者に問わずに真と仮定した解集合(例えば、「・・・(仮定内容)なら〜(結論内容
)」の集合等)を提供する
コンピュータプログラムを提供する。

これは、仮定法形式「・・・なら〜」の解を提供することに相当し、事実を確認してから
結論を出すよりも
場合分けを含む知識そのものを提供したほうが
コミュニケーションコスト的にも利用者の納得度でも優れている場合に有利である。

ここで「仮定した解集合」とは、例えば、”「明日晴れ」なら「釣りに行くべき」”等と
いった、
”〜なら・・・”形式の集合(あるいはリスト)等として表現することができる。

これにより、利用者から(場合によっては個人情報も含まれうるような)知識を引き出す
ことなく
(傍受されるリスクを減らしながら)、利用者に必要な知識や情報や結論・根拠を
実質的に提供して問題解決につなげることを可能とする。


(13)本発明はまた、

WEBサーバーと協働して対話サービスを提供する
コンピュータプログラムであることが有利である。

これにより、スケーラブルでサービス停止時間の短い対話型エキスパートシステム等を
効率的に運用することができる。

また、個人の信念、知識、情報、優先順位(価値観を含む)等を、インターネットにより

対話形式で広範囲に、安価に、永続的に伝えることを可能とする。

また、メールシステムとも連動・補完しあって、対話した実績のログ管理や、質問に答え
るため不足していた知識の分析(答えられなかった質問そのものの集合でもよい)と論理
プログラム編集権のある利用者への通知を
自動的に行うことが有利である。


(14)本発明はまた、

所定観点(例えば、デフォルトは数又は量であってよい)についての程度を表す表現による
例えば、「どのぐらい?」、「どれぐらい○○?」、「どんだけ○○?」、等)
所定の質問に対して
所定観点(デフォルトは数又は量であってよい)についての程度の順序関係を表した系列
内の
いずれかの一項と同じ程度、
いずれかの一項以上の程度、
いずれかの一項以下の程度、
いずれかの一項を超える程度、
いずれかの一項未満の程度又は
それらの組み合わせである程度を
利用者からの入力、コンピュータによる記憶又はその両方に基づいて
定義して返す
コンピュータプログラムを提供する。

これにより、
「順序」という、
記述量あたりの情報量(解釈後の)が最も大きい形式で
程度についての知識を表現することが可能となり、
意味(情報)あたり記述量を節約することができ、同時に、
知識の意味的矛盾がおきにくい(知識の意味的矛盾をチェックしやすい(項目数をNとす
るとオーダー計算でO(N^2)程度)ことにもよる)形式で記述することができる。

例えば、以下のような問いについての答えを、どのように定義し、どのように答えるかの
例を示す。
===
(利用者からの問い)
水はどのぐらい重い?

(論理プログラム中での定義(論理プログラム編集権限のある利用者が行う))
<重い




空気
>重い

(上記論理プログラムを参照した本発明によるコンピュータプログラムの答え)
→木よりも重い
→砂よりも軽い

上記のような答えは、本発明を参考にした当業者がリニアサーチアルゴリズムを2回実施
することなどにより
明らかに求めて表示することができる。


(15)本発明はまた、

こうしたコンピュータプログラムを用いた方法を提供する。


(16)本発明はまた、

こうしたコンピュータプログラムを用いた装置を提供する。
(9) The present invention also

When the character string entered by the user matches some reserved words
Do not interpret the question from the user, the precondition or the context,
Performs the processing defined for the reserved word,
It also provides computer programs.

As a result, it is possible to easily, efficiently, or at low cost to realize a standard response ( for example, greeting, fixed opinion, belief, procedural processing, etc.) when the system is realized as an interactive system.

In addition, the responsiveness and hospitality of the interactive system and the trust of users will be increased.
To reduce the bluntness of the system
Regarding the input (especially the question text) from the user who is in the position of asking a question, the content that could not be answered by the logical program
Automatically indicate to "users who have the authority to edit logical programs", etc.
It is particularly advantageous in this case to provide means for the computer program to automatically prompt the logical program to edit and add to the logical program in favor of knowledge that makes the unresponsive content responsive.


(10) The present invention also

Detects that the character string input by the user is an expression expressing a question in 5W2H format (when, where, who, why, what, how, how much) by collating with a predetermined reserved word. And
Variables that are bound (assigned) so that they can be bound (assigned) only by the corresponding value type ( for example, the type of content, the format is a character string format, a numerical format, a pointer to an object, a URI format, etc.) It also provides a computer program that replaces the name with the name and performs the subsequent processing.

As a result, when it is realized as an interactive system,
The range and type of values that bind variables
Makes it easy for general questioners who are not familiar with logic programming to specify.

An example of explicitly defining a predetermined reserved word conversion rule in a logical program is shown below.
===
Who ⇒ $ {who} who ⇒ $ {who} who ⇒ $ {who} is why = $ {why}
===

b. An example of character string conversion based on the above reserved word conversion rules is shown below.
===
Who fed the dog? ⇒ $ {who} fed the dog?
===

c. An example of explicitly defining the rules for bindable values (contents) in a logical program is shown below.
===
$ {Who} ← {Taro | Hanako | Home Robot | ...}
$ {Why} ← {Because it's a warm winter | Because it's emotions | Because the other party greeted me first | ...}
===


(11) The present invention also

Provided is a computer program characterized by automatically showing a user a fact that can be automatically proved to be true by the knowledge added by the user.

The advantageous effects of this are listed below.
===
・ It becomes easier to establish a general dialogue format.
・ It becomes easier to establish active consulting that does not require explicit questions from clients.
-The user asks each new fact that can be proved, and the user asks the difference between the fact set (which can prove to be true) before adding knowledge and the set after adding knowledge. You can save the trouble of explicit analysis.
・ Side effects and points to be noted by adding / adding (= admitting / admitting) knowledge by asking a question from a computer (guided cross-examination in a sense) ・ TODO (technical, accuracy assurance, application, examination It is possible to easily and concisely show the above) etc. to the user (along with the truth and solution).

A simple example of this is shown below.
===
<Original knowledge>
$ A and friends:-Good friends with $ A ,? I have a long relationship with $ A and I am on good terms with Taro

<Contents added by the user as a prerequisite (context)>
Long relationship with Taro

<Contents automatically shown to the user>
Is it "Taro and friends"?
===


Hereinafter, a simple method for realizing the above invention using the system shown in the embodiment will be shown.
===
Step 1) $ A you asked for without adding knowledge? Seek the answer (the whole set of provable facts).
Step 2) $ A obtained after adding knowledge? Seek the answer (the whole set of provable facts).
Step 3) Display the difference X between the two answers as "X, isn't it?"
===


(12) The present invention also
About literals with a mark that you can ask the user for authenticity
Provided is a computer program that provides a set of solutions assumed to be true regardless of the user (for example, a set of "... (assumed content) if ~ (conclusion content)").

This is equivalent to providing a solution of the subjunctive mood form "... if ...", and it is better to provide the knowledge itself including the case classification than to make a conclusion after confirming the facts in terms of communication cost. It is advantageous when the degree of conviction of the person is also excellent.

Here, the "hypothesized solution set" is, for example, "If it is sunny tomorrow, you should go fishing."
It can be expressed as a set (or list) in the form of "... if ...".

As a result, the knowledge, information, conclusions, and grounds necessary for the user can be substantially obtained without extracting the knowledge (which may include personal information in some cases) from the user (while reducing the risk of being intercepted). It is possible to provide it and lead to problem solving.


(13) The present invention also

It is advantageous that the computer program provides the dialogue service in cooperation with the WEB server.

As a result, it is possible to efficiently operate an interactive expert system or the like that is scalable and has a short service downtime.

In addition, personal beliefs, knowledge, information, priorities (including values), etc. can be shared via the Internet.
It enables interactive, wide-ranging, inexpensive, and permanent communication.

In addition, it is linked and complemented with the mail system, and has log management of the results of dialogue, analysis of knowledge that was insufficient to answer questions (may be a set of questions that could not be answered), and logic program editing rights. It is advantageous to automatically notify the user.


(14) The present invention also

Degrees of a given point of view ( eg, default may be number or quantity) ( eg, "how much?", "How much XX?", "How much XX?", Etc.)
Same extent as any of one of the series which represents the degree of sequence relationships for a given viewpoint for a given question (default may be a number or amount),
Degree of any one or more items,
To a degree less than or equal to any one item,
To the extent that it exceeds any one item,
Provided is a computer program that defines and returns a degree less than any one of the terms or a combination thereof based on input from a user, memory by a computer, or both.

This will
"Order"
It is possible to express knowledge about the degree in the form with the largest amount of information (after interpretation) per description amount.
The amount of description per meaning (information) can be saved, and at the same time,
It can be described in a format in which the semantic contradiction of knowledge is unlikely to occur (it depends on the fact that it is easy to check the semantic contradiction of knowledge (if the number of items is N, it is about O (N ^ 2) in order calculation)).

For example, an example of how to define and answer the answers to the following questions is shown.
===
(Questions from users)
How heavy is the water?

(Definition in a logical program (performed by a user who has the authority to edit the logical program))
<Heavy iron sand Mizuki air> Heavy

(Answer of a computer program according to the present invention with reference to the above logic program)
→ Heavier than wood → Lighter than sand

An answer as described above can be clearly obtained and displayed by a person skilled in the art with reference to the present invention by executing the linear search algorithm twice.


(15) The present invention also

A method using such a computer program is provided.


(16) The present invention also

A device using such a computer program is provided.

図1は、本発明の一実施例における論理プログラムの例である。FIG. 1 is an example of a logic program according to an embodiment of the present invention. 図2は、図1の論理プログラムに基づいてリンクを表示し、一般利用者からの質問に対し、逆問いによって正しく答えようとしている画面の例である。FIG. 2 is an example of a screen in which a link is displayed based on the logical program of FIG. 1 and a question from a general user is correctly answered by a reverse question.

同一発明者による以下の特許明細書(上記、特許文献1からの抜粋)の実施の形態に、
本発明に特有の機能を追加で実装することにより実施するものとする。
以下の引用は、本明細者の実施可能性面、進歩性面の補足目的も含まれる。
===
<特許文献1の課題> 自然言語に変数を埋め込む形式で表現した知識をコンピュータでPROLOG同様に自動処理することを実現可能にし、述語論理レベルの網羅的な演繹や解探索(自動単一化処理、自動導出処理、そのための後ろ向き推論、バックトラック)を実現すること。
変数が格構造に縛られない利点を十分に生かし、処理を高速化し、証明や学習等のため結果を見やすく表示すること。
<特許文献1の解決手段(概要)>
人間が、PROLOGにおける「事実」、「ルール」又は「ゴール」の入力にあたり、PROLOGにおける「リテラル」にあたる内容の定数部分と変数部分とを文字種、デリミタ又はエスケープ文字により区別してコンピュータに入力し、
コンピュータが、文の主部、述部等の境界をまたがりうるものとして変数を取扱いながら、その入力に含まれる文の自動単一化処理、自動導出処理又はその両方を行う。
変数を含みうる文であるパターンと、変数を含まない文である定数文字列との単一化を、パターンに最初に出現する変数の最長一致解を求めて、該最長一致解の文字列を後ろから空文字になるまで削る過程を該パターンに代入してできる
各新たなパターンについて、該新たなパターンができる前提となった削る過程の解の各状態をそれぞれ記憶しながら、再帰的に同様に変数がなくなるまで繰り返し、変数がなくなったときに単一化した各途中の解の状態を結合して各単一化の答えを得る。
パターン中の固定文字列が最長一致解を削る過程の文字列に含まれるか等を検出して高速化する。
パターン対パターンの単一化は語頭や語尾の一致に着目して高速化する。全探索の具体的手法も提供する。
<特許文献1の解決手段(全文、ただし一部本発明と混同しないように加筆・修正)>
(0009)
本発明は、かかる課題に鑑みてなされたものであり、特許文献1の請求項1は、
コンピュータが、論理型プログラミング言語PROLOGの機能の一部又は全部を自動的に行う方法であって、
人間が、PROLOGにおける「事実」、「ルール」又は「ゴール」の入力にあたり、PROLOGにおける「リテラル」にあたる内容(以降、「文」と呼ぶ)の定数部分と変数部分とを文字種、デリミタ又はエスケープ文字により区別してコンピュータに入力すること、
コンピュータが、文の主部、述部、主語、述語、目的語、補語、連用修飾語、連体修飾語又は文の境界をまたがりうるものとして変数を取扱いながら、上記「事実」、「ルール」又は「ゴール」の入力に含まれる文の自動単一化処理、自動導出処理又はその両方を行うこと、
を特徴とする処理方法を提供する。
ここで、「人間が、・・・定数部分と変数部分とを文字種、デリミタ又はエスケープ文字により区別してコンピュータに入力する」とは、人間が本発明によるアプリケーションソフト(処理系)の入力欄内やコマンドプロンプト後等に(フロントエンドプロセッサ等を介して又は介さずに)直接入力すること、インターネットブラウザや文章編集ソフト等からコピーペーストやカットペーストすること、別途入力して保存してあったテキストファイル等を読み込んだり、引用したり、参照したりすること等を含む。
また、「コンピュータが、文の主部、述部、主語、述語、目的語、補語、連用修飾語、連体修飾語又は文の境界をまたがりうるものとして変数を取扱い」とは、日本語等の助詞等や英語等の前置詞等を介した明示的な区切りのある格構造(構文解析結果や意味解析結果の階層構造に該当するものを含みうる)の境界(明示的な区切り)をまたがりうるだけでなく、英語等の例えばSV形式・SVO形式・SVOO形式・SVOC形式のSとVの境界、VとOの境界、VとCの境界等をまたがり得、重文や複文の文の境界等をもまたがり得るものとして取り扱うモードを含む(逆に、取り扱わないモードがあってもよい)。これらの場合、変数に入り得る解候補として、文全体や、文全体を構成する文字列から文としての文法構造による区切りの単位を無視して任意の部分文字列を抽出したもの、さらには階層的な参照構造をもつ複文・重文やもっと長い論文等の全体や、さらにそれらの任意の部分文字列が対象となる(なお、「文の境界」をもまたがりうるものとして取り扱う場合であって、知識源の集合を扱う(例えば、ファイルにまとめた知識源の集合を一括して読み込む、書き込む、参照する、等する)場合には、文の境界「以外」に知識源どうしの区切りが必要となるため、このような区切りとして、例えば、改行コードやタブコード等を用いることができる)。
これにより、自然言語に変数を埋め込む形式で表現した知識や情報も、普通の文章形式の知識や情報も、それらの間での現実的な相互活用の可能性が十分に開けた一元的な知識源として、両者を特に区別せずにコンピュータで自動処理することが可能になる(上記「困難性A」の克服)。
「現実的」な相互作用の可能性が「十分」に開けるためには、コンピュータによる自動処理が検索処理系として備えるべき1)検索式(パターンを指定する表現)の簡便性、2)十分な適合率(解の正確性)、3)十分な再現率(解候補を抽出する上での網羅性)を備えていなければならないが、本発明では、文中の自由な(すなわち、文法や意味の区切りに制限されない)場所に変数(複数種類でもよく複数回でもよい)の埋め込みを許容し(簡便性を確保し)つつも、PROLOGの知識処理手順(と内在する知識解釈方針)に基本的に沿うことにより、他の処理系におけるようなハイブリッドな知識処理手順(と、そのハイブリッドな処理手順に対応する複雑な知識解釈方針)によって起こりうる適合率(解の正確性)低下のリスクを回避しつつ、「文の主部、述部、主語、述語、目的語、補語、連用修飾語、連体修飾語又は文の境界をまたがりうるものとして変数を取扱」うことにより、自然言語の区切り表現(読点、句読点、カッコ、コンマ、ピリオド、等)や修飾的なフレーズ(形容詞句、副詞句、必須でない格の表現、等)による指定パターンの泣き別れ出現が原因となる不当な不一致(正規表現的なアンマッチ)を防ぎ、格構造の明示されない表層的な文字列表現間(検索式と知識源の間)での一定の再現性(解候補を抽出する上での網羅性)を確保可能としている。また、知識源となった自然言語の正確な文脈(前後の文字列)を損ないにくい一体的・連続的な引用・抽出(変数への解候補としての)も可能となり、結局、その透明性・単純性により推論の実質的な健全性(根拠や推論経緯の正当性)の確認・検証が手軽かつ容易となり、根拠がいつも明確であるという現実的な安心感を利用者にもたらし、全体として、変数が格構造に縛られない(さらに、格構造のルール(出現順序等)について知らなくてもよく、引数の順番が間違っているかもしれないという不安もない)という仕様の利点を十分に生かしきることを可能にする。
なお、本発明は日本語(一文字の情報量が多く、単語の間にスペースがない)を第一の対象にしているため、文字を処理単位、区切りの単位としている内容が多いが、英語等(一文字の情報量が少なく、一文の文字数は多いが、単語の間にスペースのあるもの)は、スペースで区切った単語を単位として同様の処理をすることも可能である。
(0010)
また、特許文献1の請求項2は、
前記自動単一化処理において、
変数を含みうる文であるパターン(定数部分と変数部分とを文字種、デリミタ又はエスケープ文字により区別したもの)と、変数を含まない文である定数文字列との単一化を、
パターン(例:$Xと$Yは$Zが好き)に最初(又は最後)に出現する変数(例:$X)の最長一致解(例:太郎と次郎)を求めて、該最長一致解の文字列を後ろ(又は前)から空文字になるまで削る過程(例:太郎と次郎>太郎と次>太郎と>太郎>太>空)を該パターンに代入してできる各新たなパターン(例:「太郎と次郎と$Yは$Zが好き」>「太郎と次と$Yは$Zが好き」>「太郎とと$Yは$Zが好き」>「太郎と$Yは$Zが好き」>「太と$Yは$Zが好き」>「と$Yは$Zが好き」)について、該新たなパターンができる前提となった削る過程の解の各状態($X=太郎と次郎>太郎と次>太郎と>太郎>太>空)をそれぞれ記憶しながら、
再帰的に同様に変数がなくなるまで繰り返し、
変数がなくなったときに単一化した各途中の解の状態(例:真($X=太郎と次郎,$Y=三郎),真($X=太郎,$Y=次郎と三郎))を結合して各単一化の答え(例:答え1=($X=太郎と次郎,$Y=三郎),答え2=($X=太郎,$Y=次郎と三郎)を得ることを特徴とする
特許文献1の請求項1に記載の処理方法を提供する。
ここで、「(又は最後)」は「(又は前)」に対応しており、最後に出現する変数から代入するときは、削り始めが前からとなる必要があることを意味する。
これにより、最長一致解から最短一致解に至るすべての可能性について確実に網羅した各解候補の状態を検証し、網羅的な答え(さらに絞りこまれた解候補の集合)を提供することが可能になる。
(0011)
また、特許文献1の請求項3は、
空文字になるまで徐々に削るかわりに、別途求めた最短一致解までしか徐々に削らないことを特徴とする
特許文献1の請求項2に記載の処理方法を提供する。
これにより、最短一致解未満の長さから「空」文字までの解探索の計算を節約することができ、自動処理の高速化が可能となる場合がある。
(0012)
また、特許文献1の請求項4は、
空文字になるまで徐々に削る際、
パターン中で該変数が最初(又は最後)に出現した直後(又は直前)の固定文字である1文字C(直後(又は直前)が別の変数でその解が空文字でないときは該別の変数に解候補として代入されている解候補の最初(又は最後)の1文字C)が該最長一致解に含まれる場合に、
該最長一致解の文字列の最後(又は最初)からそのCに最初にあたるまでの部分文字列をそのCを含め削ることを特徴とする
特許文献1の請求項2又は3に記載の処理方法を提供する。
ここで、「(又は最後)」は「(又は直前)」に対応しており、最後に出現する変数から代入するときは、削り始めが前からとなる必要があることを意味する。
これにより、変数の直後(又は直前)の固定文字にマッチしない解候補の列挙とその解候補を前提とした探索を節約することができ、自動処理の高速化が可能となる場合がある。
(0013)
また、特許文献1の請求項5は、
前記自動単一化処理又は自動導出処理において、
前記「ゴール」(「サブゴール」を含む。以下同じ)となる束縛情報を求める際、
該「ゴール」を構成する各文について独立して束縛情報を求め
各束縛情報の積集合が空でない場合に戻り値真とその積集合を返す
特許文献1の請求項1から4のいずれか一項に記載の処理方法を提供する。
ここで、束縛情報とは、各変数に同時にそのような解候補を代入してみたか/すべきかということを示す情報である。各変数への一つの束縛の仕方を示す束縛情報は、「,」をAND結合と解釈することにより、「変数名1=値1,変数名2=値2,・・・,変数名N=値N」といったリスト形式で表現することができる一方、複数の束縛の仕方は、そのようなリストの集合として、あるいは、「,」ではなくAND/OR結合を明示して複数束縛間の共通部分をくくりだした形や、複数束縛の全体を標準化した連言標準形や選言標準形で表現することができる。
これにより、同時に満たすべきパターン(文)が複数あり、パターン(文)間で同名の変数には同じ解が入るべきとする問題形式の場合(例えば、ユーザからのそのようなAND結合問合せや、ルールのボディ部に複数の文がある場合)に、ルールのより右側のパターンについて、より左側のパターンの各単一化結果ごとに多大な全文探索処理を無駄に繰り返す可能性がすくなくなり、ボディ部をバックトラックしながら深さ優先探索する非効率(変数を自然言語に埋め込む形式においてより顕著な非効率)を回避し、同時に満たすべき各パターンごとの処理を単純化することができる。また、推論過程の表示や検証(完全性や健全性)をわかりやすく、容易にする。また、ルールの意味として必要な直観にとって余計であり定義されるべきでなかった順序性(ボディ部の文間の)が推論過程に副作用を与えることを防ぐことができる。
(0014)
また、特許文献1の請求項6は、
前記自動単一化処理又は自動導出処理において、
前記「ゴール」となる束縛情報を求める際、
既存の束縛情報を最初に空とし、
「ゴール」が含む文集合を、既存の束縛情報の適用下で該一文が真となりうるかと該なりうるための追加の束縛情報について自動計算して該追加の束縛情報を該既存の束縛情報に加えながら該一文を除いて再帰的に小さくしていき、
真となりうるまま該文集合が空集合になったときの既存の束縛情報を「ゴール」となる束縛情報とする
特許文献1の請求項1から4のいずれか一項に記載の処理方法を提供する。
ここで、「再帰的に小さくしていき」とは、再帰が深くなるほど文集合が小さくかつ束縛情報が複雑になる(より多くの変数が束縛され、束縛する値の範囲がより絞られる)よう、例えば、C言語で再帰呼び出しをする処理や、独自に宣言し定義した深さ優先探索用のスタック構造(構造体の配列とスタックポインタ等)によって同等の再帰的処理を実現することをいう。
これにより、変数を自然言語に埋め込む形式で表現された、同時に満たすべき複数パターンのAND結合からなるオープンクエスチョンを自動処理する問題を、より単純かつ再帰的な同一構造を持つ部分問題へとシンプルに変換し、推論過程の表示や検証(完全性や健全性の)を容易にする。
(0015)
また、特許文献1の請求項7は、
前記自動単一化処理又は自動導出処理において、
変数を含まないパターンと変数を含まない事実との単一化を行う場合、
パターンと事実が文字列として一致する場合に真を返す、又は
パターンと事実が文字列として一致しない場合に偽を返す
特許文献1の請求項1から6のいずれか一項に記載の処理方法を提供する。
これにより、シンプルかつ迅速に探索を行うことができる。
なお、「変数を含まない事実」が句点等で区切られた複数の文を含む場合。「文字列としての一致」は、パターンの文字列が事実の文字列の部分に一致することであってもよいとするモードを設けることもできる。
これにより、同型の複数の情報を一つの事実にまとめて表現して探索の対象とすることができる。また、複数要素間のなんらかの順序性(例えば、大きさ、貴重さ、古さ・・・等)も表現しやすくなる。
(0016)
また、特許文献1の請求項8は、
前記自動単一化処理又は自動導出処理において、
変数を含まないパターンとホーン節の変数を含まないヘッド部との単一化を行う場合、
パターンとヘッド部が文字列として一致する場合に、該ホーン節のボディ部をサブゴールとして特許文献1の請求項5又は6に記載の処理方法を適用した結果を返し、
一致しない場合に偽を返す
特許文献1の請求項1から7のいずれか一項に記載の処理方法を提供する。
これにより、変数を自然言語に埋め込む形式で表現するルールのヘッドが変数を含まない場合の健全な機械的解釈と、シームレスでわかりやすくかつシンプルで統一的な処理メカニズムと、対応する推論過程の説明を与えることができる。
(0017)
また、特許文献1の請求項9は、
前記自動単一化処理又は自動導出処理において、
変数を含まないパターンと変数を含むヘッド部をもつホーン節との単一化を行う場合、
特許文献1の請求項2から4のいずれか一項に記載の処理方法における「定数文字列」として当該パ
ターンを用いかつ同処理方法における「パターン」として当該ヘッド部を用いて処理して求めた各束縛情報について、
当該ホーン節のボディ部に適用したものを特許文献1の請求項5又は6に記載の処理方法の「サブゴ
ール」として処理した結果が真となるものが存在すれば真を返す、又は
存在しなければ偽を返す
特許文献1の請求項1から8のいずれか一項に記載の処理方法を提供する。
これにより、変数を自然言語に埋め込む形式で表現するルールのヘッドが変数を含み、このルールを起動したパターンが変数を含まない場合に、ボディ部の変数の束縛範囲を事前に制限して、真偽判断の処理を高速化することができる。
また、健全な機械的解釈と、シームレスでわかりやすくかつシンプルで統一的な処理メカニズムと、対応する推論過程の説明を与えることができる。
(0018)
また、特許文献1の請求項10は、
前記自動単一化処理又は自動導出処理において、
変数を含むパターンと変数を含まない事実との単一化を行う場合、
特許文献1の請求項2から4のいずれか一項に記載の処理方法における「パターン」として当該パタ
ーンを用いかつ同処理方法における「定数文字列」として当該事実を用いて処理した結果を返す、
特許文献1の請求項1から9のいずれか一項に記載の処理方法を提供する。
これにより、パターンと(静的な)事実との間のすべての解候補(格変数への)が洗い出されて「結果」として返されるため、上記「困難性A」克服のための基礎的な機構をシンプルに与えることができ、推論過程の可視化や検証だけでなくさらにはルールの修正等といったユーザーの手を介した学習をも容易にする。
(0019)
また、特許文献1の請求項11は、
前記自動単一化処理又は自動導出処理において、
変数を含むパターンと変数を含まないヘッド部をもつホーン節との単一化を行う場合、
特許文献1の請求項2から4のいずれか一項に記載の処理方法における「パターン」として当該パタ
ーンを用いかつ同処理方法における「定数文字列」として当該ヘッド部を用いて処理した結果を真とする束縛情報(C)が存在する場合で、かつ、当該ホーン節のボディ部を請求項5又は6に記載の処理方法の「サブゴール」として処理した結果が真の場合に当該束縛情報(C)とともに真を返す、
特許文献1の請求項1から10のいずれか一項に記載の処理方法を提供する。
これにより、変数を含むパターンと(変数を含まない静的な)ヘッドとの間のすべての解候補(各変数への)が洗い出されて「結果」として返されるため、上記「困難性A」克服のための基礎的な機構をシンプルに与えることができ、推論過程の可視化や検証だけでなくさらにはルールの修正等といったユーザーの手を介した学習をも容易にする。
また、より単純かつ再帰的な(または相互再帰的な)同一構造を持つ部分問題へとシンプルに変換し、推論過程の表示や検証(完全性や健全性の)を容易にする。
また、変数を自然言語に埋め込む形式で表現するルールのヘッドが変数を含まない場合の健全な機械的解釈と、シームレスでわかりやすくかつシンプルで統一的な処理メカニズムと、これらに該当する推論過程の説明を与えることができる。
(0020)
また、特許文献1の請求項12は、
前記自動単一化処理又は自動導出処理において、
変数を含むパターンと変数を含むヘッド部をもつホーン節との単一化を行う場合、
パターンとヘッド部の頭、尾又は両方に存在する文字数分の固定文字が一致していない場合に偽を返す、
特許文献1の請求項1から11のいずれか一項に記載の処理方法を提供する。
これにより、一律の探索に比して、明らかに大幅な計算量節約と処理速度向上が図れる。
(0021)
また、特許文献1の請求項13は、
前記自動単一化処理又は自動導出処理において、
変数を含む第一のパターンと変数を含むヘッド部をもつホーン節との単一化を行う場合、
パターンとヘッド部の頭及び尾に存在する文字数分の固定文字が一致している場合、
特許文献1の請求項5又は6に記載の処理方法における「サブゴール」として当該ホーン節のボディ
部を適用した結果が真となる各束縛情報により当該ホーン節のヘッド部を束縛して得られる各第二のパターンについて、
第二のパターンが変数を含まない場合に、
特許文献1の請求項2から4のいずれか一項に記載の処理方法における「パターン」として第一の
パターンを用いかつ同処理方法における「定数文字列」として第二のパターンを用いて処理した結果を返す、
請求項1から12のいずれか一項に記載の処理方法を提供する。
ここで、「第二のパターンが変数を含まない場合」とは、ホーン節(ルール)において、ヘッド部に含まれるすべての変数がボディ部「にも」含まれており、ボディ部のすべての変数が定数(固定文字列)で束縛された結果としてヘッド部のすべての変数も定数(固定文字列)で束縛(代入)されたことによりヘッド部の変数が消えてヘッド部が定数文字列と見なせるようになったことをいう。
これにより、変数を含むパターンと変数を含むヘッド部をもつホーン節(ルール)との単一化をシンプルな計算モデルにより、ユーザーがトレースしやすい流れで機械的・自動的に行うことができる。
すなわち、変数を含むパターンと変数を(各束縛情報により)含まなくなった(=定数文字列化した)ヘッド部との間のすべての解候補(パターンの各変数へ代入すべきもの)を洗い出して「結果」として返す形に、元々のより複雑な問題(変数対変数の単一化)を帰着(問題を変換)させることにより、上記「困難性A」克服のための基礎的な機構をシンプルに与え、思考プロセスとしても表現しやすいものにできている。また、この「帰着(問題の変換)」に当たって、より単純かつ再帰的な(または相互再帰的な)同一構造を持つ部分問題へとシンプルに変換しているため、推論過程の可視化や検証(完全性や健全性の)だけでなくルールの修正等といったユーザーの手を介した学習をも容易にする。
結局、変数を自然言語に埋め込む形式で表現するルールのヘッドが変数を含む場合の健全な機械的解釈と、シームレスでわかりやすくかつシンプルで統一的な処理メカニズムと、これらに該当する推論過程の説明を容易に与えることができる。
(0022)
また、特許文献1の請求項14は、
変数を含む事実が入力されることをコンピュータが制限することを特徴とする
特許文献1の請求項1から13のいずれか一項に記載の処理方法を提供する。
ここで、変数を含む事実(ルールでない知識源)とは、例えば、「$Xは$Xである。」(トートロジー的に恒真となる事実)や「$Xは$Yである。」(表層的な文型だけが合致していれば真となってしまう根拠のない事実)等がある。
これらがコンピュータに入力されることを制限することにより、パターン(変数を含みうる文)と事実(変数を含まない文(=固定文字列))との自動単一化処理の計算が単純になり、自動処理による高速な回答が可能となる。また、根拠のない事実を知識源に混入しにくくする。
(0023)
また、特許文献1の請求項15は、
前記ルールがいわゆるホーン節と同様の形式であり、ヘッド部がボディ部に出現しない変数を含むことをコンピュータが制限することを特徴とする
特許文献1の請求項1から14のいずれか一項に記載の処理方法を提供する。
ここで、「ヘッド部がボディ部に出現しない変数を含むことをコンピュータが制限する」とは、ヘッド部が「$Xは素敵」であり、ボディ部が「$Yは強い,$Yは$Zに優しい,$Zは子供,$Yは賢い」といったように、ボディ部のすべての文中の変数(この例では、$Yと$Z)が束縛(代入)されても、ヘッド部の変数(この例では、$X)が束縛されないまま残るようなルールが知識源として入力されたり、記憶されたり、起動されたりすることをコンピュータが制限することをいう。このようなルールは、事実の場合と同様に、ヘッド部に束縛されない変数を残すことにつながるため、健全でない推論結果を生み出しやすく、推論のスピードをも低下させる原因となる。
こうしたルールがコンピュータに入力されることを制限することにより、パターン(変数を含みうる文)とヘッド部(特許文献1の請求項13により変数を含まない文(=固定文字列)の集
合に帰着可能)との自動単一化処理の計算が単純になり、自動処理による高速な回答が可能となる。また、根拠のない推論結果を生み出しにくくする。
(0024)
また、特許文献1の請求項16は、
前記自動単一化処理又は自動導出処理において、
束縛されない変数が互いに残っているパターンとヘッド部又は事実との自動単一化処理を、
固定文字列として極小となる解の集合を求めて返すことにより行うことを特徴する、
特許文献1の請求項1から13のいずれか一項に記載の処理方法を提供する。
ここで、「固定文字列として極小となる解の集合」の例としては、「$Aは$B」と「$Cも$D」との間の自動単一化の結果として、{($A=”も”、$B=<空>、$C=<空>、$D=”は”),($A=空、$B=”も”、$C=”は”、$D=空)}という2つの解を提供することがある。
これにより、無限個の解が存在する場合にも解の例(特に最小のシンプルな例)を提供することが可能になる。
(0025)
また、特許文献1の請求項17は、
前記自動単一化処理又は自動導出処理において、
束縛されない変数が互いに残っているパターンとヘッド部又は事実との自動単一化処理を、
変数を含む文字列として極小となる解の集合を求めて返すことにより行うことを特徴する、
特許文献1の請求項1から13のいずれか一項に記載の処理方法を提供する。
ここで、「固定文字列として極小となる解の集合」の例としては、「$Aは$B」と「$Cも$D」との間の自動単一化の結果として、{($A=”$Cも”、$B=<自由>、$C=<自由>、$D=”は$B”),($A=<自由>、$B=”も$D”、$C=”$Aは”、$D=<自由>)}という2つの解を提供すること等がある。変数を束縛する値(変数に代入される値)の文字列長(ただし、変数が含まれる場合は変数の出現あたり1文字と見なす)の合計(解組みを通じた)が極小となるものと考えることができる。
これにより、無限個の解が存在する場合にも解の一般形を提供することが可能になる。
(0026)
また、特許文献1の請求項18は、
束縛されない変数が互いに残っているパターンとヘッド部又は事実との各文字列の頭及び尾に共通して存在する文字数分の固定文字が一致していない場合、
偽を返すことを特徴とする、
特許文献1の請求項16又は17に記載の処理方法を提供する。
これにより、単一化の可能性のない自動探索を節約し、自動処理を高速化することができる。
(0027)
また、特許文献1の請求項19は、
前記固定文字列又は変数を含む文字列として極小となる解の集合を求める際、
束縛されない変数が互いに残っているパターンとヘッド部又は事実とからなる両文字列(第一の文字列と第二の文字列とする)に含まれる各変数が、各文字列内では共通に束縛され、文字列間では独立に束縛されるものとしながら(あるいは、同名変数を共通に束縛するスコープを各文字列内のみ(あるいは、文字列間は変数のスコープ外)としながら)、
各変数に相手の文字列(第一の文字列中の変数には第二の文字列、第二の文字列中の変数には第一の文字列)のあらゆる部分文字列(<空>及び文字列全体も含む)又は自分自身を代入してみて両文字列が一致する場合を探す全探索により極小となる解の集合を求めることを特徴する、
特許文献1の請求項16又は17に記載の処理方法を提供する。
「又は自分自身を・・・代入」とは、文字列中の「$X」には「$X」そのものを代入することをいい、たまたま第一の文字列にも第二の文字列にも$X(互いのスコープは異なっている)が含まれるときは、第一の文字列の$Xと第二の文字列の$Xをあえて区別できるように(例えば、「$X1」と「$X2」、等として)代入することによっても明らかに健全な計算を行うことができる。
これにより、健全性と停止性(計算の有限性)を確保しながら解集合の一定の網羅性(問題(パターン対)の性質によっては完全性)を確保することができる。
(0028)
また、特許文献1の請求項20は、
束縛されない変数が互いに残っているパターンとヘッド部又は事実とからなる両文字列そのものではなく、
束縛されない変数が互いに残っているパターンとヘッド部又は事実との各文字列の頭及び尾に共通して存在する文字数分の固定文字を両者から除いて残る二つの文字列に相当する両文字列について、
特許文献1の請求項19に記載の処理をする処理方法を提供する。
これにより、解集合の一定の網羅性(場合によっては完全性)を保ちながら全探索の空間を小さくでき、処理が高速化される。
例えば、「石川の$Aは$Bが好き。」と「石川の$Cも$Dアイスが好き。」との間の自動単一化の過程として、そのまま解を探すのではなく、頭尾の共通部分を削除して
”$Aは$B”

”$Cも$Dアイス”
とした上で、全探索により「$A」と「$B」それぞれに、”$Cも$Dアイス”の全ての部分文字列(これは、$Cや$Dといった変数(${・・・}形式の変数も同じ)は1文字とすると、6文字であるため、6×(6+1)/2+1(<空>分)+1(自分自身を代入分)=23通りある)を代入しつつ、同様に、「$C」と「$D」それぞれに”$Aは$B”の全ての部分文字列(これは、同様に3文字であるため、3×(3+1)/2+1+1=8通りある)を代入してみてできる全ての両文字列(23×23×8×8通り)について、両文字列が一致した場合(例えば、(
”もはアイス”,
”はもアイス”,
”$Aはもアイス”,
”$Cもはアイス”,
”$Aはも$Dアイス”
※ちなみに”$Cもは$Bアイス”は一致しない
)となった場合の代入組の集合{
($A=”も”、$B=”アイス”、$C=<空>、$D=”は”),
($A=<空>,$B=”もアイス”,$C=”は”,$D=<空>),
($A=”$A”,$B=”もアイス”,$C=”$Aは”,$D=<空>),
($A=”$Cも”,$B=”アイス”,$C=”$C”,$D=”は”),
($A=”$A”,$B=”も$Dアイス”,$C=”$Aは”,$D=”$D”)
}又は、各代入組の部分的代入の集合(例えば{
($A=”も”、$B=”アイス”),
($A=<空>,$B=”もアイス”),
($A=”$A”,$B=”もアイス”),
($A=”$Cも”,$B=”アイス”),
($A=”$A”,$B=”も$Dアイス”)
})
を解として答えることができる。
なお、$A=”$A”や$B=”も$Dアイス”は、$Aや$Dが自由であり、そこにどのような文字列を代入しても単一化できる(すなわち、無限の解があるということと、その無限個の解(文字列)の制約(正規表現的な形)のあり方)を示すことができる。
(0029)
また、特許文献1の請求項21は、
各変数に相手の文字列のあらゆる部分文字列(<空>及び文字列全体も含む)又は自分自身を代入してみて両文字列が一致する場合を探す全探索により極小となる解の集合を求める際、
変数に代入する部分文字列に変数が含まれる場合に、当該部分文字列に含まれる変数を両文字列にそれまで存在しなかった新しい変数で置き換えながら、該新しい変数に対しての同様の代入も以後再帰的に行いながら両文字列が一致する場合を探す全探索を行うことを特徴とする
特許文献1の請求項19又は20に記載の処理方法を提供する。
これにより、自文字列内の固定文字を相手文字列内の変数を介して反射的に自文字列内の変数に代入した解をも探す必要のある性格の問題(例えば、両文字列={”$Xは$X”,”い$Yう”}の場合では、解候補として($X=”いう”,$Y=”うはい”)を列挙できなければならない)について、解探索の健全性を維持したまま、解候補列挙の網羅性をより高めることができる。上の例では、両文字列(「パターン対」とも呼ぶ)={”$Xは$X”,”い$Yう”}から($X=”いう”,$Y=”うはい”)という解候補を列挙できることを、本発明により再帰的に($X=”い${Y1}う”)⇒(${Y1}=<空>)⇒($Y=”うはい”)という探索枝(探索木の一部であり、本発明に沿った幅優先探索の場合は有限回で生成可能である)を生成しうることによって、示すことができる。
「再帰的に・・・全探索」とは、例えば、各変数への各ありうる代入(前の特許文献1の請求項と同
じ)を再帰的に繰り返す幅優先探索をしながら一致する代入系列(例えば、上記の($X=”い${Y1}う”)⇒(${Y1}=<空>)⇒($Y=”うはい”)、等)を列挙することである。最初の代入のバリエーションは、両文字列中の変数の種類がそれぞれ2個と3個であり文字列の長さがそれぞれ6字と7字(変数はまとめて1字と数える)であれば、2個×(7×(7+1)/2+1+1)+3個×(6×(6+1)/2+1+1)=60+69=129通りとなる。これらの枝から派生するさらなる枝の最長深さが均等になるように幅優先探索を行う場合、代入回数等によるリミッター(上限値と比較するプログラムステップ等)を設けることにより、一回一回の探索を適当な計算量に制限することができる(再帰性によって保証されなくなった停止性や応答速度の確保)。なお、深さ優先探索とした場合にも、深さの制限や代入回数等によって計算量を制限することができる。いずれも自己再帰や相互再帰による無限ループを、再帰的な関数の呼び出しを管理するスタック構造(構造体の配列)等を設けて、先祖(より根方向)となる枝の呼出しパラメータ(その代入系列(代入文脈)に応じた両文字列の状態表現を含んでいてもよい)を現在の呼出しパラメータと比較したりすることにより回避することができる。また、両文字列の頭尾に存在する固定文字列が共通して存在する文字数分一致しているかどうかなどにより、単一化しえない枝の枝刈りを行うこともできる。なお、制限した計算量(例えば代入百万回や探索深さ20以内)の探索により解が見つからなかった場合に「解なし(精度:代入百万回かつ探索深さ20以内)」として、見つかった場合に、「($X=”いう”,$Y=”うはい”),(・・・),・・・(但し、精度:代入百万回かつ探索深さ20以内)」等として探索精度を明示しながらユーザに答えることもできる。また、代入の制限回数以内かつ制限探索深さ以内で明らかに全探索できた場合(完全性のある場合)には、その旨を「解なし(全探索済)」あるいは「($X=”いう”,$Y=”うはい”),(・・・),・・・(全探索済)」等と明示して、ユーザに答えることもできる。
(0030)
また、特許文献1の請求項22は、
変数に代入した結果についても、各文字列の頭及び尾に共通して存在する文字数分の固定文字を両者から除いて残る二つの文字列を、
「相手の文字列のあらゆる部分文字列(<空>及び文字列全体も含む)」の対象となるの「相手の文字列」として、探索が進むごとに、文字列の頭又は尾に存在する固定文字数が少なくすることを特徴とする、
特許文献1の請求項19〜21のいずれか一項に記載の処理方法を提供する。
これにより、探索を進めるごとに(先の枝にいくほど)枝の個数が少なくなり計算量を節約することができる。
(0031)
また、特許文献1の請求項23は、
前記固定文字列又は変数を含む文字列として極小となる解の集合を求める際、
束縛されない変数が互いに残っているパターンとヘッド部又は事実とからなる両文字列(第一の文字列と第二の文字列とする)に含まれる各変数が、各文字列内では共通に束縛され、文字列間では独立に束縛されるものとしながら(あるいは、同名変数を共通に束縛するスコープを各文字列内のみ(あるいは、文字列間は変数のスコープ外)としながら)、
各変数に、固定文字列(空文字を含む)又は変数を含む文字列を再帰的に代入してみて解の集合を求める処理方法であって、
代入してみる変数を相手文字列の頭又は尾が固定文字である自文字列の対応する頭又は尾の変数に限定し、
代入値を、該頭である場合には該頭の固定文字もしくは固定文字列に続く新しい変数又は<空>とし、該尾である場合には新しい変数に続く該尾の固定文字もしくは固定文字列又は<空>とし、
変数に代入した結果について、各文字列の頭及び尾に共通して存在する文字数分の固定文字を両者から除くことを繰り返す、
ことを特徴とする特許文献1の請求項16又は17に記載の処理方法を提供する。
これにより、頭及び尾の固定文字の存在に着目して解の列挙範囲を(探索の網羅性を損なわずに)大幅に制限すること可能になり、大幅な計算量節約と高速化が可能になる。
(0032)
また、特許文献1の請求項24は、
前記固定文字列又は変数を含む文字列として極小となる解の集合を求める際、
束縛されない変数が互いに残っているパターンとヘッド部又は事実とからなる両文字列(第一の文字列と第二の文字列とする)に含まれる各変数が、各文字列内では共通に束縛され、文字列間では独立に束縛されるものとしながら(あるいは、同名変数を共通に束縛するスコープを各文字列内のみ(あるいは、文字列間は変数のスコープ外)としながら)、
各変数に、固定文字列(空文字を含む)を再帰的に代入してみて解の集合を求める処理方法であって、
各文字列の頭及び尾に存在する文字数分の共通する固定文字を除いてできる両文字列中の固定文字種(変数の識別子やデリミタを除いた文字種)だけを用いてできる束縛情報を、束縛する値の文字列長の合計が小さいものから順に列挙していくことにより求める、
特許文献1の請求項16又は17に記載の処理方法を提供する。
これにより、一定の性質をもった問題については、効率よく解に到達し、列挙することもできる。
(0033)
また、特許文献1の請求項25は、
求めた「変数を含む文字列として極小となる解の集合」をもとに、
当該ホーン節の変数を当該変数を含む文字列で一時的に書き換えてできるホーン節により探索を継続する特許文献1の請求項19〜24に記載の処理方法を提供する。
これにより、パターンとホーン節(ルール)のヘッド部とが単一化するために必要であることが計算された制約(上記の例では、変数「$C」が”$Aは”という形の文字列で束縛(代入)されることでしか単一化しえないという制約の働くような単一化方針(例えば、上記最後の代入組の場合)もある)を、そのホーン節のボディ部の探索プロセスに伝播することができ、探索を効率化することができる。
(0034)
また、特許文献1の請求項26は、
求めた「変数を含む文字列として極小となる解の集合」をもとに、
「変数を含む文字列」の変数部分に、当該「変数を含む事実」の解組の集合としてあらかじめ定義された固定文字列組の集合の各要素を代入してできる固定文字列組の集合を返す、
特許文献1の請求項19〜25のいずれか一項に記載の処理方法を提供する。
これにより、変数(一個又は複数)を含む事実とその変数に埋めうる適切な答え(又は仮説)の集合とをひもづけたデータベース(例えば、「言葉方程式(登録商標)」「VLANK(登録商標)」中の知識源)と効率的に連携した解探索を行うことができる。また、似た文型をもつ大量の事実を、本発明の枠組みと連携させて効率的に管理することができる。
(0035)
また、特許文献1の請求項27は、
前記自動単一化処理又は自動導出処理において、
変数を含む第一のパターンと変数を含む第二のパターンとの自動単一化を行う場合、
両パターンの頭及び尾に存在する文字数分の固定文字が一致しており、かつ、同じ変数が各パターン内で一度しか出現しない場合、
無限個の解の存在を意味する情報を返す、
特許文献1の請求項1から26のいずれか一項に記載の処理方法を提供する。
(0036)
また、特許文献1の請求項28は、
特許文献1の請求項1から27のいずれか一項の方法を実行するための装置を提供する。
(0037)
また、特許文献1の請求項29は、
特許文献1の請求項1から27のいずれか一項の方法をコンピュータに実行させるためのコンピュー
タプログラムを提供する。
(特許文献1の発明の効果)
(0038)
本発明の効果は、各特許文献1の請求項について上述したとおりである。
(特許文献1の図面の簡単な説明)
(0039)
(図1)図1は本発明を最も効果的に実施するネットワークシステムの全体図である
。(実施例1)
(図2)図2は本発明を実施するコンピュータのハードウエア構成を示した説明図で
ある。(実施例1)
(図3)図3は本発明を実施する端末における画面表示の例を示した説明図である。
(実施例1)
(特許文献1の発明を実施するための形態)
(0040)
本発明は、ネットワークに接続された/接続されてないあらゆる種類のコンピュータ(クラウドサーバー、大型汎用機、デスクトップPC、ノートPC、携帯端末、本発明専用機)において実施することができるが、一般的なマルチタスク機能とウィンドウ機能をもちインターネットに接続されたPCにより実現した形態により説明する。
図1は本発明を最も効果的に実施するそのネットワークシステムの全体図であり、コンテンツ管理装置1は、利用者PC2又は利用者兼管理者PC2により、本発明で取り扱うコンテンツ(ルールや事実)の投稿を受け付け、所定のポリシーによって共有アクセス権やコンテンツ提供優先順位を制御しながらコンテンツを配信する公知のファイル共有サーバーでよい。利用者PC2は、その利用者ごとに、その信じる内容(や検討したい内容)を自然言語で表現したコンテンツ(ルールや事実)を本発明の方法に沿って入力して記憶し本発明の方法によって処理するコンピュータ、携帯端末等である。
図2は本発明で用いるコンピュータのハードウエア構成を示した説明図である。これは計算機の構成としては一般的なものであり、本発明の特徴は、不揮発性メモリ2hに記憶されたプログラム3及びコンテンツデータ4の指示や記載に従い自然法則を用いてCPU2eで処理される処理の内容、及び、利用者との対話プロトコル(書式)の在り方にある。
図3は本発明を実施する端末における画面表示の例を示した説明図である。図では「?$Aしない」という問い(オープンクエスチョン形式)に対して、図示しない記憶したリストLの1行目の「されていやなことはなるべくしない」という事実を用いて「$A =
されて嫌なことをなるべく/1/」という答えを列挙し、同様にリストLの9行目の「いじめをしない」という事実を用いて「$A = いじめ/9/」と答えている。
(0041)
このような実施形態においては、C++言語等を介して製造されたコンピュータプログラムにより、コンピュータ(PC等)に可能なあらゆる動作を実施させることができる。したがって、自然法則を用いたコンピュータの公知の基本的な動作(レジスタやメモリやストレージへの記憶・取り出し、四則演算、比較、等)や既に開発環境等の標準ライブラリとなっている一般的な機能(変数やN次元配列への代入・比較・コピー、文字列や数値の操作/比較/表示、リスト構造・キュー構造・ハッシュ構造・ベクトル型等の操作、バイナリ―サーチやソート操作、正規表現によるパターンマッチ操作、ネットワーク通信操作、等)の実現方法については、本発明の本質(新規性や進歩性につながる独自の構成)とも異なり、当業者にもよく知られているので、詳述はしない。一方、このような一般的な機能を組み合わせて、本発明に固有の処理をどのような操作順序や記憶の仕方(アルゴリズムやデータ構造)で実現するかについては、以下に詳述する。このアルゴリズム等の説明、上記した課題解決手段の説明及び本発明の図面の説明を提供して開発の参考とさせることにより、標準レベルの職業的プログラマであれば、標準的なアプリケーションプログラム開発技法(C++によるGUIアプリケーション統合開発環境、等)を用いて、本発明の方法をコンピュータに実施させることが明らかに可能となり、また、この方法のための装置やプログラムを作成することも可能となる。
(0042)
以下に示すアルゴリズムは、C言語/C++言語等を用いて所望の「関数」を新たに定義した上で関数呼出しを行うという標準的な構造化プログラミングをベースにしたアルゴリズムであり、当業者は、下記各関数の機能分担に応じた入出力や機能切り分けを行いながら(或いは、下記に示した仕様に沿って関数群をそのままコーディングすることにより)、本発明の解決手段に相当する処理手段(プログラムや計算機)を実現することが可能となる。
(0043)
■問い合わせPに対する知識リストLの処理アルゴリズム仕様
=====================================================================================================================
関数Q1(P:変数を含みうるパターン,L:知識リスト):★全特許文献1の請求項に共通するメイ
ン関数の実施例1★

1.Lの最初の行の内容B(事実又はホーン節)を取り出す。
ただし、Lが空の場合(最初の行が取り出せなかった場合)、偽を出力して終了。
2.変数の束縛情報Cの初期値を空とし、下記関数H(P,B,C)を呼出し、真となる(=マッチする)束縛情報(=解集合)Cを出力。
真(=マッチした)の場合
真(はい)を出力する(マッチした内容Bの行番号も添えて出力する)。
偽の場合
何もしない。
3.Lの次の行の内容B’が
ある場合
・B←B’とし、2に移動する。
ない場合
・2で真を一度も出力していない場合は偽(いいえ)を出力。
・終了。

(0044)
■問い合わせPに対する知識リストLの処理アルゴリズム仕様(事前固定文字列化版)
=====================================================================================================================
関数Q2(P:変数を含みうるパターン,L:知識リスト):★全特許文献1の請求項に共通するメイ
ン関数の実施例2(事前固定文字列化版)★

(事前の固定文字列化)
1.{Lのみから演繹できるすべての文字列/その各文字列を演繹する根拠として用いたLの行番集合}を各行とする固定文字列テキストTを求める。
具体的には、上記関数Q1(”$A”,L)の出力系列(A=解1/根拠1,A=解2/根拠2,・・・)の要素を各行としてマージしたテキストTを求める。
求める途中で無限ループになる場合について、明示的な呼出管理スタック等を用いた無限ループ検出機能により演繹を部分的に省略する。
・例えば、ホーン節の真偽の確認をある変数束縛条件下でコンピュータが行う途中で
同じホーン節の真偽を同じ変数束縛条件下で確認しようとしていないかを、
構造体(確認中のホーン節識別子,現在の変数束縛条件)をメンバーとする呼出管理スタックを管理し、
呼出し時にスタックの根に向かって同じ組み合わせがないかリニアサーチすることにより
無限ループを検出する。
(固定文字列のみである故にQ1よりシンプルな方法(関数F)で解集合を求める) 2.テキストTの各行tにつき、下記関数F(P,t,C)が真となるCをすべて出力する。
(最終結果の出力)
3.Cが一つでもあれば真を出力し、なければ偽を出力する。

(0045)
■問い合わせPに対する、一の事実(固定文字列)又はホーン節B(但し、ヘッドに含まれるすべての変数がボディにも存在)の処理アルゴリズム仕様
=====================================================================================================================
関数H(P:変数を含みうるパターン,B:一の事実(固定文字列)又はホーン節,C:変数の束縛情報):★特許文献1の請求項1〜15の発明で使用する関数の実施例1−1★

Pが変数を含まない場合{
Bが事実である場合{
P=Bの場合は、真を返す。
そうでない場合は偽を返す。

Bがホーン節である場合{
Bのヘッド部が変数を含まない場合{
P=Bのヘッド部の場合は、関数D(Bのボディ部,E)の真偽を返す。
そうでない場合は偽を返す。

Bのヘッド部が変数を含む場合{
F(Bのヘッド部,P,C1)を真とする各C1について、
関数D(Bのボディ部にC1を適用したもの,E)の結果が真となるC1があれば、 真を返す。
そうでない場合は偽を返す。



Pが変数を含む場合{
Bが事実である場合{
F(P,B,C1)が真となるC1が存在すれば、そのようなすべてのC1をCに加えて真を返す。
そのようなC1が存在しなければ、偽を返す。

Bがホーン節である場合{
Bのヘッド部が変数を含まない場合{
F(P,Bのヘッド部,C1)を真とするC1が存在する場合で、かつ
関数D(Bのボディ部,E)が真であれば、そのようなすべてのC1をCに加えて真を返す。
そうでない場合は偽を返す。

Bのヘッド部が変数を含む場合{
★特許文献1の請求項12の発明を実施する場合★
//高速化の工夫(オプション)開始
PとBのヘッド部の頭及び尾に存在する文字数分の固定文字が一致していない場合{ 偽を返す。
}//高速化の工夫(オプション)終了
★特許文献1の請求項13の発明の実施★
PとBのヘッド部の頭及び尾に存在する文字数分の固定文字が一致している場合{
関数D(Bのボディ部,E)の結果が真となるE中のいずれかの束縛情報Gについて、
関数F(P,Bのヘッド部をGで束縛したもの(固定文字列になるはず),C1)を真とするC1があれば
そのようなすべてのC1をCに加えて真を返す。
そのようなC1が存在しない場合は偽を返す。





(0046)
■ホーン節のボディ部(又は変数を共有する重文の問い合わせ)の解集合の列挙アルゴリズム仕様
=====================================================================================================================
呼出例
→関数D("$Aと$Bは友達だ,$Aは人間,$Bは人間", E);
戻り例
←真(E=((A=花子,B=太郎),(A=太郎,B=次郎),(A=次郎,B=三郎)))
=====================================================================================================================
関数D(J:ボディ部(又は変数を共有する重文の問い合わせ),E:解集合):★請求項6の発明で使用する関数の実施例1−2A★
※ただし、知識源全体Lはグローバル変数に格納して参照可能とする

1.J中の最初の文Mを取り出す。最初の文が存在しない場合真を返す。
2.知識源全体Lに対して、前記関数Q1(M,L)又はQ2(M,L)を呼び出す。 結果が偽のときは
偽を返す。
真のとき
Mが変数を含まない場合
何もしない。
Mが変数を含む場合
Mを真とするためにとりうる束縛情報の集合Cを記憶する。
※真とするために束縛不要の変数は、その旨を明示的に示すこともできる。
※束縛値が無限集合でありながら真とするために一定の条件を要求する場合は、その条件を付記することもできる。
3.J中の次の文M’を取り出す。存在しない場合、真(E=束縛情報の集合C)を返す。
4.知識源全体Lに対して、前記関数Q1(M’,L)又はQ2(M’,L)を呼び出す。
結果が偽のときは
偽を返す。
真のとき
M’が変数を含まない場合
何もしない。
M’が変数を含む場合
M’を真とするためにとりうる束縛情報の集合C’と記憶してあった集合Cとの積集合を新たなCとする。
但し、元々の集合Cが空集合でなく積集合をとって空集合となったときは偽を返す。 ※真とするために束縛不要の変数は、その旨を明示的に示すこともできる。
※束縛値が無限集合でありながら真とするために一定の条件を要求する場合は、その条件を付記することもできる。
5.3に戻る。

関数D2(J:ボディ部(又は変数を共有する重文の問い合わせ),E:解集合):★請求項6の発明で使用する関数の別の実施例1−2B(関数の再帰呼び出しを用い束縛情報を他の文に波及させることにより高速化を図ったもの)★

1.J中の最初の文Mを取り出す。Mが存在しない場合真を返す。
2.知識源全体Lに対して、Q1(M,L)又はQ2(M,L)を呼び出す。
結果が偽のときは
偽を返す。
真のとき
Mが変数を含まない場合
Jの次の文がなければ真を返し
あれば次の文を新たなMとし2に戻る。
Mが変数を含む場合
Jの次の文がなければ、とりうる束縛情報をEに格納して真を返し
あればとりうる束縛情報を集合Cとして記憶する。
3.Eを空にし、集合C中の各束縛情報Kについて
再帰呼び出しD2(KによりJの次の文以降を束縛してできるボディ部J’,E’)を実行する
結果が真のときは
Eに、真となったそのKかつE’を加える
4.各Kについて一度も真となっていないときは偽を返し、一度でも真となっているときは真(E)を返す

関数D3(J:ボディ部(又は変数を共有する重文の問い合わせ),E:解集合):★請求項5の発明で使用する関数の実施例1−3★

1.J中の最初の文M1を取り出す。最初の文が存在しない場合真を返す。
2.知識源全体Lに対して、Q1(M1,L)又はQ2(M1,L)を呼び出す。
結果が偽のときは
偽を返す。
真のとき
M1が変数を含まない場合
何もしない。
M1が変数を含む場合
とりうる束縛情報の集合C1を記憶する。
3.同様に、偽とならないうちはM2,M3・・・についてC2,C3・・・を求めていく。
偽となった場合は偽を返す。
4.残ったC1,C2,C3・・・Cnについて積集合Cを求めて、真(C)を返す。}
(0047)
■問い合わせPに対する事実Sの多長一致解(複数も可)の列挙アルゴリズム仕様
=====================================================================================================================
呼出例
→関数F("$Aと$Bは友達だ","太郎と次郎と三郎は友達だ", "");
関数F(P:変数を含みうるパターン,S:定数文字列,C:変数の束縛情報):★請求項2の発明(ただし、「(又は最後)」と「又は前」を省いた実現例)で使用する関数の実施例1−4A★

(準備)
1.P中の変数の種類数Vと、出現する変数の名前N1,N2,・・・を出現順に求める
(Pがもともと変数を含まない場合への対応)
2.Vが0のときは、
⇒ P=Sのとき、真を返して終了。
⇒ P≠Sのとき、偽を返して終了。
(出力)
3.Vが1のときは、N1がP中に何回出現しようとも、PとSの単一化の解R1は1つしかないので、
⇒ マッチする場合、その唯一の解を「CかつN1=R1」として出力して、真を返して終了。
⇒ マッチしない場合、偽を返して終了。
※単一化そのものは、正規表現とのマッチ(同じ変数が二度以上出現する場合は後置参照あり)として実施可能
4.Vが2以上のとき
変数N1についての最長一致解R1で、P中の全てのN1を埋めてできるP’について 再帰呼び出しF(P’,S,CかつN1=R1)を実行
⇒ N1について最長一致解とした解集合が出力される
5.R1’←R1の最後の1文字を除いた文字列とし
P中の全てのN1をR1’で埋めてできるP’’について
再帰呼び出しF(P’’,S,CかつN1=R1’)を実行
⇒ N1について、最長一致解より1文字除いた解候補R1’とした解集合が出力される
6.R1’が
1文字以上の場合、(★特許文献1の請求項3では最短一致解の文字数より大きい場合)
⇒R1←R1’として5に戻る。
0文字の場合、(★特許文献1の請求項3では最短一致解の文字数である場合)
終了。

(0048)
関数F(P:変数を含みうるパターン,S:定数文字列,C:変数の束縛情報):★請求項4の発明で使用する関数の実施例1−4B★
//P中で変数が最初に出現した直後の固定文字列の最初の文字Cに着目して高速化の工夫その1をした関数F

(準備)
1.P中の変数の種類数Vと、出現する変数の名前N1,N2,・・・を出現順に求める
(Pがもともと変数を含まない場合への対応)
2.Vが0のときは、
⇒ P=Sのとき、真を返して終了。
⇒ P≠Sのとき、偽を返して終了。
(出力)
3.Vが1のときは、N1がP中に何回出現しようとも、PとSの単一化の解R1は1つしかないので、
⇒ マッチする場合、その唯一の解を「CかつN1=R1」として出力して、TRUEを返して終了。
⇒ マッチしない場合、偽を返して終了。
4.(高速化の工夫その2。この処理は5以降でカバーされるため省いてもよい。★この工夫2は、特許文献1の請求項にはしていない★)
Vが2以上のときで、
すべての変数(N1(=N),N2,・・・)について最長一致モードでマッチしてみた解と
すべての変数(N1(=N),N2,・・・)について最短一致モードでマッチしてみた解と
が同一(N1=R1,N2=R2,・・・)のとき
⇒ その唯一の解を「CかつN1=R1かつN2=R2かつ・・・」として出力して終了する
そもそもマッチしなかった場合、
⇒ 偽を返して終了。
同一でないとき
⇒ 5に続く
5.Vが2以上のとき
変数N1についての最長一致解R1で、P中の全てのN1を埋めてできるP’について 再帰呼び出しF(P’,S,CかつN1=R1)を実行
⇒ N1について最長一致解とした解集合が出力される
6.P中で変数N1の後すぐに
変数N1(自分自身)が続くとき
⇒ 7以降で処理する
別の変数N2が続くとき
⇒ 7以降で処理する(ただし、7で1文字CはN2の解R2の最初の1文字とする)
固定文字が続くとき
⇒ 7以降で処理する
7.P中で変数N1が最初に出現した直後の固定文字である1文字C(直後が別の変数N2であるときはR2の最初の1文字C)が
最長一致解R1に含まれる場合
⇒ 1)R1’←R1の文字列の最後からそのCにあたるまでの部分文字列を削除した文字列
⇒ 2)P’’←R1’でP中のすべてのNを埋めてできるパターン
⇒ 3)再帰呼び出しF(P’’,S,CかつN1=R1’)を実行
⇒N1について一段階だけ短めの解が存在すれば出力できるはず
最長一致解R1に含まれない場合
⇒ N1についてはより短い解の列挙が終わったので、終了。
8.R1←R1’として7に戻る。

=====================================================================================================================
In the embodiment of the following patent specification (above, excerpt from Patent Document 1) by the same inventor,
It shall be carried out by additionally implementing the function peculiar to the present invention.
The following references also include supplementary purposes in terms of feasibility and inventive step of the present person.
===
<Problems of Patent Document 1> It is possible to automatically process knowledge expressed in the form of embedding variables in natural language on a computer in the same way as PROLOG, and comprehensive deduction and solution search (automatic unification processing) at the predicate logic level. , Automatic derivation processing, backward inference for that, backtrack).
Make full use of the advantage that variables are not tied to the case structure, speed up processing, and display the results in an easy-to-read manner for proof and learning.
<Solutions for Patent Document 1 (Overview)>
When a human inputs a "fact", "rule" or "goal" in PROLOG, the constant part and the variable part of the content corresponding to "literal" in PROLOG are input to the computer separately by the character type, delimiter or escape character.
The computer treats variables as being able to straddle boundaries such as the main part and predicate of a sentence, and performs automatic unification processing, automatic derivation processing, or both of the sentences included in the input.
The pattern, which is a statement that can contain variables, and the constant character string, which is a statement that does not contain variables, are unified, and the longest matching solution of the variable that first appears in the pattern is obtained, and the character string of the longest matching solution is obtained. For each new pattern that can be created by substituting the process of scraping from the back until it becomes an empty character, each state of the solution of the scraping process that was the premise that the new pattern can be created is stored in the same way recursively. Repeat until there are no variables, and combine the states of each intermediate solution that was unified when there are no variables to obtain the answer for each unification.
It speeds up by detecting whether the fixed character string in the pattern is included in the character string in the process of removing the longest matching solution.
Pattern-to-pattern unification is accelerated by focusing on the matching of the beginning and end of words. A concrete method of full search is also provided.
<Solutions for Patent Document 1 (full text, but some additions and amendments so as not to be confused with the present invention)>
(0009)
The present invention has been made in view of such a problem, and claim 1 of Patent Document 1 is set forth in claim 1.
A method in which a computer automatically performs some or all of the functions of the logic programming language PROLOG.
When a human inputs a "fact", "rule" or "goal" in PROLOG, the constant part and variable part of the content corresponding to "literal" in PROLOG (hereinafter referred to as "sentence") are character types, delimiters or escape characters. Input to the computer separately by
The above "facts", "rules" or, while the computer treats the variables as being able to cross the sentence's main part, predicate, subject, predicate, object, complement, conjunctive modifier, conjunctive modifier or sentence boundary. Performing automatic unification processing, automatic derivation processing, or both of the sentences included in the input of "goal",
Provide a processing method characterized by.
Here, "human beings input the constant part and the variable part into the computer by distinguishing them by the character type, the delimita or the escape character" means that the human beings input in the input field of the application software (processing system) according to the present invention. Input directly after the command prompt (with or without a front-end processor, etc.), copy-paste or cut-paste from an Internet browser, text editing software, etc., or a text file that has been input and saved separately. Etc. are included in reading, quoting, and referencing.
In addition, "the computer treats variables as those that can cross the subject, predicate, subject, predicate, object, complement, conjunctive modifier, conjunctive modifier, or sentence boundary" means Japanese, etc. It can only straddle the boundaries (explicit delimiters) of case structures with explicit delimiters (including those that correspond to the hierarchical structure of parsing results and semantic analysis results) via predicates such as assistants and English. Instead, it can straddle the boundaries between S and V, the boundaries between V and O, the boundaries between V and C, etc. in SV format, SVO format, SVOO format, and SVOC format, such as English, and the boundaries between compound sentences and compound sentences. Includes modes that are treated as possible (conversely, there may be modes that are not treated). In these cases, as solution candidates that can be included in variables, an arbitrary sub-character string is extracted from the entire sentence or the character string that constitutes the entire sentence, ignoring the unit of delimiter by the grammatical structure as the sentence, and further, the hierarchy The whole of compound sentences / double sentences with a typical reference structure, longer papers, etc., and any substrings of them are targeted (note that "sentence boundaries" can also be treated as possible. When dealing with a set of knowledge sources (for example, reading, writing, referencing, etc., a set of knowledge sources in a file), it is necessary to separate the knowledge sources at "other than" the sentence boundary. Therefore, for example, a line feed code, a tab code, or the like can be used as such a delimiter).
As a result, knowledge and information expressed in the form of embedding variables in natural language and knowledge and information in the ordinary sentence format are unified knowledge that opens up the possibility of realistic mutual utilization between them. As a source, it becomes possible to automatically process the two by a computer without distinguishing between them (overcoming the above-mentioned "difficulty A").
In order to open up the possibility of "realistic" interaction "sufficiently", automatic processing by a computer should be provided as a search processing system. 1) Convenience of search formulas (expressions that specify patterns), 2) Sufficient The precision rate (accuracy of the solution), 3) the sufficient recall rate (comprehensiveness in extracting solution candidates) must be provided, but in the present invention, the sentence is free (that is, the grammar and meaning). While allowing the embedding of variables (multiple types or multiple times) in places (not limited to delimiters) (ensuring convenience), it is basically based on the PROLOG knowledge processing procedure (and the underlying knowledge interpretation policy). By following, the risk of deterioration of the precision rate (solution accuracy) that may occur due to the hybrid knowledge processing procedure (and the complicated knowledge interpretation policy corresponding to the hybrid processing procedure) as in other processing systems is avoided. At the same time, by "treating variables as being able to cross the sentence's main part, predicate, subject, predicate, object, complement, conjunctive modifier, conjunctive modifier, or sentence boundary", a delimiter expression in natural language ( Unjustified disagreement (regular expression) caused by the appearance of crying of specified patterns by reading points, punctuation points, parentheses, commas, periods, etc. Unmatching) is prevented, and a certain degree of reproducibility (comprehensiveness in extracting solution candidates) can be ensured between superficial character string expressions (between search expressions and knowledge sources) where the case structure is not specified. In addition, integrated and continuous inference / extraction (as a solution candidate to a variable) that does not easily impair the exact context (character strings before and after) of the natural language that became the source of knowledge becomes possible, and in the end, its transparency. The simplicity makes it easy and easy to confirm and verify the substantial soundness of the reasoning (the validity of the grounds and the reasoning process), and gives the user a realistic sense of security that the grounds are always clear. Take full advantage of the specification that variables are not tied to a case structure (and you don't have to know about case structure rules (such as the order of appearance) and you don't have to worry that the order of arguments may be wrong). Allows you to cut.
Since the first target of the present invention is Japanese (a large amount of information in one character and no space between words), many contents use characters as a processing unit and a delimiter unit, but English and the like. (The amount of information in one character is small, the number of characters in one sentence is large, but there is a space between words), it is possible to perform the same processing in units of words separated by spaces.
(0010)
Further, claim 2 of Patent Document 1 is
In the automatic unification process
Unification of a pattern that can contain variables (a constant part and a variable part are distinguished by a character type, a delimiter, or an escape character) and a constant character string that is a sentence that does not contain variables.
Find the longest matching solution (eg Taro and Jiro) of the variable (eg $ X) that appears first (or last) in the pattern (eg $ X and $ Y like $ Z) and find the longest matching solution. Each new pattern (example: Taro and Jiro> Taro and Jiro> Taro and> Taro and>Taro>Ta> Sky) that can be created by substituting the process of cutting the character string from the back (or front) to the empty string : "Taro and Jiro and $ Y like $ Z">"Taro and Jiro and $ Y like $ Z">"Taro and Jiro and $ Y like $ Z">"Taro and $ Y like $ Z""Ilike">"Taro and $ Y like $ Z">"and $ Y like $ Z"), each state of the solution of the shaving process that was the premise that the new pattern can be created ($ X = While memorizing Taro and Jiro> Taro and Jiro> Taro and>Taro>Ta> Sky)
Recursively repeat until there are no more variables,
The state of each solution that was unified when the variables disappeared (example: true ($ X = Taro and Jiro, $ Y = Saburo), true ($ X = Taro, $ Y = Jiro and Saburo)) Characterized by combining and obtaining answers for each unification (example: answer 1 = ($ X = Taro and Jiro, $ Y = Saburo), answer 2 = ($ X = Taro, $ Y = Jiro and Saburo)) The processing method according to claim 1 of Patent Document 1 is provided.
Here, "(or last)" corresponds to "(or before)", and when substituting from the variable that appears last, it means that the start of scraping must be from the front.
This makes it possible to verify the state of each solution candidate that reliably covers all possibilities from the longest matching solution to the shortest matching solution, and to provide a comprehensive answer (a set of further narrowed solution candidates). It will be possible.
(0011)
Further, claim 3 of Patent Document 1 is
The processing method according to claim 2 of Patent Document 1, characterized in that, instead of gradually cutting until it becomes an empty string, only the shortest matching solution obtained separately is gradually cut.
As a result, it is possible to save the calculation of the solution search from the length less than the shortest matching solution to the "empty" character, and it may be possible to speed up the automatic processing.
(0012)
Further, claim 4 of Patent Document 1 is
When gradually scraping until it becomes an empty string
If one character C (immediately after (or immediately before)), which is a fixed character immediately after (or immediately before) the variable first appears (or last) in the pattern, is another variable and the solution is not an empty string, the variable is changed to the other variable. When the first (or last) one letter C) of the solution candidate assigned as the solution candidate is included in the longest matching solution,
The processing method according to claim 2 or 3 of Patent Document 1, wherein the sub-character string from the end (or the beginning) of the character string of the longest matching solution to the first character string corresponding to the C is deleted including the C. provide.
Here, "(or last)" corresponds to "(or just before)", and when substituting from the variable that appears last, it means that the start of scraping must be from the front.
As a result, it is possible to save the enumeration of solution candidates that do not match the fixed characters immediately after (or immediately before) the variable and the search based on the solution candidates, and it may be possible to speed up the automatic processing.
(0013)
Further, claim 5 of Patent Document 1 is
In the automatic unification process or the automatic derivation process,
When requesting binding information that becomes the "goal" (including "sub-goal"; the same applies hereinafter)
Any one of claims 1 to 4 of Patent Document 1 that independently obtains binding information for each sentence constituting the "goal" and returns the return value true and the intersection of the binding information when the product set is not empty. The processing method described in the section is provided.
Here, the binding information is information indicating whether or not such a solution candidate has been assigned to each variable at the same time. The binding information indicating one binding method to each variable is "variable name 1 = value 1, variable name 2 = value 2, ..., variable name N =" by interpreting "," as an AND combination. While it can be expressed in a list format such as "value N", multiple bindings can be expressed as a set of such lists, or as a common part between multiple bindings by explicitly indicating an AND / OR combination instead of ",". It can be expressed in a conjunctive normal form or a disjunctive normal form that standardizes the whole of multiple bindings.
As a result, in the case of a problem form in which there are multiple patterns (sentences) to be satisfied at the same time, and variables with the same name should have the same solution among the patterns (sentences) (for example, such an AND join query from the user, When there are multiple sentences in the body part of the rule), there is less possibility that a large amount of full-text search processing will be unnecessarily repeated for each unification result of the pattern on the left side of the rule, and the body It is possible to avoid the inefficiency of depth-first search while backtracking the part (more remarkable inefficiency in the form of embedding variables in natural language), and to simplify the processing for each pattern to be satisfied at the same time. It also makes the display and verification (integrity and soundness) of the inference process easy to understand. In addition, it is possible to prevent the ordering (between sentences in the body part), which is unnecessary for the intuition required as the meaning of the rule and should not be defined, to have a side effect on the inference process.
(0014)
Further, claim 6 of Patent Document 1 is
In the automatic unification process or the automatic derivation process,
When seeking the binding information that is the "goal"
Empty the existing binding information first,
The sentence set contained in the "goal" is automatically calculated for whether the sentence can be true under the application of the existing binding information and the additional binding information for the possible binding information, and the additional binding information is used as the existing binding information. While adding, the sentence is recursively reduced except for the sentence,
The processing method according to any one of claims 1 to 4 of Patent Document 1 is provided in which the existing binding information when the sentence set becomes an empty set as it can be true is used as the binding information as the "goal". To do.
Here, "recursively reduce" means that the deeper the recursion, the smaller the statement set and the more complicated the binding information (more variables are bound, and the range of bound values is narrowed). For example, it means to realize equivalent recursive processing by a process of making a recursive call in C language or a stack structure (structure array and stack pointer, etc.) for depth priority search originally declared and defined.
This simplifies the problem of automatically processing an open question consisting of multiple patterns of AND binding that must be satisfied at the same time, expressed in the form of embedding variables in natural language, into a simpler and recursive partial problem with the same structure. Transform and facilitate the display and verification (completeness and soundness) of the inference process.
(0015)
Further, claim 7 of Patent Document 1 is
In the automatic unification process or the automatic derivation process,
When unifying the non-variable pattern with the non-variable fact
The processing method according to any one of claims 1 to 6 of Patent Document 1, which returns true when the pattern and the fact match as a character string, or returns false when the pattern and the fact do not match as a character string. provide.
As a result, the search can be performed simply and quickly.
In addition, when "fact not including variable" contains multiple sentences separated by punctuation marks. "Match as a character string" can also be provided with a mode in which the character string of the pattern may match a part of the actual character string.
As a result, a plurality of pieces of information of the same type can be collectively expressed as one fact and used as a search target. It also makes it easier to express some order between multiple elements (eg, size, preciousness, antiquity, etc.).
(0016)
Further, claim 8 of Patent Document 1 is
In the automatic unification process or the automatic derivation process,
When unifying the pattern that does not include variables and the head part that does not include variables in the horn clause,
When the pattern and the head portion match as a character string, the result of applying the processing method according to claim 5 or 6 of Patent Document 1 with the body portion of the horn clause as a subgoal is returned.
The processing method according to any one of claims 1 to 7 of Patent Document 1, which returns false if they do not match, is provided.
This explains the sound mechanical interpretation when the head of the rule that expresses the variable in the form of embedding it in natural language does not include the variable, the seamless, easy-to-understand, simple and unified processing mechanism, and the corresponding inference process. Can be given.
(0017)
Further, claim 9 of Patent Document 1 is
In the automatic unification process or the automatic derivation process,
When unifying a pattern that does not contain variables and a horn clause that has a head that contains variables,
Obtained by processing using the pattern as the "constant character string" in the processing method according to any one of claims 2 to 4 of Patent Document 1 and using the head portion as the "pattern" in the same processing method. About each binding information
If there is a true result of processing the one applied to the body portion of the horn clause as a "subgoal" of the processing method according to claim 5 or 6 of Patent Document 1, the true value is returned or exists. Provided is the processing method according to any one of claims 1 to 8 of Patent Document 1, which returns false if not.
As a result, when the head of the rule that expresses the variable in the form of embedding it in natural language contains the variable and the pattern that invokes this rule does not contain the variable, the bound range of the variable in the body part is limited in advance, and it is true. The processing of false judgment can be speeded up.
It can also provide sound mechanical interpretations, seamless, easy-to-understand, simple and unified processing mechanisms, and explanations of the corresponding inference processes.
(0018)
In addition, claim 10 of Patent Document 1 is
In the automatic unification process or the automatic derivation process,
When unifying patterns that include variables with facts that do not contain variables
The result of processing using the pattern as the "pattern" in the processing method according to any one of claims 2 to 4 of Patent Document 1 and using the fact as the "constant character string" in the same processing method. return,
The processing method according to any one of claims 1 to 9 of Patent Document 1 is provided.
As a result, all solution candidates (to the case variable) between the pattern and the (static) fact are identified and returned as the "result", which is the basis for overcoming the above "difficulty A". A simple mechanism can be given, facilitating not only visualization and verification of the inference process, but also learning through the user's hands such as rule modification.
(0019)
In addition, claim 11 of Patent Document 1 is
In the automatic unification process or the automatic derivation process,
When unifying the pattern containing variables and the horn clause having a head part not containing variables,
The result of processing using the pattern as the "pattern" in the processing method according to any one of claims 2 to 4 of Patent Document 1 and using the head portion as the "constant character string" in the same processing method. The binding information (C) is true, and the binding information is true when the result of processing the body portion of the horn clause as a "subgoal" of the processing method according to claim 5 or 6 is true. Return true with (C),
The processing method according to any one of claims 1 to 10 of Patent Document 1 is provided.
As a result, all solution candidates (for each variable) between the pattern containing variables and the head (static without variables) are identified and returned as "results". Therefore, the above "difficulty A" The basic mechanism for overcoming it can be simply given, facilitating not only visualization and verification of the inference process, but also learning through the user's hands such as modifying rules.
It also simply transforms into a simpler and recursive (or mutual recursion) subproblem with the same structure, facilitating the display and verification (completeness and soundness) of the inference process.
In addition, a sound mechanical interpretation when the head of the rule that expresses the variable in the form of embedding it in natural language does not include the variable, a seamless, easy-to-understand, simple and unified processing mechanism, and the inference process corresponding to these. An explanation can be given.
(0020)
In addition, claim 12 of Patent Document 1 is
In the automatic unification process or the automatic derivation process,
When unifying the pattern containing variables and the horn clause having a head part containing variables,
Returns false if the number of fixed characters in the pattern and the head, tail, or both of the head does not match.
The processing method according to any one of claims 1 to 11 of Patent Document 1 is provided.
As a result, compared to a uniform search, it is possible to clearly save a large amount of calculation and improve the processing speed.
(0021)
In addition, claim 13 of Patent Document 1 is
In the automatic unification process or the automatic derivation process,
When unifying the first pattern containing variables and the horn clause having a head containing variables,
If the pattern matches the fixed characters for the number of characters existing at the head and tail of the head part,
Each of the binding information obtained by binding the head portion of the horn clause with each binding information for which the result of applying the body portion of the horn clause as a "subgoal" in the processing method according to claim 5 or 6 of Patent Document 1 is true. About the second pattern
If the second pattern does not contain variables
Processing was performed using the first pattern as the "pattern" in the processing method according to any one of claims 2 to 4 of Patent Document 1 and using the second pattern as the "constant character string" in the same processing method. Returns the result,
The processing method according to any one of claims 1 to 12 is provided.
Here, "when the second pattern does not include variables" means that in the horn clause (rule), all the variables included in the head part are also included in the body part "also", and all the variables in the body part. As a result of the variables being bound by constants (fixed character strings), all the variables in the head part are also bound (assigned) by constants (fixed character strings), so the variables in the head part disappear and the head part becomes a constant character string. It means that it can be regarded.
As a result, the unification of the pattern including variables and the horn clause (rule) having a head portion including variables can be mechanically and automatically performed in a flow that is easy for the user to trace by using a simple calculation model.
That is, all solution candidates (those that should be assigned to each variable of the pattern) between the pattern containing the variable and the head part that does not include the variable (by each binding information) (= constant character string) are identified and " By reducing the original more complicated problem (variable-to-variable unification) (transforming the problem) into the form returned as "result", the basic mechanism for overcoming the above "difficulty A" is simplified. It is made easy to express as a giving and thinking process. In addition, in this "reduction (conversion of the problem)", the inference process is visualized and verified (completely) because it is simply converted into a sub-problem with the same structure that is simpler and recursive (or mutual recursion). It facilitates learning through the user's hands, such as modifying rules as well as (of sexuality and soundness).
After all, a sound mechanical interpretation when the head of the rule that expresses the variable in the form of embedding it in natural language contains the variable, a seamless, easy-to-understand, simple and unified processing mechanism, and an explanation of the inference process corresponding to these. Can be easily given.
(0022)
In addition, claim 14 of Patent Document 1 is
The processing method according to any one of claims 1 to 13 of Patent Document 1, characterized in that a computer restricts the input of facts including variables.
Here, the facts including variables (knowledge sources that are not rules) include, for example, "$ X is $ X" (tautologically tautological fact) and "$ X is $ Y" (. There is no basis for truth if only the superficial sentence patterns match).
By limiting the input of these to the computer, the calculation of the automatic unification process of patterns (sentences that can contain variables) and facts (sentences that do not contain variables (= fixed character strings)) becomes simple. , High-speed answer is possible by automatic processing. It also makes it difficult to mix unfounded facts into knowledge sources.
(0023)
In addition, claim 15 of Patent Document 1 is
The rule has a form similar to the so-called horn clause, and any one of claims 1 to 14 of Patent Document 1 is characterized in that the computer restricts the head portion from including a variable that does not appear in the body portion. The processing method described is provided.
Here, "the computer restricts the head part from including variables that do not appear in the body part" means that the head part is "$ X is nice" and the body part is "$ Y is strong, $ Y is $". Even if all the variables in the body part ($ Y and $ Z in this example) are bound (assigned), such as "Z-friendly, $ Z is a child, $ Y is smart", the variables in the head part In this example, it means that the computer restricts the input, storage, and activation of rules that leave ($ X) unbound as a source of knowledge. Such a rule leads to leaving unbound variables in the head, as in the case of facts, which tends to produce unhealthy inference results and slows down inference.
By restricting the input of such rules to the computer, the pattern (sentence that can contain variables) and the head part (sentence that does not include variables (= fixed character string) according to claim 13 of Patent Document 1) can be combined. The calculation of the automatic unification process with (reducible) is simplified, and high-speed answering by the automatic process becomes possible. It also makes it difficult to produce unfounded inference results.
(0024)
In addition, claim 16 of Patent Document 1 is
In the automatic unification process or the automatic derivation process,
Automatic unification of patterns and heads or facts with unbound variables remaining in each other,
It is characterized by finding and returning a set of solutions that are minimal as a fixed character string.
The processing method according to any one of claims 1 to 13 of Patent Document 1 is provided.
Here, as an example of "a set of solutions that are minimal as a fixed character string", {($) as a result of automatic unification between "$ A is $ B" and "$ C is also $ D". A = "mo", $ B = <empty>, $ C = <empty>, $ D = "is"), ($ A = empty, $ B = "also", $ C = "is", $ D = Empty)} may be provided.
This makes it possible to provide an example of a solution (especially the smallest simple example) even when there are an infinite number of solutions.
(0025)
In addition, claim 17 of Patent Document 1 is
In the automatic unification process or the automatic derivation process,
Automatic unification of patterns and heads or facts with unbound variables remaining in each other,
It is characterized by finding and returning a set of solutions that is the minimum as a character string containing variables.
The processing method according to any one of claims 1 to 13 of Patent Document 1 is provided.
Here, as an example of "a set of solutions that are minimal as a fixed character string", {($) as a result of automatic unification between "$ A is $ B" and "$ C is also $ D". A = "$ C also", $ B = <free>, $ C = <free>, $ D = "is $ B"), ($ A = <free>, $ B = "also $ D", $ It may provide two solutions such as C = "$ A is" and $ D = <freedom>)}. It is considered that the total (through the solution) of the character string length of the value that binds the variable (the value assigned to the variable) (however, if the variable is included, it is regarded as one character per occurrence of the variable) is minimized. be able to.
This makes it possible to provide a general form of a solution even when there are an infinite number of solutions.
(0026)
In addition, claim 18 of Patent Document 1 is
When the fixed characters for the number of characters that are common to the beginning and tail of each character string of the head part or fact and the pattern in which unbound variables remain are not the same.
Characterized by returning false,
The processing method according to claim 16 or 17 of Patent Document 1 is provided.
As a result, automatic search that cannot be unified can be saved, and automatic processing can be speeded up.
(0027)
In addition, claim 19 of Patent Document 1 is
When finding a set of solutions that is minimal as a character string containing the fixed character string or variables,
Each variable contained in both character strings (the first character string and the second character string) consisting of a pattern and a head part or a fact in which unbound variables remain in each other is bound in common within each character string. And while assuming that the strings are bound independently (or that the scope for binding variables with the same name in common is only within each string (or between strings is outside the scope of the variable)).
For each variable, any substring (<empty>) of the other string (the second string for the variable in the first string, the first string for the variable in the second string) and It is characterized by finding a set of solutions that is the minimum by a full search to find a case where both character strings match by substituting itself (including the entire character string).
The processing method according to claim 16 or 17 of Patent Document 1 is provided.
"Or substitute yourself ..." means to substitute "$ X" itself for "$ X" in the character string, and it happens to be in the first character string or the second character string. When $ X (the scopes of each are different) is included, the first character string $ X and the second character string $ X can be distinguished (for example, "$ X1" and "$". Clearly sound calculations can also be made by substituting (as X2 ”, etc.).
As a result, it is possible to secure a certain degree of completeness of the solution set (completeness depending on the nature of the problem (pattern pair)) while ensuring soundness and halting property (finiteness of calculation).
(0028)
Further, claim 20 of Patent Document 1 is
Not both strings themselves, consisting of patterns and heads or facts with unbound variables remaining in each other
Both character strings corresponding to the two character strings that remain after excluding the fixed characters for the number of characters that are commonly present at the beginning and tail of each character string of the pattern and the head part or fact where unbound variables remain in each other. about,
A processing method for performing the processing according to claim 19 of Patent Document 1 is provided.
As a result, the space for the entire search can be reduced while maintaining a certain level of completeness (in some cases, completeness) of the solution set, and the processing speed is increased.
For example, as a process of automatic unification between "Ishikawa's $ A likes $ B" and "Ishikawa's $ C also likes $ D ice cream", instead of searching for a solution as it is, Delete the common part of "$ A is $ B"
And "$ C is also $ D ice cream"
Then, by full search, all the substrings of "$ C is also $ D ice" for "$ A" and "$ B" (this is a variable such as $ C and $ D ($ {...) (The same applies to variables in the form of}) is 6 characters if it is 1 character, so while substituting 6 x (6 + 1) / 2 + 1 (<empty> minutes) + 1 (substitute itself) = 23 ways) , Similarly, all substrings of "$ A is $ B" for "$ C" and "$ D" respectively (since this is also 3 characters, 3 x (3 + 1) / 2 + 1 + 1 = 8 ways For all the character strings (23 x 23 x 8 x 8 ways) that can be created by substituting (existing), if both character strings match (for example, (for example)
"Moha ice cream",
"Hamo ice cream",
"$ A is ice cream",
"$ C is also ice cream",
"$ A is also $ D ice cream"
* By the way, the set of substitution sets when "$ C and $ B ice" do not match) {
($ A = "also", $ B = "ice", $ C = <empty>, $ D = "is"),
($ A = <empty>, $ B = "also ice", $ C = "is", $ D = <empty>),
($ A = "$ A", $ B = "also ice", $ C = "$ A is", $ D = <empty>),
($ A = "$ C also", $ B = "ice", $ C = "$ C", $ D = "is"),
($ A = "$ A", $ B = "also $ D ice cream", $ C = "$ A is", $ D = "$ D")
} Or a set of partial assignments for each assignment set (eg {{
($ A = "also", $ B = "ice"),
($ A = <empty>, $ B = "also ice"),
($ A = "$ A", $ B = "also ice cream"),
($ A = "$ C also", $ B = "ice"),
($ A = "$ A", $ B = "also $ D ice cream")
})
Can be answered as a solution.
Note that $ A = "$ A" and $ B = "also $ D ice" can be freely $ A and $ D, and can be unified by substituting any character string there (that is,). It is possible to show that there are infinite solutions and the constraints (regular expression form) of the infinite number of solutions (character strings).
(0029)
In addition, claim 21 of Patent Document 1 is
Substitute any substring (including <empty> and the entire string) of the other string for each variable, or try to find a case where both strings match. A set of solutions that is minimized by a full search. When asking
If the substring to be assigned to a variable contains a variable, the variable contained in the substring is replaced with a new variable that did not previously exist in both strings, and the same assignment to the new variable is made. The processing method according to claim 19 or 20 of Patent Document 1, further comprising performing a full search for a case where both character strings match while performing recursively.
As a result, it is necessary to search for a solution in which a fixed character in the own character string is reflexively assigned to a variable in the own character string via a variable in the other character string (for example, both character strings = { In the case of "$ X is $ X", "i $ Y u"}, it is necessary to be able to enumerate ($ X = "say", $ Y = "u yes") as solution candidates). The completeness of the solution candidate enumeration can be improved while maintaining the soundness. In the above example, both character strings (also called "pattern pair") = {"$ X is $ X", "i $ Y u"} to ($ X = "say", $ Y = "u yes") According to the present invention, it is possible to recursively search for the solution candidates ($ X = "i $ {Y1} u") ⇒ ($ {Y1} = <empty>) ⇒ ($ Y = "uye"). It can be shown by being able to generate branches (which are part of a search tree and can be generated a finite number of times in the case of breadth-first search according to the present invention).
“Recursively ... full search” means, for example, a matching substitution sequence while performing a breadth-first search that recursively repeats each possible assignment to each variable (same as the claim of the previous patent document 1). (For example, the above ($ X = "i $ {Y1} u") ⇒ ($ {Y1} = <empty>) ⇒ ($ Y = "uye"), etc.) are listed. The first variation of the assignment is if the types of variables in both strings are 2 and 3 respectively and the length of the string is 6 and 7 characters respectively (variables are collectively counted as 1 character). 2 pieces x (7 x (7 + 1) / 2 + 1 + 1) + 3 pieces x (6 x (6 + 1) / 2 + 1 + 1) = 60 + 69 = 129 ways. When performing a breadth-first search so that the maximum depths of further branches derived from these branches are equal, a limiter (program step to compare with the upper limit value, etc.) is provided according to the number of substitutions, etc., so that each search is performed once. Can be limited to an appropriate amount of calculation (ensure of stopping and response speed that is no longer guaranteed by reflexivity). Even in the case of a depth-first search, the amount of calculation can be limited by limiting the depth, the number of substitutions, and the like. In each case, an infinite loop by self-recursive or mutual recursion is provided, and a stack structure (array of structures) that manages recursive function calls is provided, and call parameters (its substitution series) of branches that are ancestors (more root direction). (It may include the state representation of both strings according to (assignment context)) can be avoided by comparing it with the current calling parameter. In addition, it is possible to prun the branches that cannot be unified depending on whether or not the fixed character strings existing at the beginning and the end of both character strings match the number of characters existing in common. If a solution is not found by searching for a limited amount of calculation (for example, 1 million substitutions or search depth within 20), it is found as "no solution (accuracy: 1 million substitutions and search depth within 20)". In that case, as "($ X =" say ", $ Y =" yes "), (...), ... (However, accuracy: 1 million substitutions and search depth within 20)" etc. It is also possible to answer the user while clearly indicating the search accuracy. In addition, if the entire search can be clearly performed within the limit number of substitutions and within the limit search depth (when there is completeness), "no solution (complete search completed)" or "($ X =") to that effect. It is also possible to answer the user by clearly stating ", $ Y =" yes "), (...), ... (all searched)".
(0030)
In addition, claim 22 of Patent Document 1 is
As for the result of assigning to the variable, the two character strings that remain after removing the fixed characters for the number of characters that are common to the beginning and end of each character string from both
As the "other party's character string" that is the target of "any substring of the other party's character string (including <empty> and the entire character string)", it exists at the beginning or end of the character string as the search progresses. Characterized by reducing the number of fixed characters,
The processing method according to any one of claims 19 to 21 of Patent Document 1 is provided.
As a result, the number of branches decreases as the search progresses (the more the branch goes to the tip), and the amount of calculation can be saved.
(0031)
In addition, claim 23 of Patent Document 1 is
When finding a set of solutions that is minimal as a character string containing the fixed character string or variables,
Each variable contained in both character strings (the first character string and the second character string) consisting of a pattern and a head part or a fact in which unbound variables remain in each other is bound in common within each character string. And while assuming that the strings are bound independently (or that the scope for binding variables with the same name in common is only within each string (or between strings is outside the scope of the variable)).
It is a processing method that recursively substitutes a fixed character string (including an empty string) or a character string containing a variable into each variable to obtain a set of solutions.
Limit the variables to be assigned to the variables at the beginning or end of the own character string whose head or tail is a fixed character.
The substitution value is a new variable or <empty> following the fixed character or fixed character string of the head if it is the head, and a fixed character or fixed character string of the tail following the new variable if it is the tail. Or <empty>
For the result of assigning to the variable, the fixed characters for the number of characters that are common to the beginning and the end of each character string are repeatedly removed from both.
The processing method according to claim 16 or 17 of Patent Document 1 is provided.
This makes it possible to significantly limit the enumeration range of solutions (without impairing the completeness of the search) by focusing on the existence of fixed characters at the beginning and tail, which enables significant computational complexity savings and speedup. Become.
(0032)
In addition, claim 24 of Patent Document 1 is
When finding a set of solutions that is minimal as a character string containing the fixed character string or variables,
Each variable contained in both character strings (the first character string and the second character string) consisting of a pattern and a head part or a fact in which unbound variables remain in each other is bound in common within each character string. And while assuming that the strings are bound independently (or that the scope for binding variables with the same name in common is only within each string (or between strings is outside the scope of the variable)).
It is a processing method that recursively substitutes a fixed character string (including an empty string) into each variable to find a set of solutions.
Binds binding information that can be created using only fixed character types (character types excluding variable identifiers and delimiters) in both character strings that can be created by excluding common fixed characters for the number of characters that exist at the beginning and end of each character string. Obtained by enumerating in ascending order from the one with the smallest total value string length.
The processing method according to claim 16 or 17 of Patent Document 1 is provided.
As a result, problems with certain properties can be efficiently reached and listed.
(0033)
In addition, claim 25 of Patent Document 1 is
Based on the obtained "set of solutions that is the minimum as a character string containing variables"
The processing method according to claims 19 to 24 of Patent Document 1 is provided, in which the search is continued by the horn clause that can temporarily rewrite the variable of the horn clause with a character string including the variable.
As a result, it is calculated that the pattern and the head part of the horn clause (rule) are required to be unified (in the above example, the variable "$ C" is in the form of "$ A is". The unification policy (for example, in the case of the last assignment set above) that has a constraint that it can be unified only by being bound (assigned) by a character string is applied to the body part of the horn clause. It can be propagated to the search process and the search can be streamlined.
(0034)
In addition, claim 26 of Patent Document 1
Based on the obtained "set of solutions that is the minimum as a character string containing variables"
A set of fixed character strings that can be created by substituting each element of the set of fixed character strings defined in advance as the set of solutions of the "facts containing variables" into the variable part of the "character string containing variables". return,
The processing method according to any one of claims 19 to 25 of Patent Document 1 is provided.
As a result, a database (for example, "word equation (registered trademark)" and "VLANK (registered trademark)" that links facts containing variables (s) and a set of appropriate answers (or hypotheses) that can be filled in the variables It is possible to search for a solution efficiently in cooperation with the knowledge source in "". In addition, a large number of facts having similar sentence patterns can be efficiently managed in cooperation with the framework of the present invention.
(0035)
In addition, claim 27 of Patent Document 1 is
In the automatic unification process or the automatic derivation process,
When performing automatic unification between the first pattern containing variables and the second pattern containing variables,
When the fixed characters for the number of characters existing at the beginning and tail of both patterns match, and the same variable appears only once in each pattern.
Returns information that means the existence of an infinite number of solutions,
The processing method according to any one of claims 1 to 26 of Patent Document 1 is provided.
(0036)
In addition, claim 28 of Patent Document 1
Provided is an apparatus for carrying out the method according to any one of claims 1 to 27 of Patent Document 1.
(0037)
In addition, claim 29 of Patent Document 1
Provided is a computer program for causing a computer to execute the method according to any one of claims 1 to 27 of Patent Document 1.
(Effect of Invention of Patent Document 1)
(0038)
The effects of the present invention are as described above with respect to the claims of each Patent Document 1.
(Brief description of drawings of Patent Document 1)
(0039)
(Fig. 1) Fig. 1 is an overall view of a network system in which the present invention is most effectively implemented. (Example 1)
FIG. 2 is an explanatory diagram showing a hardware configuration of a computer for carrying out the present invention. (Example 1)
FIG. 3 is an explanatory diagram showing an example of screen display in a terminal for carrying out the present invention.
(Example 1)
(Form for carrying out the invention of Patent Document 1)
(0040)
The present invention can be carried out on any kind of computer (cloud server, large general-purpose machine, desktop PC, notebook PC, mobile terminal, dedicated machine of the present invention) connected / not connected to the network, but is generally used. The description will be given in a form realized by a PC connected to the Internet, which has a multitasking function and a window function.
FIG. 1 is an overall view of the network system that implements the present invention most effectively, and the content management device 1 is a content (rule or fact) handled by the user PC2 or the user / administrator PC2 in the present invention. A well-known file sharing server that accepts posts and distributes content while controlling sharing access rights and content provision priority according to a predetermined policy may be used. The user PC2 inputs and stores the content (rules and facts) expressing the content (or content to be examined) in natural language for each user according to the method of the present invention, and stores the content (rules and facts) according to the method of the present invention. Computers, mobile terminals, etc. that process.
FIG. 2 is an explanatory diagram showing a hardware configuration of a computer used in the present invention. This is a general configuration of a computer, and a feature of the present invention is a process processed by the CPU 2e using the natural law according to the instructions and descriptions of the program 3 and the content data 4 stored in the non-volatile memory 2h. It is in the content of and the ideal way of dialogue protocol (format) with users.
FIG. 3 is an explanatory diagram showing an example of screen display in a terminal for carrying out the present invention. In the figure, in response to the question "? $ A not done" (open question format), "$ A =" is used by using the fact that "do not do anything unpleasant" in the first line of the memorized list L (not shown).
I enumerate the answers "as much as possible / 1 /" and answer "$ A = bullying / 9 /" using the fact that "do not bully" on the 9th line of the list L.
(0041)
In such an embodiment, a computer program manufactured via C ++ language or the like can cause a computer (PC or the like) to perform all possible operations. Therefore, known basic operations of computers using the laws of nature (storage / retrieval to registers, memory, and storage, four-rule operations, comparison, etc.) and general functions that have already become standard libraries for development environments, etc. (Assignment / comparison / copy to variables and N-dimensional arrays, operation / comparison / display of character strings and numerical values, operations such as list structure / queue structure / hash structure / vector type, binary search and sort operations, by regular expression The method of realizing the pattern matching operation, network communication operation, etc.) is different from the essence of the present invention (unique configuration leading to novelty and progress) and is well known to those skilled in the art, and will not be described in detail. .. On the other hand, what kind of operation order and storage method (algorithm and data structure) is used to realize the processing peculiar to the present invention by combining such general functions will be described in detail below. By providing an explanation of this algorithm, etc., an explanation of the above-mentioned problem-solving means, and an explanation of the drawings of the present invention for reference in development, a standard-level professional programmer can use standard application program development techniques ( It is possible to make a computer carry out the method of the present invention by using a GUI application integrated development environment using C ++, etc., and it is also possible to create a device or a program for this method.
(0042)
The algorithm shown below is an algorithm based on standard structured programming in which a desired "function" is newly defined using C language / C ++ language or the like and then a function call is made. A processing means (program) corresponding to the solution means of the present invention while performing input / output and function separation according to the function sharing of each of the following functions (or by coding the function group as it is according to the specifications shown below). And a computer) can be realized.
(0043)
■ Processing algorithm specifications of knowledge list L for inquiry P
================================================== ================================================== =================
Function Q1 (P: pattern that can include variables, L: knowledge list): ★ Example 1 of a main function common to all claims of Patent Document 1 ★
{
1. 1. Extract the content B (fact or Horn clause) of the first line of L.
However, if L is empty (if the first line could not be retrieved), a false output is output and the process ends.
2. 2. The initial value of the variable binding information C is emptied, the following function H (P, B, C) is called, and the true (= matching) binding information (= solution set) C is output.
When true (= matched) True (yes) is output (the line number of the matched content B is also output).
If false, do nothing.
3. 3. If there is a content B'on the next line of L-Set B ← B'and move to 2.
If not ・ If true is never output in 2, false (no) is output.
・ End.
}
(0044)
■ Processing algorithm specifications of knowledge list L for inquiry P (pre-fixed character string version)
================================================== ================================================== =================
Function Q2 (P: pattern that can include variables, L: knowledge list): ★ Example 2 of the main function common to all claims of Patent Document 1 (pre-fixed character string version) ★
{
(Pre-fixed character string)
1. 1. Find the fixed character string text T with {all character strings that can be deduced from only L / the line number set of L used as the basis for deducing each character string} as each line.
Specifically, the text T obtained by merging the elements of the output series (A = solution 1 / rationale 1, A = solution 2 / rationale 2, ...) of the above function Q1 ("$ A", L) as each line is used. Ask.
In the case of an infinite loop in the middle of the calculation, the deduction is partially omitted by the infinite loop detection function using an explicit call management stack or the like.
-For example, whether the computer is trying to confirm the authenticity of the same horn clause under the same variable binding condition while the computer is performing the confirmation of the authenticity of the horn clause under the same variable binding condition.
Manages the call management stack whose members are structures (the horn clause identifier being confirmed, the current variable binding condition),
Detect an infinite loop by linearly searching for the same combination towards the root of the stack at the time of the call.
(Since it is only a fixed character string, the solution set is obtained by a simpler method (function F) than Q1) 2. For each line t of the text T, all Cs for which the following function F (P, t, C) is true are output.
(Output of final result)
3. 3. If there is at least one C, it outputs true, otherwise it outputs false.
}
(0045)
■ Processing algorithm specification of one fact (fixed character string) or horn clause B (however, all variables included in the head also exist in the body) for inquiry P
================================================== ================================================== =================
Function H (P: pattern that can include variables, B: one fact (fixed character string) or horn clause, C: variable binding information): ★ Of the functions used in the inventions of claims 1 to 15 of Patent Document 1. Example 1-1 ★
{
If P does not contain a variable {
If B is a fact {
If P = B, it returns true.
If not, it returns false.
}
If B is the horn clause {
When the head part of B does not contain a variable {
In the case of the head portion of P = B, the truth of the function D (body portion of B, E) is returned.
If not, it returns false.
}
When the head part of B contains a variable {
For each C1 whose true F (B head, P, C1)
If there is C1 for which the result of the function D (C1 applied to the body part of B, E) is true, the true is returned.
If not, it returns false.
}
}
}
If P contains a variable {
If B is a fact {
If there is a C1 for which F (P, B, C1) is true, then all such C1s are added to C and the truth is returned.
If such C1 does not exist, it returns false.
}
If B is the horn clause {
When the head part of B does not contain a variable {
If there is a C1 whose true F (P, B head, C1) and the function D (B body, E) is true, then all such C1s are added to C. Returns true.
If not, it returns false.
}
When the head part of B contains a variable {
★ When implementing the invention of claim 12 of Patent Document 1 ★
// Ingenuity for speeding up (option) Start If the fixed characters for the number of characters existing at the head and tail of the heads of P and B do not match {Return false.
} // End of device for speeding up (option) ★ Implementation of the invention of claim 13 of Patent Document 1 ★
When the fixed characters for the number of characters existing at the head and tail of the head of P and B match {
For any binding information G in E for which the result of the function D (body part of B, E) is true
If there is a C1 whose true function is the function F (the heads of P and B bound by G (which should be a fixed character string), C1), all such C1s are added to C and the true value is returned.
If such C1 does not exist, false is returned.
}
}
}
}
}
(0046)
■ Algorithm specification for enumerating solution sets of the body part of the horn clause (or an important cultural property query that shares a variable)
================================================== ================================================== =================
Call example → Function D ("$ A and $ B are friends, $ A is human, $ B is human", E);
Return example ← True (E = ((A = Hanako, B = Taro), (A = Taro, B = Jiro), (A = Jiro, B = Saburo)))
================================================== ================================================== =================
Function D (J: body part (or inquiry of an important cultural property sharing a variable), E: solution set): ★ Example 1-2A of the function used in the invention of claim 6 ★
* However, the entire knowledge source L is stored in a global variable so that it can be referenced {
1. 1. Take out the first sentence M in J. Returns true if the first sentence does not exist.
2. 2. The function Q1 (M, L) or Q2 (M, L) is called for the entire knowledge source L. If the result is false, false is returned.
When true If M does not contain a variable Do nothing.
When M contains a variable Stores a set C of binding information that can be taken to make M true.
* Variables that do not need to be bound to be true can be explicitly indicated to that effect.
* If a certain condition is required to make it true even though the binding value is an infinite set, that condition can be added.
3. 3. The next sentence M'in J is taken out. If it does not exist, it returns true (E = set of binding information C).
4. The function Q1 (M', L) or Q2 (M', L) is called for the entire knowledge source L.
If the result is false, false is returned.
When true If M'does not contain a variable, do nothing.
When M'contains a variable The intersection of the set C'of binding information that can be taken to make M'true and the memorized set C is the new C.
However, if the original set C is not an empty set but an intersection and becomes an empty set, false is returned. * Variables that do not need to be bound to be true can be explicitly indicated to that effect.
* If a certain condition is required to make it true even though the binding value is an infinite set, that condition can be added.
Return to 5.3.
}
Function D2 (J: body part (or inquiry of an important cultural property sharing a variable), E: solution set): ★ Another embodiment 1-2B of the function used in the invention of claim 6 (constrained using recursive call of function) Speeding up by spreading information to other sentences) ★
{
1. 1. Take out the first sentence M in J. Returns true if M does not exist.
2. 2. Call Q1 (M, L) or Q2 (M, L) for the entire knowledge source L.
If the result is false, false is returned.
When true If M does not contain a variable If there is no sentence next to J, then true is returned, then the next sentence is set as a new M and returns to 2.
When M contains a variable If there is no sentence following J, the binding information that can be taken is stored in E, and if the truth is returned, the binding information that can be taken is stored as a set C.
3. 3. Empty E and execute recursive call D2 (body part J', E'that can be bound after the next sentence of J by K) for each binding information K in the set C. If the result is true, set to E. , Add that K and E'that became true 4. If it is never true for each K, it returns false, and if it is true even once, it returns true (E)}
Function D3 (J: body part (or inquiry of an important cultural property sharing a variable), E: solution set): ★ Example 1-3 of the function used in the invention of claim 5 ★
{
1. 1. The first sentence M1 in J is taken out. Returns true if the first sentence does not exist.
2. 2. Call Q1 (M1, L) or Q2 (M1, L) for the entire knowledge source L.
If the result is false, false is returned.
When true If M1 does not contain a variable Do nothing.
When M1 contains a variable, a set C1 of possible binding information is stored.
3. 3. Similarly, C2, C3 ... Are obtained for M2, M3 ... As long as they are not false.
If it becomes false, false is returned.
4. Find the intersection C for the remaining C1, C2, C3 ... Cn and return true (C). }
(0047)
■ Enumeration algorithm specification of multiple-length matching solution (s) of fact S for inquiry P
================================================== ================================================== =================
Call example → Function F ("$ A and $ B are friends", "Taro, Jiro and Saburo are friends", "");
Function F (P: pattern that can include variables, S: constant character string, C: variable binding information): ★ Invention of claim 2 (however, implementation example omitting "(or last)" and "or before" Example 1-4A of the function used in)
{
(Preparation)
1. 1. Find the number of types V of variables in P and the names N1, N2, ... of the variables that appear in the order of appearance (correspondence to the case where P originally does not include variables)
2. 2. When V is 0,
⇒ When P = S, return true and finish.
⇒ When P ≠ S, return false and finish.
(output)
3. 3. When V is 1, no matter how many times N1 appears in P, there is only one solution R1 for unification of P and S.
⇒ If there is a match, the only solution is output as "C and N1 = R1", and the truth is returned and the process ends.
⇒ If there is no match, return false and finish.
* Unification itself can be performed as a match with a regular expression (if the same variable appears more than once, there is a postscript reference). When V is 2 or more, the longest matching solution R1 for the variable N1 executes the recursive call F (P', S, C and N1 = R1) for P'that can fill all N1 in P. A set of solutions that are in agreement is output. R1'← Recursive call F (P'', S, C and N1 = R1') for P'' which can be a character string excluding the last character of R1 and all N1 in P can be filled with R1'. Execution ⇒ For N1, a solution set with solution candidate R1'excluding one character from the longest matching solution is output. When R1'is one or more characters (★ When the number of characters of the shortest matching solution is larger in claim 3 of Patent Document 1)
⇒ Return to 5 as R1 ← R1'.
In the case of 0 characters (★ When the number of characters of the shortest matching solution in claim 3 of Patent Document 1)
Finished.
}
(0048)
Function F (P: pattern that can include variables, S: constant character string, C: variable binding information): ★ Example 1-4B of the function used in the invention of claim 4 ★
// Function F that focused on the first character C of the fixed character string immediately after the variable first appeared in P and made a device for speeding up part 1
{
(Preparation)
1. 1. Find the number of types V of variables in P and the names N1, N2, ... of the variables that appear in the order of appearance (correspondence to the case where P originally does not include variables)
2. 2. When V is 0,
⇒ When P = S, return true and finish.
⇒ When P ≠ S, return false and finish.
(output)
3. 3. When V is 1, no matter how many times N1 appears in P, there is only one solution R1 for unification of P and S.
⇒ If there is a match, the only solution is output as "C and N1 = R1", TRUE is returned, and the process ends.
⇒ If there is no match, return false and finish.
4. (Ingenuity for speeding up # 2. This process is covered in 5 or later and may be omitted. ★ This ingenuity 2 is not claimed in Patent Document 1 ★)
When V is 2 or more
Matched the solution in the longest match mode for all variables (N1 (= N), N2, ...) And matched in the shortest match mode for all variables (N1 (= N), N2, ...) When the solution is the same (N1 = R1, N2 = R2, ...) ⇒ Outputs the only solution as "C and N1 = R1 and N2 = R2 and ..." and ends. Match in the first place. If you didn't
⇒ Return false and finish.
When they are not the same ⇒ Continue to 5. When V is 2 or more, the longest matching solution R1 for the variable N1 executes the recursive call F (P', S, C and N1 = R1) for P'that can fill all N1 in P ⇒ longest for N1 A set of solutions that are in agreement is output. When variable N1 (self) follows immediately after variable N1 in P ⇒ When another variable N2 continues to process after 7 ⇒ Process after 7 (However, 1 character C in 7 is the solution R2 of N2 The first character of)
When fixed characters continue ⇒ Process after 7 7. When the longest matching solution R1 includes one character C (the first character C of R2 when immediately after another variable N2), which is a fixed character immediately after the variable N1 first appears in P ⇒ 1) R1'← A character string in which the partial character string from the end of the character string of R1 to its C is deleted ⇒ 2) P'' ← A pattern that can fill all N in P with R1'⇒ 3) Recursive call F Execute (P'', S, C and N1 = R1')
⇒ It should be possible to output if there is a solution that is one step shorter for N1. If it is not included in the longest matching solution R1 ⇒ For N1, the enumeration of shorter solutions is complete, so the process ends.
8. Return to 7 as R1 ← R1'.
}
================================================== ================================================== =================

実施例では、若年有権者(質問したり場合によっては候補者に提言したりする立場のシステム利用者)の投票率を改善するために実際に構築した質問応答システムの例を示す。
このシステムは、選挙の候補者の所信(基本的マインドセット)や、政策(アイディア)や、それらの優先順位(図1の最後の6行)や前提条件(根拠、図1の2行目〜3行目)について、選挙の候補者本人(自分の代わりに有権者に応答するための論理プログラムを編集できる立場の利用者)がシステムに投稿し、本発明によるコンピュータプログラムが、その投稿内容(論理プログラム)に基づいて、様々な有権者からの質問(図2の2、場合によっては提言にも)答えるものである。提言は図示しないプログラムによって各候補者にメールされる。有権者等への自動応答実績(応答内容や統計も含む)もメールされる。
An example shows an example of a question answering system actually constructed to improve the turnout of young voters (system users who are in a position to ask questions and, in some cases, make recommendations to candidates).
This system provides election candidates' beliefs (basic mindset), policies (ideas), their priorities (last 6 lines in Figure 1) and prerequisites (rationale, 2nd line in Figure 1). Regarding (third line), the election candidate himself (a user who can edit a logical program to respond to voters on his behalf) posts to the system, and the computer program according to the present invention posts the posted content (logic). Based on the program), it answers questions from various voters (2 in Figure 2 and, in some cases, recommendations). Recommendations are emailed to each candidate by a program not shown. The results of automatic responses to voters (including response details and statistics) will also be emailed.

本発明は、診断用・設計用・相談用等のエキスパートシステム、人工無脳、ゲーム、対話型の知識獲得システム等において
明らかに利用可能である。
The present invention can be clearly used in expert systems for diagnosis, design, consultation, etc., chatbots, games, interactive knowledge acquisition systems, and the like.

1 対話用固定応答文用の論理プログラム部分が反映されたクリック用リンク
2 有権者等の一般利用者による質問文
3 質問に対するコンピュータの推論中に利用者に事実を問い補うための逆質問文
1 Click link that reflects the logical program part for the fixed response sentence for dialogue 2 Question sentence by general users such as voters 3 Reverse question sentence for asking the user the facts during computer inference for the question

Claims (16)

リテラルとして文字列に変数を埋め込んだ形式を許容して
PROLOGの機能の一部又は全

実施可能なコンピュータプログラムであって、
ルールのヘッド又はボディの条件であるリテラルについて
実行時に該リテラルの真偽又は該リテラルを真とする変数の値を
利用者に問うて、
利用者からの答えに従ってその後の処理を実施する
コンピュータプログラム。
Some or all parts of the functions of PROLOG to allow format with embedded variable to a string as a literal
It is a computer program that can execute <br />
Ask the user at runtime the truth of the literal or the value of a variable that makes the literal true for the literal that is the condition of the head or body of the rule.
A computer program that performs subsequent processing according to the answer from the user.
前記リテラルがあらかじめ定めた形式の場合にのみ
前記利用者に問う
請求項1に記載のコンピュータプログラム。
The computer program according to claim 1, which asks the user only when the literal has a predetermined format.
前記問うことを、
コンピュータプログラムが後ろ向き推論により
自動的に確認する前に行う
請求項1または2に記載のコンピュータプログラム。
Ask the above question
The computer program according to claim 1 or 2, which is performed before the computer program automatically confirms by backward inference.
前記問うことを、
コンピュータプログラムが後ろ向き推論により
自動的に確認した後に行う
請求項1または2に記載のコンピュータプログラム。
Ask the above question
The computer program according to claim 1 or 2, which is performed after the computer program automatically confirms by backward inference.
前記問うた際に、
自動的に確認して得た解候補を削除できる
請求項4に記載のコンピュータプログラム。
When asking the above question
The computer program according to claim 4, which can automatically delete the solution candidates obtained by checking.
前記問うた際に、
自動的に確認して得た解候補を見ながら新しい解候補を追加できる
請求項4又は5に記載のコンピュータプログラム。
When asking the above question
The computer program according to claim 4 or 5, wherein a new solution candidate can be added while looking at the solution candidates obtained by automatically checking.
利用者から問われた質問又は問われた頻度の高い質問を
一操作以上の、質問文全体入力よりコストの小さい操作で質問できるコントロールを自動
生成する機能を有する
請求項1から6のいずれか一項に記載のコンピュータプログラム。
Any one of claims 1 to 6 having a function of automatically generating a control that can ask a question asked by a user or a frequently asked question with one or more operations and an operation that is less costly than inputting the entire question text. The computer program described in the section.
前記利用者からの答えに従ってその後の処理を実施するは、
利用者が前提条件ないし文脈として
事実やルールを論理プログラム自体に一時的に又は永続的に追加して処理できること
である
請求項1に記載の
コンピュータプログラム。
Carrying out the subsequent processing according to the answer from the user
The user can temporarily or permanently add facts and rules to the logical program itself as prerequisites or contexts for processing.
Computer program according to <br/> claim 1 is.
利用者から入力された文字列が
一部の予約語と合致した場合について、
利用者からの質問とも、前提条件ないし文脈とも解釈せず、
その予約語について定義された処理を行う、
請求項1から8のいずれか一項に記載の
コンピュータプログラム
When the character string entered by the user matches some reserved words
Do not interpret the question from the user, the precondition or the context,
Performs the processing defined for the reserved word,
The computer program according to any one of claims 1 to 8 .
利用者から入力された文字列が
5W2H形式(いつ、どこで、だれが、なぜ、なにを、どのように、どのぐらい)の
疑問を表す表現であることを所定の予約語と照合して検出し、
それぞれ対応する値種類のみで束縛(代入)しうるように束縛制限し
た変数名に置き換えて以降の処理を行う
請求項1から9のいずれか一項に記載の
コンピュータプログラム。
Detects that the character string input by the user is an expression expressing a question in 5W2H format (when, where, who, why, what, how, how much) by collating with a predetermined reserved word. And
Corresponding bound by only the value species such (substituted) and a computer program according to any one of claims 1 to 9, the subsequent processing by replacing bound limit the variable names performed as can.
利用者が追加した知識により真であることを自動証明できる事実を自動的に利用者に示す
ことを特徴とする
請求項1から10のいずれか一項に記載のコンピュータプログラム。
The computer program according to any one of claims 1 to 10, wherein the computer program is characterized by automatically showing the user a fact that can be automatically proved to be true by the knowledge added by the user.
利用者に真偽を問うてよい旨の印のついたのあるリテラルについて、
利用者に問わずに真と仮定した解集合を提供する
請求項1から11のいずれか一項に記載のコンピュータプログラム。
About literals with a mark that you can ask the user for authenticity
Computer program according to any one of claims 1 to 11 to provide assumed solutions current If true regardless the user.
WEBサーバーと協働して対話サービスを提供する
請求項1から12のいずれか一項に記載のコンピュータプログラム。
The computer program according to any one of claims 1 to 12, which provides an interactive service in cooperation with a WEB server.
所定観点についての程度を表す表現によ
定の質問に対して
所定観点についての程度の順序関係を表した系列
内の
いずれかの一項と同じ程度、
いずれかの一項以上の程度、
いずれかの一項以下の程度、
いずれかの一項を超える程度、
いずれかの一項未満の程度又は
それらの組み合わせである程度を
利用者からの入力、コンピュータによる記憶又はその両方に基づいて
定義して返す
請求項1から13のいずれか一項に記載のコンピュータプログラム。
Ru good to the representation of the degree of for the given view point
Same extent as any of one of against the Jo Tokoro in question in a sequence representing the order relationship of the degree of information on a predetermined view point,
Degree of any one or more items,
To a degree less than or equal to any one item,
To the extent that it exceeds any one item,
The computer program according to any one of claims 1 to 13, which defines and returns a degree less than any one of them or a combination thereof based on input from a user, memory by a computer, or both.
請求項1から14のいずれか一項のコンピュータプログラムを用いた方法。 A method using the computer program according to any one of claims 1 to 14. 請求項1から14のいずれか一項のコンピュータプログラムを用いた装置。 A device using the computer program according to any one of claims 1 to 14.
JP2016009324A 2016-01-20 2016-01-20 Methods, computer programs and devices for computers to infer interactively Active JP6799731B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016009324A JP6799731B2 (en) 2016-01-20 2016-01-20 Methods, computer programs and devices for computers to infer interactively

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016009324A JP6799731B2 (en) 2016-01-20 2016-01-20 Methods, computer programs and devices for computers to infer interactively

Publications (2)

Publication Number Publication Date
JP2017130070A JP2017130070A (en) 2017-07-27
JP6799731B2 true JP6799731B2 (en) 2020-12-16

Family

ID=59394902

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016009324A Active JP6799731B2 (en) 2016-01-20 2016-01-20 Methods, computer programs and devices for computers to infer interactively

Country Status (1)

Country Link
JP (1) JP6799731B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0934717A (en) * 1995-07-18 1997-02-07 Nippon Telegr & Teleph Corp <Ntt> Learning method and learning system
JP2003029974A (en) * 2001-07-19 2003-01-31 Toyota Keeramu:Kk Expression method for knowledge data, information processing system and program
JP6263858B2 (en) * 2013-04-17 2018-01-24 ナレルシステム株式会社 Method, apparatus and computer program for processing knowledge and information

Also Published As

Publication number Publication date
JP2017130070A (en) 2017-07-27

Similar Documents

Publication Publication Date Title
Sarkar et al. What is it like to program with artificial intelligence?
Mayer et al. User interaction models for disambiguation in programming by example
Zhang et al. Interactive program synthesis by augmented examples
WO2014078747A1 (en) Natural language command string for controlling target applications
Guy et al. The PENG ASP system: architecture, language and authoring tool
JP6263858B2 (en) Method, apparatus and computer program for processing knowledge and information
JP6895037B2 (en) Speech recognition methods, computer programs and equipment
Simpson You Don't Know JS: Up & Going
JP6799731B2 (en) Methods, computer programs and devices for computers to infer interactively
Bowen et al. Creating formal models from informal design artefacts
Chen et al. Bashon: A Hybrid Crowd-Machine Workflow for Shell Command Synthesis
Sodré et al. Chatbot Optimization using Sentiment Analysis and Timeline Navigation
JP6924461B2 (en) How to process logical programs that allow strings containing variables as literals, computer programs and devices
JP2018190184A (en) Method, computer program and device automatically synthesizing idea from natural language text
JP7313646B2 (en) Method, computer program and apparatus for processing knowledge representation
WO2016071942A1 (en) Method for processing knowledge or information, device, and computer program
Litvin et al. Development of natural language dialogue software systems
Keet et al. Claro: a data-driven cnl for specifying competency questions
Mik Contracts in code?
JP6905729B2 (en) Search pruning methods, computer programs and equipment
JP2017102628A (en) Method for processing knowledge and information, computer program for the same, and processing device
JP2017211736A (en) Method for inference by computer through dialogue, computer program, and device
JP7020659B2 (en) Computer programs, devices and methods to output based on text
CA3138451C (en) Multilingual conversational semantic processor
Wachtel et al. Programming Spreadsheets in Natural Language: Design of a Natural Language User Interface

Legal Events

Date Code Title Description
A80 Written request to apply exceptions to lack of novelty of invention

Free format text: JAPANESE INTERMEDIATE CODE: A80

Effective date: 20160219

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190121

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20190121

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190507

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190814

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191219

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190121

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200407

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20200608

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200805

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200927

R150 Certificate of patent or registration of utility model

Ref document number: 6799731

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150