JP7313646B2 - Method, computer program and apparatus for processing knowledge representation - Google Patents

Method, computer program and apparatus for processing knowledge representation Download PDF

Info

Publication number
JP7313646B2
JP7313646B2 JP2017092047A JP2017092047A JP7313646B2 JP 7313646 B2 JP7313646 B2 JP 7313646B2 JP 2017092047 A JP2017092047 A JP 2017092047A JP 2017092047 A JP2017092047 A JP 2017092047A JP 7313646 B2 JP7313646 B2 JP 7313646B2
Authority
JP
Japan
Prior art keywords
proposition
rule
conditions
computer program
establishment
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
JP2017092047A
Other languages
Japanese (ja)
Other versions
JP2018190180A (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 JP2017092047A priority Critical patent/JP7313646B2/en
Publication of JP2018190180A publication Critical patent/JP2018190180A/en
Application granted granted Critical
Publication of JP7313646B2 publication Critical patent/JP7313646B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

特許法第30条第2項適用 未踏アドバンスト事業 プロジェクト提案書Application of Patent Act Article 30(2) MITOU Advanced Business Project Proposal

特許法第30条第2項適用 第71回粟ヶ崎ビジネスサロン 補助資料Application of Article 30, Paragraph 2 of the Patent Law 71st Awagasaki Business Salon Supplementary Materials

特許法第30条第2項適用 第71回粟ヶ崎ビジネスサロン用スライドPatent Act Article 30, Paragraph 2 applied Slides for the 71st Awagasaki Business Salon

本発明は、知識表現を処理する方法、コンピュータプログラム及び装置に関する。 The present invention relates to methods, computer programs and devices for processing knowledge representations.

変数を含んだ文字列をリテラルとして許容するAI用論理型プログラミング言語(知識表現言語)とその処理系が当該発明者によって研究開発されている(特許文献1)。
これは、従来のPROLOG等に比して、自然言語で記述しやすいなどの長所を有するが、
他のPROLOG等のAI用論理型プログラミング言語と同様に、
推論や判断の根拠となる知識表現の準備の大半が、
人間の論理型プログラミングコスト(知識表現コスト)に帰属するため、
AI用論理型プログラミング言語を、さらに分かりやすくかつ簡潔にして、その記述量を減らすことが求められている。
しかし、上記特許文献1のAI用論理型プログラミング言語を含め、
後ろ向き推論「寄り」に設計・チューニングされたPROLOG系のAI用論理型プログラミング言語は、
前向き推論的な処理(診断、プロダクション・システム、機械制御、よりうがった仮説にもとづく利用者への質問や環境センシング、等)が必要となる場合に、
ホーン節の単一ヘッドのマッチからの手続的解釈を利用した前向き推論しか考えにくく、
多様な情報を契機としても情報としても十分に生かした効率的な前向き推論をする必要がある場合には、
著しく人間の労力(プログラミングコスト)と記述量が必要になっていた。
The present inventor has researched and developed a logical programming language for AI (knowledge expression language) that allows character strings containing variables as literals and its processing system (Patent Document 1).
This has the advantage of being easier to describe in natural language than conventional PROLOG.
Like other logic programming languages for AI such as PROLOG,
Most of the preparation of knowledge representation that serves as the basis for reasoning and judgment is
Because it is attributed to the human logical programming cost (knowledge representation cost),
There is a need to make logic programming languages for AI easier to understand and concise, and to reduce the amount of description.
However, including the logical programming language for AI in Patent Document 1 above,
The PROLOG-based logic programming language for AI, which is designed and tuned for backward reasoning "closer",
When forward-looking inference processing (diagnosis, production system, machine control, user questioning based on more hypothetical, environmental sensing, etc.) is required,
It is hard to think of only forward inference using procedural interpretation from single-headed matches of Horn clauses,
When it is necessary to make efficient forward-looking inferences that make full use of various information as opportunities and information,
Significant human effort (programming cost) and amount of description were required.

特願2013-087008Patent application 2013-087008

本発明は、かかる問題に鑑み、
1)後ろ向き推論のための知識を前向き推論にも(わかりやすくかつ簡潔で少ない記述量で)活用できるようにして、AI用論理型プログラミングのコストを減らしてこれを普及しやすくすること
2)一般人にも親しみやすく、結論、効果、条件、事実等をテキスト的にも音声的にも表現/マッチしやすい形式の知識表現で上記1)を可能にして、論理プログラム中に一般人が固定的事実(FACT)を事前準備するコスト、ルールのヘッドやボディを一般人が記述するコスト、前向き推論に与える一時的事実(一時文脈)を一般人が入力するコストを減らして、AI用論理型プログラミングとプログラム運用の総合コストを、さらに削減して、さらに普及しやすくすること
3)1)2)に付随した前向き推論及び後向き推論の機能面・性能面・記述効率面の高度化(気づきやすさ、わかりやすさ、使いやすさ、高速性、健全性、完全性、記述コスト削減、意味論の明確化、他システム等との連携性の向上)によりさらに普及しやすくすること
を目的とする。
The present invention, in view of such problems,
1) To make it possible to use the knowledge for backward reasoning for forward reasoning (in an easy-to-understand, concise, and small amount of description), reduce the cost of logic programming for AI, and make it easier to spread 2) To enable the above 1) with knowledge expression in a format that is easy to express/match conclusions, effects, conditions, facts, etc. in both text and speech, and to make the above 1) possible, the cost of preparing fixed facts (FACT) by the general public in the logic program, the cost of writing the head and body of the rule by the general public, and the cost of writing the head and body of the rule, and the cost of forward reasoning. The purpose is to reduce the cost of inputting temporary facts (temporary context) by ordinary people, further reduce the total cost of logical programming for AI and program operation, and make it easier to spread.

かかる課題を解決するため、

本発明の請求項1は、
複数ある条件の一部又は全部が成立した場合に所定の命題が成立したとみなす形式のルールを処理する
コンピュータプログラムであって
ルールの複数ある条件の一部に合致する情報が新たに得られたときに、
該ルールの他の条件の成立を自動探索して該ルールの該所定の命題の成立を自動確認するコンピュータプログラムを提供する。
これにより、後ろ向き推論用のルールを前向き推論に変換コスト無しまたはきわめて少ない変換コストで流用することができる。
このような形式の「ルール」の例としてはPROLOGやそれを拡張・変形した論理記述言語のホーン節等を挙げることができる。
「該所定の命題が成立」した場合に、その命題の意味するレンダリング(動画、静止画、音声、テキスト表示、など)や、その成立を起点とした(=「合致する情報が新たに得られた」こととした)再帰的なさらなる探索(これを「再帰的な前向き推論」と呼んでもよい)、分析、データベースの操作、等を実行するようにプログラムを構成してもよい。
これにより、より表現力(意味・イメージ等の)や論理展開力のある自動対話等を提供することができる。
なお、後ろ向き推論用のルールのうち前向き推論にも用いるルールを、プログラマが区切り記号(PROLOGの場合「:-」)の種類を変更(例えば、「:=」を使う)して前向き推論にも用いるルールを他と区別できるように構成することが、推論の効率化にとって有利である。

また、本発明の請求項2は、
前記条件および前記所定の命題が、
自然言語に変数を埋め込むことを許容した形式で表現され、
前記合致する情報が、
自然言語の形式又は自然言語に変数を埋め込んだ形式で与えられることを特徴とする
コンピュータプログラムを提供する。
これにより、自然言語の音声合成や音声認識との親和性が高くなるとともに、関数や論理式(カッコやコンマや記号が多い)に慣れていない小学校低学年でも違和感なく推論用のルール(独自の/一般的な思考方法)を表現することができる。
自然言語に変数を埋め込むことを許容した形式の例としては、前述の特許文献の実施例等がある。
合致する情報が自然言語に変数を埋め込んだ形式で与えられることを許すことにより、DONTCARE(前向き推論の駆動に本質的ではなく、どのような値でもよいもの。たとえば、正午から0.01秒ずれているかどうかや好景気の原因が円安か人口増加かなど)にあたる格についての情報が与えられない場合でも、それを変数のまま表現した文字列との単一化(ユニフィケーション)等により、結果として前向き推論を駆動することが可能となる。

また、本発明の請求項3は、
前記合致する情報と前記条件とを合致させる単一化によって得られる、該ルール側の変数束縛を
該ルールに波及して、より制限された形式での該所定の命題の成立を探索すること特徴とする
コンピュータプログラムを提供する。
例えば、新しい合致する情報「勇太は理解力がある」を、条件「$Xは理解力がある」と単一化させる$Xの束縛は「$X=勇太」であり、「$Xはリーダーに適している:-$Xは理解力がある」というルールの場合、この束縛を波及することにより、「勇太はリーダーに適している」という、「$Xはリーダーに適している」よりも具体的な命題の成立を自動確認することができる。
すなわち、該新しい情報のより具体的な内容(例えば、主語が誰か)を反映した、より具体的な(情報量が多く曖昧性が少ない)命題の成立(さらに、より具体的なレンダリングやコマンド実行等)を自動確認することが可能になる。
また、探索空間を制限することにつながり、計算量の削減、応答の高速化にもつながる。

また、本発明の請求項4は、
前記合致する情報と前記条件とを合致させる単一化によって得られる、該合致する情報側の変数束縛を、
該合致する情報を与えた情報源に対して返すことを特徴とする
コンピュータプログラムを提供する。
ここで、「情報源」は、例えば、利用者や他のコンピュータであってよい。
例えば、「$Xは$Yが必要:-$Xは$Yを主食にしている;$Yは穀物;」というルールの「$Yは穀物」という条件に対し「米は$A」という「合致する情報」を単一化させて、ルール側変数束縛「$Y=米」、合致する情報側変数束縛「$A=穀物」、命題「日本人は米が必要」が得られた場合、にその命題の根拠として「米は穀物」という命題が関係していることを推測することができる。
これにより、情報源が、新たな情報による新たな命題の成立根拠等について、推論過程の全体を参照することなく、なんらかの手がかりを得ることが可能になる。

また、本発明の請求項5は、
前記単一化の対象となる、
一の合致する情報と一の条件からなる組について、
複数の変数束縛が可能である場合に、
そのいずれもについて独立して処理することを特徴とする
コンピュータプログラムを提供する。
ここで、「複数の変数束縛の可能性」とは、例えば、「$Aと$Bは兄弟」という条件と「太郎と次郎と三郎は兄弟」という情報とを単一化する束縛がひととおりではなく、複数とおり(この場合、{($A=太郎,$B=次郎と三郎),($A=太郎と次郎、$B=三郎)})存在することをいう。
これにより、複数ある可能性をもらさずに条件の充足可能性を探索し(後ろ向き探索(推論)し)、その充足集合をベースとした網羅的な前向き探索(新たに確認(証明)できる命題の列挙)が可能となる。

また、本発明の請求項6は、
命題の成立を確認した場合に、
その命題を新たに得られた情報として、
コンピュータが記憶している一または複数の各ルールの
各条件の一部又は全部と合致するかを探索することにより、
該各ルールの各命題が成立するかを確認することを再帰的に繰り返すことを特徴とする、
コンピュータプログラムを提供する。
ここで「記憶している一または複数の各ルール」は、該命題の成立の確認に用いられたルールと同一のルールでも別のルールでもよい。
また、ルール上の当初の命題が変数を含んでいた場合には、その命題の成立前に合致を探索した条件との単一化過程で変数束縛が行われた結果として、その命題に含まれる変数も束縛された状態(典型的には、自然言語を表現する固定文字列)となっていることが好ましい。ただし、必ずしも束縛されておらず変数が残っている場合でも、恒真のトートロジー(例えば、「$Xは$Xと等しい」)などを言明する命題や、あいまいさ(変数が残っていること)が意味の本質に影響を与えない命題を、固定文字列と同様に処理すること(新たに得られた情報として再帰的な前向き推論のトリガーとする等)を制限するものではない。
これにより、新しい情報の意味や影響をより広く深く確認することができるようになる。
また、新しい情報の与え方があいまいであったり、少しずれていても、影響があるかもしれない内容を確認できることにつながる。

また、本発明の請求項7は、
同一または類似の条件の合致に対応して成立を確認できる複数の命題の列記をルールにおいて許容した
コンピュータプログラムを提供する。
「ルールにおいて許容」とは、例えば「所定の命題」を一つに限った伝統的なホーン節ではなく、複数の命題や効果をヘッド部に列記できる形式のルールを許容すること等を示す。
例えば、「$Xは東洋に住む&$Xは北半球に住む:-$Xは日本列島に住む;」は、「&」区切りで、「$Xは日本列島に住む」から演繹できる二つの命題「$Xは東洋に住む」「$Xは北半球に住む」を列記している。
なお、条件と命題(効果)の右辺と左辺を逆に、区切り文字も特別に表記することに取り決めて、「$Xは日本列島に住む:<$Xは東洋に住む;$Xは北半球に住む;」等とすることも可能である。
これにより、同一または類似の条件を充足するかについての計算の重複を効果的に回避することができ、前向き推論の効率の要素となる、条件を充足するかについての計算効率を高めることができる。
なお、「類似の条件」とは、例えば、ホーン節の右辺(ボディ)に相当する部分またはその一部が、表記ゆれを吸収する目的のOR条件の列挙の場合(「$Xが$Yを溶かす|$Xが$Yを溶解する」)や、同等の条件となるOR条件の列挙の場合(「$Xはラーメンが好き|$Xはうどんが好き|$Xはそばが好き|$Xはスパゲティが好き」)や、特定の正規表現の範疇に該当する場合など、さまざまな場合を想定しうる。

また、本発明の請求項8は、
類似の条件のうちの共通部分を根又は根に近い枝として、
類似の条件のうちの差異部分を根からより遠い枝として、
根から対応する枝までの条件の確認によって成立したとみなせる命題を葉として
枝分かれのあるツリー状にルールを表現した
請求項7に記載のコンピュータプログラムを提供する。
このような表現の例としては、対応する括弧のネストによって等価なツリーを表現した以下のようなものが考えられる。
A:<{B{C:E1}{D:E2}}{E{F{G:E3}{H:E4}}}{I:E5}{J{K:E6}{L:E7}{E8}};
ここでは、
通常のホーン説と異なり、
Aが根となる条件であり、
「:<」が構文の区切りと当該種別を示す区切りであり、
命題(効果)E1の成立に達するまでの経路(必要条件集合)はA,B,Cとなり、
命題(効果)E2の成立に達するまでの経路(必要条件集合)はA,B,Dとなり、
命題(効果)E3の成立に達するまでの経路(必要条件集合)はA,E,F,Gとなり、
命題(効果)E4の成立に達するまでの経路(必要条件集合)はA,E,F,Hとなり、
命題(効果)E5の成立に達するまでの経路(必要条件集合)はA,Iとなり、
命題(効果)E6の成立に達するまでの経路(必要条件集合)はA,J,Kとなり、
命題(効果)E7の成立に達するまでの経路(必要条件集合)はA,J,Lとなる。
命題(効果)E8の成立に達するまでの経路(必要条件集合)はAとなる。
これにより条件集合の共通部分の充足性の確認に用いた計算コストを無駄にせず、差異部分の充足性の計算も可能となり、共通部分を有する条件集合の充足性確認を効率化・高速化する。
なお、「合致する情報」と単一化させる「条件の一部」は、根であるAのみとすることもでき、さらに途中の枝条件のいずれもとすることができる。また、このAをパターン的な制限のない「$X」(アスタリスク)などとすることで、あらゆるものを各枝とマッチさせてみることができる。
なお、多長一致に対応する点や、バックトラック又は同等の網羅的な処理を行える点や、手続き的解釈も可能な点は、通常のホーン節や前記特許文献における文法、解釈と同じである。

また、本発明の請求項9は、
ルールにおいて許容した同一または類似の条件の合致に対応して成立を確認できる複数の命題の列記が
好ましい手続きの順番に従っていることを特徴とする
請求項7に記載のコンピュータプログラムを提供する。
これにより、手続き的解釈により、成立を確認できる複数の命題間の手続き的な生起順序を再現した表示などが可能となる。
また、このようなルールは、合致させるルールを一つに絞るようにプログラミングすることにより、手続きの各ステップを再帰的にツリー状に展開することができ、このような場合にはさまざまな粒度の複雑なネストからなるステップをツリー状に定義し、実行時に、複雑な順序の手続き仕様にも対応した手続きを教え示したり場をコントロールしたりすることができる。
In order to solve such problems,

Claim 1 of the present invention is
A computer program that processes a rule that assumes that a given proposition is established when some or all of a plurality of conditions are established, and when new information that meets some of the multiple conditions of the rule is obtained,
To provide a computer program for automatically searching for the establishment of other conditions of the rule and automatically confirming the establishment of the predetermined proposition of the rule.
Thereby, the rules for backward inference can be diverted to forward inference with no conversion cost or very little conversion cost.
Examples of "rules" in such a format include PROLOG and the Horn clause of a logic description language that is an extension or modification of PROLOG.
The program may be configured so that, when "the given proposition is established", the meaning of the proposition is rendered (animation, still image, voice, text display, etc.), and further recursive search (this may be called "recursive forward-looking inference"), analysis, database operation, etc., starting from the establishment (= "matching information is newly obtained").
As a result, it is possible to provide an automatic dialogue or the like with more expressive power (meaning, image, etc.) and logical development power.
It is advantageous for the efficiency of inference to configure the rules used for forward inference among the rules for backward inference so that the programmer can change the type of delimiter (“:-” in PROLOG) (for example, use “:=”) to distinguish the rules also used for forward inference from others.

In addition, claim 2 of the present invention is
if said condition and said given proposition are:
Expressed in a form that allows variables to be embedded in natural language,
The matching information is
A computer program is provided in the form of a natural language or in a form in which variables are embedded in the natural language.
This makes it more compatible with natural language speech synthesis and speech recognition, and allows even lower grades of elementary school who are unfamiliar with functions and logical expressions (there are many parentheses, commas, and symbols) to express inference rules (original/general way of thinking) without discomfort.
Examples of formats that allow variables to be embedded in natural language include the examples in the aforementioned patent documents.
By allowing matching information to be given in a form in which variables are embedded in a natural language, even if information about a case corresponding to DONTCARE (a value that is not essential for driving forward-looking inference and can be any value. For example, whether it is 0.01 seconds off from noon or whether the cause of the boom is a weak yen or an increase in population) is not given, unification with a character string that expresses it as a variable can drive forward-looking inference as a result.

In addition, claim 3 of the present invention is
A computer program is provided that searches for the establishment of the predetermined proposition in a more restricted form by spreading the variable binding on the rule side obtained by unifying the matching information and the condition to match the rule.
For example, the binding of $X that unifies the new matching information ``Yuta has comprehensibility'' with the condition ``$X has comprehension'' is ``$X=Yuta'', and in the case of the rule ``$X is suitable for a leader: - $X has comprehension'', by spreading this constraint, it is possible to automatically confirm the establishment of a proposition ``Yuta is suitable for a leader'', which is more specific than ``$X is suitable for a leader''.
That is, it is possible to automatically confirm the establishment of a more specific proposition (more information and less ambiguity) reflecting the more specific content of the new information (for example, who the subject is) (and more specific rendering, command execution, etc.).
In addition, it leads to the limitation of the search space, which leads to the reduction of the amount of calculation and the speeding up of the response.

In addition, claim 4 of the present invention is
Variable binding on the matching information side obtained by unification matching the matching information and the condition,
A computer program is provided that returns the matching information to an information source that provided it.
Here, the "information source" may be, for example, a user or another computer.
For example, for the condition "$Y is grain" in the rule "$X needs $Y as staple food; $Y is grain;", unifying the "matching information""rice is $A" for the condition "$Y is grain", the rule side variable binding "$Y = rice", the matching information side variable binding "$A = grain", and the proposition "Japanese people need rice" are obtained. I can.
This makes it possible for the information source to obtain some sort of clue as to the grounds for establishing a new proposition based on new information, without referring to the whole inference process.

In addition, claim 5 of the present invention is
subject to said unification;
For a pair consisting of one matching information and one condition,
If multiple variable bindings are possible,
A computer program characterized by independently processing each of them is provided.
Here, the ``possibility of multiple variable bindings'' means, for example, that there are multiple bindings ({($A=Taro, $B=Jiro and Saburo), ($A=Taro and Jiro, $B=Saburo)}) that unify the condition that ``$A and $B are siblings'' and the information that ``Taro, Jiro, and Saburo are siblings'', for example.
As a result, it is possible to search for the sufficiency of a condition without losing multiple possibilities (backward search (inference)), and exhaustive forward search (enumeration of propositions that can be newly confirmed (proven)) based on the satisfaction set.

In addition, claim 6 of the present invention is
If we confirm the existence of the proposition,
With the proposition as newly obtained information,
By searching whether a part or all of each condition of one or more rules stored by a computer is matched,
Characterized by recursively repeating checking whether each proposition of each rule holds,
Provide a computer program.
Here, "one or a plurality of stored rules" may be the same rule as the rule used to confirm the establishment of the proposition or a different rule.
In addition, when the original proposition on the rule contains variables, it is preferable that the variables contained in the proposition are also bound (typically, fixed character strings representing natural language) as a result of binding variables in the process of unification with the conditions searched for matching before the establishment of the proposition. However, even if the variable is not necessarily bound and remains, it does not restrict propositions that assert tautology (for example, "$X is equal to $X") or propositions whose ambiguity (remaining variables) do not affect the essence of the meaning in the same way as fixed character strings (such as triggering recursive forward inference as newly obtained information).
This will allow us to see the meaning and impact of the new information more broadly and deeply.
Also, even if the way of giving new information is ambiguous or slightly off, it will lead to confirmation of the contents that may have an impact.

In addition, claim 7 of the present invention is
To provide a computer program in which a rule allows listing of a plurality of propositions whose establishment can be confirmed in response to matching of the same or similar conditions.
“Allowable in rules” means, for example, allowing rules in a format that allows multiple propositions and effects to be listed in the head portion, instead of the traditional Horn clause, which limits the “predetermined proposition” to one.
For example, "$X lives in the Orient & $X lives in the Northern Hemisphere:-$X lives in the Japanese archipelago;" lists two propositions "$X lives in the Orient" and "$X lives in the Northern Hemisphere" that can be deduced from "$X lives in the Japanese archipelago" separated by "&".
It is also possible to reverse the right and left sides of the conditions and propositions (effects) and express special delimiters, such as "$X lives in the Japanese archipelago: <$X lives in the East; $X lives in the Northern Hemisphere;"
As a result, it is possible to effectively avoid duplication of calculations regarding whether the same or similar conditions are satisfied, and it is possible to increase the calculation efficiency regarding whether conditions are satisfied, which is an element of the efficiency of forward inference.
Note that "similar conditions" are, for example, when the part corresponding to the right side (body) of the Horn clause or part of it is a list of OR conditions for the purpose of absorbing notational variations ("$X dissolves $Y | $X dissolves $Y"), a list of equivalent OR conditions ("$X likes ramen | $X likes udon | $X likes soba | $X likes spaghetti"), or falls under the category of a specific regular expression. Various cases can be assumed, such as when

Moreover, claim 8 of the present invention is
Taking the common part of the similar conditions as the root or a branch close to the root,
Taking the different parts of similar conditions as branches farther from the root,
8. The computer program according to claim 7, wherein the rules are expressed in a branched tree with propositions that can be regarded as established by checking the conditions from the root to the corresponding branches as leaves.
An example of such a representation would be the following, representing an equivalent tree by corresponding nesting of parentheses:
A: <{B {C: E1} {D: E2}} {E {F {G: E3} {H: E4}}} {I: E5} {J {K: E6} {L: E7} {E8}};
here,
Unlike the usual horn theory,
A is the root condition,
": <" is a syntax delimiter and a delimiter that indicates the type,
The path (necessary condition set) to reach the establishment of proposition (effect) E1 is A, B, C,
The path (necessary condition set) to reach the establishment of proposition (effect) E2 is A, B, D,
The path (necessary condition set) to reach the establishment of proposition (effect) E3 is A, E, F, G,
The path (necessary condition set) to reach the establishment of proposition (effect) E4 is A, E, F, H,
The path (necessary condition set) to reach the establishment of proposition (effect) E5 is A and I,
The path (necessary condition set) to reach the establishment of proposition (effect) E6 is A, J, K,
A, J, and L are the paths (necessary condition set) to reach the establishment of proposition (effect) E7.
A is the path (necessary condition set) up to the establishment of proposition (effect) E8.
Thereby, the calculation cost used for confirming the sufficiency of the common part of the condition set is not wasted, and the calculation of the sufficiency of the difference part becomes possible, and the sufficiency confirmation of the condition set having the common part is made efficient and speedy.
The "part of the condition" to be unified with the "matching information" can be only A, which is the root, or any of the intermediate branch conditions. Also, by setting this A to "$X" (asterisk) or the like with no pattern restrictions, it is possible to try to match everything with each branch.
It should be noted that the grammar and interpretation of ordinary Horn clauses and the above-mentioned patent documents are the same in that they support multi-length matching, that backtracking or equivalent exhaustive processing can be performed, and that procedural interpretation is possible.

In addition, claim 9 of the present invention is
8. The computer program according to claim 7, wherein a list of a plurality of propositions whose validity can be confirmed corresponding to matching of the same or similar conditions allowed in the rules follows a preferred procedure order.
As a result, procedural interpretation makes it possible to reproduce the procedural order of occurrence among multiple propositions whose validity can be confirmed.
In addition, by programming such rules so that only one matching rule is selected, each step of the procedure can be recursively developed in a tree form. In such cases, steps consisting of complex nests of various granularities can be defined in a tree form, and at the time of execution, it is possible to teach a procedure corresponding to a procedure specification in a complicated order and to control the situation.

また、本発明の請求項10は、
ルールにおいて許容した同一または類似の条件の合致に対応して成立を確認できる複数の命題の列記に
従った順番で
各命題について充足させるべきことを自動的に外部に要求しかつ充足を確認するまで待つことを特徴とする
請求項7又は9に記載のコンピュータプログラムを提供する。
これにより、逐次要求し要求した内容の充足を確認する監督作業等をコンピュータプログラムにある程度任せることが可能になる。
このようなルールは、合致させるルールを一つに絞ることにより、外部要求と充足確認の列を再帰的にツリー状に展開することができ、このような場合にはさまざまな粒度の複雑なネストからなるタスクをツリー状に定義し、実行時に、複雑な順序の要求充足仕様に対応した、外部への要求と充足の確認を待つことができる。
「外部」とは、人や動物やロボットや制御デバイスや環境要素(水位等)であってよく、充足の確認はそれらからの合図(信号、所作、生理、物理現象、自然現象、等)でなされてよい。

また、本発明の請求項11は、
成立した条件の数が2以上の所定数(ルールにおいて「:2」等と指定するようにしてもよい)の場合に、
前記所定の命題が成立することとした
コンピュータプログラムを提供する。
ルールの区切り記号を「:2」とした場合は2以上、「:3」とした場合は3以上、・・・などとしてもよい。
これにより、風邪の診断において、「鼻水が出る」「のどが痛い」「頭がいたい」「せき・くしゃみがでる」の2つ以上の条件が成立していたら「たぶん風邪」と診断する、等という診断型前向き推論用の論理プログラムを簡潔に記述することができる。

また、本発明の請求項12は、
成立した条件の数がちょうど1個の場合に、
前記所定の命題の成立を自動確認することを特徴とする
コンピュータプログラムを提供する。
これは、排他的論理和の定義に該当し、ルールの区切り記号を(:1)などとしてもよい。
これにより、前向き推論の前提となる排他的論理和が必要な条件を簡潔に表現することができる、前向き推論を低コストでコーディングすることができる。

また、本発明の請求項13は、
成立した条件および成立した各条件に関連する各重みから計算した値が所定の閾値以上もしくは閾値以下または閾値を超えるもしくは閾値未満の場合に、前記所定の命題の成立を自動確認することを特徴とする
コンピュータプログラムを提供する。
これにより、二値(証明可能/証明不能または真/偽)や三値(証明可能/不明/偽を証明可能)だけでない途中の確信/確率の度合いを加味した、より定量的な精緻な推論も可能となる。
ここで、閾値、閾値との上下関係、各条件に関連する重み(例えば、条件自体の確信度や確率、もしくは、ルールにおいてそれらに掛け合わせる重み係数)は、ルールや事実(または一時文脈)に所定の書式で付記することができる。
例えば、「風邪/80;インフルエンザ/10 :%50< 鼻水が出る/20;のどが痛い/30;頭がいたい/30;せき・くしゃみがでる/40;」の意味は、特定の患者の一時文脈である事実が、「鼻水が出る」程度:50、「のどが痛い」程度:30、「頭がいたい」程度:90、「せき・くしゃみがでる」程度:60の場合に、(50×20+30×30+30×90+40×60)/100=10+9+27+24=72が「%50<」の意味する「50より大きい」を満たすので、命題の成立を72の確信度で自動確認して、「風邪」程度:80×72/100→「風邪」程度:58(四捨五入)と「インフルエンザ」程度:10×72/100→「インフルエンザ」程度:7(四捨五入)という新たな事実(一時文脈)を得ることになる。なお、ここでは、確信度形式であるが、確率形式と同様に、別の事象やルールから得た同一事実(同一患者についての関連一時文脈集合等における)の確信度については、X+Y-XY/100を適用するほうが適切な場合がある。

また、本発明の請求項14は、
前記所定の命題の成立を自動確認する際に、関連する一以上の命題に対して、関連づけた各命題の重みまたは各条件に関連する重みまたはその両方から得た値を各命題に関連づけて記憶することを特徴とする
請求項13に記載のコンピュータプログラムを提供する。
これにより、ルールごとに異なる観点(条件集合)に対応した一以上の自動確認命題の確信度を簡便に定義することができる。
先に例として挙げた「風邪/80;インフルエンザ/10 :%50< 鼻水が出る/20;のどが痛い/30;頭がいたい/30;せき・くしゃみがでる/40;」の意味は、先述したとおりであり、確信度や確率のついた一時文脈(事実)を追加的に保持するとともに、それらをさらなる前向き推論の根拠とすることもできる。
なお、同一のルールが同一の根拠にもとづき無限ループを構成するように再帰的に発火して確信度が不当に上昇したり発散したりすることを防ぐために、どの事実にもとづきどのルールが発火したかの履歴を記憶しておき、同じ事実に基づいて同じルールが発火しないように制限することもできる。

また、本発明の請求項15は、
ルールの複数ある条件の一部に合致する情報が新たに得られたときに、
同じルール内の真偽の証明できない条件について
利用者に真偽を確認する、又は、利用者に真もしくは偽とする変数束縛集合を確認する
ことを特徴とする
コンピュータプログラムを提供する。
これにより、特に、診断システムなどで、患者等についての一時文脈の少ない状態
(すなわち条件の真偽を証明できにくい状態)から、
利用者に確認すべき質問をルール単位で徐々に増やしていくことを可能にし、
よけいな質問応答(利用者確認)によるコミュニケーションコストや推論コストを回避することができる。
例えば、このようなルールを「:2?」で区切ったPROLOGに似た次のような構文で表現した場合、
4つの条件のいずれかと合致する情報(一時文脈となる事実)の入力に応じてこのルールが起動され、
2つ以上の条件の成立を確認できるまで、
前から順番に「自動証明→できない場合は利用者確認(文脈追加も起こりうる)」を行うことになる。
「風邪 :2? 鼻水が出る;のどが痛い;頭がいたい;せき・くしゃみがでる;」

また、本発明の請求項16は、
ルールの複数ある条件の一部に合致する情報が新たに得られたときに、
同じルール内の対応する条件または命題(いずれも真偽を自動証明できないものに限る)について
利用者に真偽を確認する、又は、利用者に真もしくは偽とする変数束縛集合を確認する
ことを特徴とする
コンピュータプログラム。
これにより、特に、診断システムなどで、患者等についての一時文脈の少ない状態から、
利用者に確認すべき質問をルール単位で徐々に増やしていくことを可能にし、
よけいな質問応答(利用者確認)によるコミュニケーションコストや推論コストを回避することができる。
例えば、「A:<{B{C:E1}{D:E2}}{E{F{G:E3}{H:E4}}}{I:E5}{J{K:E6}{L:E7}{E8}};」の例において、自動証明できない場合に利用者確認をおこないたい条件の前に「?」をつけることにした場合、
「A:<{?B{?C:E1}{?D:E2}}{E{?F{G:E3}{H:E4}}}{?I:E5}{J{K:E6}{L:E7}{?E8}};」等となり、どこで利用者確認(質問応答)すべきかを効率的に明示することができる。
なお、「:?<」等、「?」の含まれるルール内区切りによって、自動証明できないすべての条件について利用者確認をするプログラム言語仕様として取り決めてこれを実施するようにすることもできる。

また、本発明の請求項17は、
請求項1から16のいずれか一項に記載のコンピュータプログラムを用いた装置を提供する。

また、本発明の請求項18は、
請求項1から16のいずれか一項又は図2に記載のコンピュータプログラムを用いた方法を提供する。
In addition, claim 10 of the present invention is
10. The computer program according to claim 7 or 9, characterized by automatically requesting externally that each proposition should be satisfied in the order according to a list of a plurality of propositions whose establishment can be confirmed corresponding to matching of the same or similar conditions allowed in the rule, and waiting until the satisfaction is confirmed.
As a result, it becomes possible to entrust the computer program to some extent with supervising work of sequentially requesting and confirming the satisfaction of the requested content.
Such a rule can recursively expand the sequence of external requirements and satisfaction confirmations in a tree by narrowing down the matching rule to one. In such a case, tasks consisting of complex nesting of various granularities can be defined in a tree form, and during execution, it is possible to wait for external requests and confirmations of satisfaction corresponding to requirements satisfaction specifications in a complicated order.
"External" may be a person, an animal, a robot, a control device, or an environmental element (water level, etc.), and confirmation of sufficiency may be made by cues from them (signal, gesture, physiology, physical phenomenon, natural phenomenon, etc.).

In addition, claim 11 of the present invention is
When the number of satisfied conditions is a predetermined number of 2 or more (the rule may be specified as ": 2" etc.),
Provided is a computer program that satisfies the predetermined proposition.
If the rule delimiter is ":2", it may be 2 or more, if it is ":3", it may be 3 or more, and so on.
This makes it possible to concisely describe a logical program for diagnostic forward reasoning, such as diagnosing "probably cold" when two or more conditions such as "runny nose", "sore throat", "sore head", and "coughing/sneezing" are met.

In addition, claim 12 of the present invention is
If the number of conditions satisfied is exactly 1,
Provided is a computer program characterized by automatically confirming the establishment of the predetermined proposition.
This corresponds to the definition of exclusive OR, and the rule delimiter may be (:1) or the like.
As a result, it is possible to code forward-looking reasoning at low cost, which can simply express conditions requiring exclusive OR, which is a premise of forward-looking reasoning.

In addition, claim 13 of the present invention is
A computer program characterized by automatically confirming the establishment of a predetermined proposition when a value calculated from a satisfied condition and each weight associated with each satisfied condition is equal to or more than a predetermined threshold value, equal to or less than a threshold value, or exceeds or is less than a threshold value.
This enables not only binary (provable/unprovable or true/false) and ternary (provable/unknown/provable false) but also more quantitative and precise reasoning that takes into account the degree of certainty/probability along the way.
Here, the threshold, the hierarchical relationship with the threshold, and the weight related to each condition (for example, the confidence or probability of the condition itself, or the weighting factor to be multiplied by them in the rule) can be added to the rule or fact (or temporary context) in a predetermined format.
For example, "cold/80; influenza/10: % 50 < runny nose/20; sore throat/30; headache/30; cough/sneezing/40;" (50 x 20 + 30 x 30 + 30 x 90 + 40 x 60) / 100 = 10 + 9 + 27 + 24 = 72 satisfies "greater than 50" meaning "% 50 <", so the establishment of the proposition is automatically confirmed with a certainty of 72, and "cold" degree: 80 × 72/100 → "cold" degree: 58 (rounded off) and "flu" degree: 10 × 72/100 → "flu" You will get a new fact (temporal context) of degree: 7 (rounded off). It should be noted that here, although it is a confidence format, it may be more appropriate to apply X + Y - XY / 100 for the confidence of the same fact obtained from another event or rule (in a related temporal context set for the same patient, etc.), as in the probability format.

In addition, claim 14 of the present invention is
14. The computer program according to claim 13, characterized in that, when automatically confirming the establishment of the predetermined proposition, for one or more related propositions, a value obtained from the weight of each associated proposition, the weight associated with each condition, or both is stored in association with each proposition.
This makes it possible to easily define the certainty of one or more automatic confirmation propositions corresponding to different viewpoints (condition sets) for each rule.
Influenza/10: %50< runny nose/20; sore throat/30; headache/30; coughing and sneezing/40;
In addition, in order to prevent the same rule from firing recursively to form an infinite loop based on the same grounds and unduly increasing or diverging the certainty, it is also possible to store a history of which rule has fired based on which fact, and restrict the firing of the same rule based on the same fact.

In addition, claim 15 of the present invention is
When new information that meets some of the multiple conditions of the rule is obtained,
To provide a computer program characterized by confirming with a user the truth of a condition whose truth cannot be proved in the same rule, or confirming with the user a set of variable bindings to be true or false.
As a result, especially in a diagnostic system, etc., from a state in which there is little temporary context about the patient (that is, a state in which it is difficult to prove the truth of the condition),
It is possible to gradually increase the number of questions to be confirmed by the user for each rule,
It is possible to avoid communication costs and inference costs due to unnecessary question-and-answer (user confirmation).
For example, if such a rule were expressed in a PROLOG-like syntax separated by ":2?"
This rule is activated according to the input of information (temporary context fact) that matches any of the four conditions,
Until you can confirm the establishment of two or more conditions,
"Automatic proof -> user confirmation if not possible (addition of context may also occur)" will be performed in order from the front.
"Cold: 2? runny nose; sore throat; headache; coughing and sneezing;"

In addition, claim 16 of the present invention is
When new information that meets some of the multiple conditions of the rule is obtained,
A computer program characterized by confirming with the user the truth or falsehood of corresponding conditions or propositions (both of which cannot be automatically proved true or false) in the same rule, or confirming with the user the set of variable bindings that are true or false.
This allows, particularly in diagnostic systems, from low temporal context about the patient to
It is possible to gradually increase the number of questions to be confirmed by the user for each rule,
It is possible to avoid communication costs and inference costs due to unnecessary question-and-answer (user confirmation).
For example, in the example of "A:<{B{C:E1}{D:E2}}{E{F{G:E3}{H:E4}}}{I:E5}{J{K:E6}{L:E7}{E8}};"
"A:<{?B{?C:E1}{?D:E2}}{E{?F{G:E3}{H:E4}}}{?I:E5}{J{K:E6}{L:E7}{?E8}};"
It should be noted that it is also possible to arrange and implement program language specifications for confirming the user for all conditions that cannot be automatically proved by delimiting rules that include "?", such as ":?<".

In addition, claim 17 of the present invention is
An apparatus using a computer program according to any one of claims 1 to 16 is provided.

In addition, claim 18 of the present invention is
A method using a computer program according to any one of claims 1 to 16 or according to Fig. 2 is provided.

本発明の論理プログラム(固定的な事実及びルール)、利用者によりすでに追加されている一時文脈、利用者により新たに追加されるデータ(一時文脈)、及び、前向き推論の結論として出力(音声、テキスト表示等)されかつ再帰的な前向き推論の種になりうる命題(変数が束縛されている)の例としての関係について説明する図である。FIG. 10 is a diagram illustrating an exemplary relationship between a logic program (fixed facts and rules) of the present invention, a temporary context already added by the user, data newly added by the user (temporary context), and a proposition (variables are bound) that is output (speech, text display, etc.) as a conclusion of forward inference and that can be a seed of recursive forward inference. 図1等を実施するためのコンピュータプログラムの最も基本的な処理フローチャート(方法としてのステップ)を説明する図である。2 is a diagram for explaining the most basic processing flowchart (steps as a method) of a computer program for implementing FIG. 1 and the like; FIG. 実施するコンピュータとしての一般的な構成を示す説明図である。It is an explanatory view showing a general configuration as a computer to implement.

図1は、本発明の論理プログラム(固定的な事実及びルール)、利用者によりすでに追加されている一時文脈、利用者により新たに追加されるデータ(一時文脈)、及び、前向き推論の結論として出力(音声、テキスト表示等)されかつ再帰的な前向き推論の種になりうる命題(変数が束縛されている)の例としての関係について説明する図である。利用者が入力した新しい情報「A子は喉痛」と下線の「$Xは喉痛」とが合致することにより図2の前向き推論ステップが起動される。

図2は、図1等を実施するためのコンピュータプログラムの最も基本的な前向き推論の処理フローチャート(方法としてのステップ)を説明する図である。実際には、ステップ3の2において、特許文献1(出願公開済)で詳述している多長一致などの特別なユニフィケーション(単一化)やバックトラックを含む後ろ向き推論も行うことがさまざまな面で有利であるが、本明細書の主旨とは異なるので(また、通常のPROLOGの探索でもある程度代用できるため)、ここでは詳述はしない(公開されているので参照されたい)。

図3は、実施するコンピュータとしての一般的な構成を示す説明図である。ここには本発明に固有の特徴はないため詳述はしない。
FIG. 1 is a diagram illustrating an example relationship between the logic program (fixed facts and rules) of the present invention, the temporary context already added by the user, the data newly added by the user (temporary context), and the propositions (variables are bound) that are output (speech, text display, etc.) as the conclusion of forward inference and that can be the seed of recursive forward inference. The forward reasoning step of FIG. 2 is activated by matching the new information "A child has a sore throat" entered by the user with the underlined "$X has a sore throat".

FIG. 2 is a diagram illustrating a processing flowchart (steps as a method) of the most basic forward inference of a computer program for implementing FIG. 1 and the like. In fact, in step 3-2, it is advantageous in various aspects to perform special unification such as multi-length matching and backward inference including backtracking, which are described in detail in Patent Document 1 (published application).

FIG. 3 is an explanatory diagram showing a general configuration as a computer that implements. Since there are no unique features of the present invention here, it will not be described in detail.

図1は、本発明の一実施例を示すものである。この知識表現は、特許文献1の発明を実施するためのものであり、条件の区切りは「;」となっている。また、ヘッドとボディの区切りは、3以上の条件の成立を必要とすることを示す「:3」となっている。ステップS1で、情報「A子は喉痛」が入力され、ステップS2で、合致する条件が全ルールの条件部から検索され、ステップS3の1で、合致する束縛がルールのすべての$Xに「$X=A子」として波及する。ステップS3の2では、この場合に、固定的な事実として「日本」が論理プログラム内に既に存在するので、「:3」の3のうちの残り2以上の条件の成立を探索(論理プログラム及び一時文脈の範囲)により確認した時点でこのルールが発火できるとコンピュータが判断し、この場合には「A子は風邪」という命題が一時文脈として格納・通知され(コンピュータが成立を自動確認)、かつ、ステップS4及びS5を介して新しい前向き推論ループ(S2~S5)の種になることとなる。 FIG. 1 shows one embodiment of the present invention. This knowledge expression is used to implement the invention of Patent Document 1, and the delimiter between conditions is ";". Also, the division between the head and the body is ":3" indicating that three or more conditions must be met. In step S1, the information "Child A has a sore throat" is entered, in step S2 matching conditions are retrieved from the condition parts of all rules, and in step S3-1, matching constraints are propagated to all $X of the rules as "$X = child A". In step S3-2, since "Japan" already exists in the logic program as a fixed fact in this case, the computer judges that this rule can be fired when it is confirmed by searching (within the scope of the logic program and the temporary context) that the remaining two or more conditions out of the three in ":3" are met. will become the seed of

4 本発明で用いられる一般的なコンピュータ(利用者専用のパーソナルコンピュータ、共有ファイルサーバー、Webサーバー)
4a~4k 一般的なコンピュータ4(利用者専用のパーソナルコンピュータ、等)の一般的な構成要素
11 論理プログラム(固定的事実とルール)
12 データ(すでに論理プログラムに隣接して配列型メモリに追加されている一時文脈)
13 新しい事実(データ)(利用者により追加される一時文脈)
14 右辺の3個以上の条件が成立したら左辺の命題の成立を自動確認(自動追加&通知)するという意味のルール
15 新しい結論(自動追加し利用者に通知され、再帰的な前向き推論の種として入力される一時文脈)
16 再帰的な前向き推論の種として入力される経路(キューを介したもの)

S1 新しいデータAの入力を受け付けて一時文脈として格納するステップ
S2 論理プログラム内の各ルールについてAと合致する条件を探すステップ
S3 合致する条件を含む各ルールにおいて(順次でもよいので)実施するステップ
S4 キューにデータが存在するかの判断をしてない場合にS1に戻るステップ
S5 キューに存在するデータA´を新しいデータ(事実)AとしてS2に戻るステップ
4 General computer used in the present invention (user-dedicated personal computer, shared file server, web server)
4a-4k general components of a general computer 4 (user-dedicated personal computer, etc.) 11 logic program (fixed facts and rules)
12 data (temporary context already added to array memory adjacent to the logic program)
13 New facts (data) (temporary context added by the user)
14 Rule meaning that if three or more conditions on the right side are satisfied, the establishment of the proposition on the left side is automatically confirmed (automatically added & notified) 15 New conclusion (automatically added and notified to the user, temporary context input as a seed for recursive forward reasoning)
16 Paths Input as Seeds for Recursive Forward Inference (via Queues)

Step S1: Step of accepting input of new data A and storing it as a temporary context S2: Step of searching for a condition that matches A for each rule in the logic program: Step S3: Step of executing each rule including matching conditions (because it may be in sequence): Step S4: If it is not determined whether data exists in the queue, return to S1: Step S5: Return to S2 using data A′ existing in the queue as new data (fact) A;

Claims (9)

複数ある条件の全部が成立した場合に
所定の命題が成立したとみなす形式のルールを処理する
コンピュータプログラムであって
ルールの複数ある条件の一部に合致する情報が新たに得られたときに、
該ルールの他の条件の成立を自動探索して
該ルールの該所定の命題の成立を自動確認する
コンピュータプログラムであって、

前記条件および前記所定の命題が、
自然言語に変数を埋め込むことを許容した形式で表現され、
前記合致する情報が、
自然言語の形式又は自然言語に変数を埋め込んだ形式で与えられること、

前記合致する情報と前記条件とを合致させる単一化によって得られる、
該ルール側の変数束縛を
該ルールに波及して、
より制限された形式での該所定の命題の成立を探索すること、

命題の成立を確認した場合に、
その命題を新たに得られた情報として、
コンピュータが記憶している一または複数の各ルールの
各条件の全部と合致するかを探索することにより、
該各ルールの各命題が成立するかを確認することを再帰的に繰り返すこと、
を特徴とするコンピュータプログラム。
A computer program that processes a rule that assumes that a given proposition is established when all of a plurality of conditions are established.
A computer program that automatically searches for the establishment of other conditions of the rule and automatically confirms the establishment of the predetermined proposition of the rule,

if said condition and said given proposition are:
Expressed in a form that allows variables to be embedded in natural language,
The matching information is
be given in the form of natural language or in the form of embedding variables in natural language;

obtained by unification of matching the matching information and the condition;
Spreading the variable binding on the rule side to the rule,
searching for the holding of the given proposition in a more restricted form;

If we confirm the existence of the proposition,
With the proposition as newly obtained information,
By searching whether all the conditions of one or more rules stored in the computer are met,
recursively repeating checking whether each proposition of each rule holds;
A computer program characterized by
同一または類似の条件の合致に対応して成立を確認できる複数の命題の列記をルールにおいて許容した
請求項1に記載のコンピュータプログラム。
2. The computer program according to claim 1, wherein the rule allows a list of a plurality of propositions whose establishment can be confirmed in response to matching of the same or similar conditions.
類似の条件のうちの共通部分を根又は根に近い枝として、
類似の条件のうちの差異部分を根からより遠い枝として、
根から対応する枝までの条件の確認によって成立したとみなせる命題を葉として
枝分かれのあるツリー状にルールを表現した
請求項に記載のコンピュータプログラム。
Taking the common part of the similar conditions as the root or a branch close to the root,
Taking the different parts of similar conditions as branches farther from the root,
3. The computer program according to claim 2 , wherein the rules are expressed in a tree-like manner with branches, with propositions that can be regarded as established by checking the conditions from the root to the corresponding branches as leaves.
成立した条件の数が2以上の所定数(ルールにおいて「:2」等と指定するようにしてもよい)の場合に、
前記所定の命題が成立することとした
請求項1に記載のコンピュータプログラム。
When the number of satisfied conditions is a predetermined number of 2 or more (the rule may be specified as ": 2" etc.),
2. The computer program according to claim 1, wherein said predetermined proposition is established.
成立した条件の数がちょうど1個の場合に、
前記所定の命題の成立を自動確認することを特徴とする
請求項1に記載のコンピュータプログラム。
If the number of conditions satisfied is exactly 1,
2. The computer program according to claim 1, wherein the establishment of said predetermined proposition is automatically confirmed.
成立した条件および成立した各条件に関連する各重みから計算した値が
所定の閾値以上もしくは閾値以下または閾値を超えるもしくは閾値未満の場合に、
前記所定の命題の成立を
自動確認することを特徴とする
請求項1に記載のコンピュータプログラム。
If the value calculated from the satisfied condition and each weight associated with each satisfied condition is greater than or equal to a predetermined threshold value, less than or equal to a threshold value, or greater than or less than a threshold value,
2. The computer program according to claim 1, wherein the establishment of said predetermined proposition is automatically confirmed.
前記所定の命題の成立を自動確認する際に、
関連する一以上の命題に対して、
関連づけた各命題の重み
または各条件に関連する重み
またはその両方から得た値を
各命題に関連づけて記憶することを特徴とする
請求項6に記載のコンピュータプログラム。
When automatically confirming the establishment of the predetermined proposition,
For one or more related propositions,
7. The computer program according to claim 6, wherein a value obtained from the weight of each associated proposition and/or the weight associated with each condition is stored in association with each proposition.
ルールの複数ある条件の一部に合致する情報が新たに得られたときに、
同じルール内の真偽の証明できない条件について
利用者に真偽を確認する、又は、利用者に真もしくは偽とする変数束縛集合を確認することを特徴とする
請求項1に記載のコンピュータプログラム。
When new information that meets some of the multiple conditions of the rule is obtained,
2. The computer program according to claim 1, further comprising confirming with the user whether the conditions in the same rule cannot be proved to be true or false, or confirming with the user a set of variable bindings to be true or false.
ルールの複数ある条件の一部に合致する情報が新たに得られたときに、
同じルール内の対応する条件または命題(いずれも真偽を自動証明できないものに限る)について
利用者に真偽を確認する、又は、利用者に真もしくは偽とする変数束縛集合を確認する
ことを特徴とする
請求項1に記載のコンピュータプログラム。
When new information that meets some of the multiple conditions of the rule is obtained,
2. The computer program according to claim 1, which confirms with the user whether the corresponding conditions or propositions (both of which cannot be automatically proved true or false) in the same rule are true or false, or confirms with the user a set of variable bindings that are true or false.
JP2017092047A 2017-05-03 2017-05-03 Method, computer program and apparatus for processing knowledge representation Active JP7313646B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017092047A JP7313646B2 (en) 2017-05-03 2017-05-03 Method, computer program and apparatus for processing knowledge representation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017092047A JP7313646B2 (en) 2017-05-03 2017-05-03 Method, computer program and apparatus for processing knowledge representation

Publications (2)

Publication Number Publication Date
JP2018190180A JP2018190180A (en) 2018-11-29
JP7313646B2 true JP7313646B2 (en) 2023-07-25

Family

ID=64478522

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017092047A Active JP7313646B2 (en) 2017-05-03 2017-05-03 Method, computer program and apparatus for processing knowledge representation

Country Status (1)

Country Link
JP (1) JP7313646B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078216B (en) * 2019-11-08 2023-06-02 泰康保险集团股份有限公司 Information display method, information display device, electronic equipment and computer readable medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014211725A (en) 2013-04-17 2014-11-13 ナレルシステム有限会社 Method, device, and computer program for processing knowledge or information
JP2016505953A (en) 2012-12-10 2016-02-25 ヴィディテック エージー Rule-based data processing system and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6312023A (en) * 1986-07-02 1988-01-19 Matsushita Electric Ind Co Ltd Knowledge acquiring system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016505953A (en) 2012-12-10 2016-02-25 ヴィディテック エージー Rule-based data processing system and method
JP2014211725A (en) 2013-04-17 2014-11-13 ナレルシステム有限会社 Method, device, and computer program for processing knowledge or information

Also Published As

Publication number Publication date
JP2018190180A (en) 2018-11-29

Similar Documents

Publication Publication Date Title
Neelakantan et al. Neural programmer: Inducing latent programs with gradient descent
Huang et al. Gamepad: A learning environment for theorem proving
Liu et al. Tree-structured decoding for solving math word problems
CN110192210B (en) Construction and processing of computational graphs for dynamically structured machine learning models
Mayer et al. User interaction models for disambiguation in programming by example
CN102339316B (en) Coding is constrained using the inquiry of the state machine based on type
Ward Proving program refinements and transformations
Forrest Implementing semantic network structures using the classifier system
Yan et al. Neural execution engines: Learning to execute subroutines
US10713429B2 (en) Joining web data with spreadsheet data using examples
Zhang et al. Neural guided constraint logic programming for program synthesis
Shi et al. Tf-coder: Program synthesis for tensor manipulations
Sowa Cognitive architectures for conceptual structures
Wang et al. Grammar prompting for domain-specific language generation with large language models
CN117149163A (en) Natural solution language
JP7313646B2 (en) Method, computer program and apparatus for processing knowledge representation
CN116661852B (en) Code searching method based on program dependency graph
CN115879450B (en) Gradual text generation method, system, computer equipment and storage medium
Kumar et al. Deep learning driven natural languages text to sql query conversion: A survey
JP2018190184A (en) Method, computer program and device automatically synthesizing idea from natural language text
Karim Java Deep Learning Projects: Implement 10 real-world deep learning applications using Deeplearning4j and open source APIs
Zhou et al. Survey of intelligent program synthesis techniques
Gabbay et al. Belief contraction, anti-formulae and resource overdraft: Part I deletion in resource bounded logics
JP6924461B2 (en) How to process logical programs that allow strings containing variables as literals, computer programs and devices
Moghadam et al. Creating a New Persian Poet Based on Machine Learning

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

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170803

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210125

A917 Reason for reinstatement of right to file examination request

Free format text: JAPANESE INTERMEDIATE CODE: A917

Effective date: 20210125

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220315

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220516

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20221004

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20221205

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230203

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230705

R150 Certificate of patent or registration of utility model

Ref document number: 7313646

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150