JPS62126460A - Answer collating device - Google Patents

Answer collating device

Info

Publication number
JPS62126460A
JPS62126460A JP60267715A JP26771585A JPS62126460A JP S62126460 A JPS62126460 A JP S62126460A JP 60267715 A JP60267715 A JP 60267715A JP 26771585 A JP26771585 A JP 26771585A JP S62126460 A JPS62126460 A JP S62126460A
Authority
JP
Japan
Prior art keywords
inference
character string
output
axiom
input
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.)
Pending
Application number
JP60267715A
Other languages
Japanese (ja)
Inventor
Hiroshi Kato
浩 加藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP60267715A priority Critical patent/JPS62126460A/en
Publication of JPS62126460A publication Critical patent/JPS62126460A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electrically Operated Instructional Devices (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

PURPOSE:To collate many answers only by the description of a simple axiom by providing an axiom input means, an inference rule storing means, an inference means, a character string input means, a character string collating means, an inference control means, and a character string collating control means. CONSTITUTION:The inference means 3 accumulated in the inference rule storing means 2 is applied to an axiom inputted from the inference means axiom input means 1 to execute the inference. When the inference succeeds, a signal indicating the success of the inference is outputted to the character string collating control means 7, the inference result is outputted to the character string collating means 5 and the inside status is held as it is. When a signal outputted from the inference control means 6 indicates the success of the character string collating, the inference is ended, and if the signal from the means 6 indicates failure, the current inference result is cancelled and the inference is continued. When the inference is failed, a signal indicating the failure of the inference is outputted to the means 7 to end the inference.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はCAI(Computer Aided In
5truction)などで用いる解答照合装置に関し
、さらに詳しくは入力解答が特定の公理と推論規則から
推論される文字列か否かを判定する装置に関するもので
ある。
DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention is based on CAI (Computer Aided In
The present invention relates to an answer matching device used in 5 tructions, etc., and more specifically to a device that determines whether an input answer is a character string inferred from specific axioms and inference rules.

(従来技術) 従来のCAIシステムにおける解答照合の方式としては
、入力解答と予想解答が完全に一致するか否かを調べる
方式、複数の予想解答の項目の中から一つまたは複数の
入力解答の項目が予想解答の項目の順序と同じ順序でま
たは順不同で出現しているか否かを調べる方式、一つま
たは複数の予想解答の項目がその順序でまたは順不同で
入力解答中に含まれているか否かを調べる方式、入力解
答中から任意の文字列を除外して予想解答との一致を調
べる方式、数学の文字式の照合において文字式の文字に
任意の数値を代入して式の値を求めることにより正誤を
判定する方式が知られている。
(Prior art) Methods of answer verification in conventional CAI systems include a method of checking whether an input answer and a predicted answer completely match, and a method of checking whether one or more input answers are selected from among a plurality of predicted answer items. A method for determining whether items appear in the same order as the items in the expected answer or out of order, and whether one or more items in the expected answer are included in the input answer in that order or out of order. A method to check the match with the expected answer by excluding any character string from the input answer, a method to find the value of the expression by substituting an arbitrary numerical value to the characters of the character expression in the matching of mathematical expressions. There is a known method for determining correctness or incorrectness based on the following.

(従来技術の問題点) しかしながら、従来の解答照合の方式のうち、数学の文
字式の照合において文字式の文字に任意の数値を代入し
て式の値を求めることにより正誤を判定する方式では文
字式の形式上の誤りが識別不可能であるという欠点を有
し、その他の方式では予想解答に複数の解答例がある場
合には解答例を全て列挙しなければならないという欠点
を有している。
(Problems with the prior art) However, among the conventional answer matching methods, there is no method that determines correctness or incorrectness by substituting arbitrary numerical values for the characters of the mathematical expression and calculating the value of the expression when comparing mathematical expressions. It has the disadvantage that formal errors in character expressions cannot be identified, and other methods have the disadvantage that if there are multiple answer examples in the predicted answer, all answer examples must be listed. There is.

(発明の目的) 本発明の目的は、予想解答の解答例を全て列挙する必要
をなくし、かつ照合しようとする解答が数式や文章や選
択肢などの種類の別を問わない解答照合装置を提供する
ことにある。
(Objective of the Invention) An object of the present invention is to provide an answer matching device that eliminates the need to list all answer examples of predicted answers, and does not care whether the answers to be matched are mathematical formulas, sentences, options, etc. There is a particular thing.

(発明の構成) 本発明は解答として入力された文字列が、形式に関する
定められた条件を満足するが否がを判定する装置におい
て、文字列入力手段と、公理入力手段と、推論規則記憶
手段と、前記公理入力手段からの出力に前記推論規則記
憶手段の内容を適用して推論をする機能を有する推論手
段と、前記推論手段からの出力を前記文字列入力手段か
らの出力と照合する機能を有する文字列照合手段と、前
記推論手段からの出力が推論の不成功を表わしていると
きには外部出力に論理値偽を返して推論の成功を表わし
ているときには前記文字列照合手段を起動する機能を有
する文字列照合制御手段と、前記文字列照合手段の出力
が文字列照合の成功を表わしているときには外部出力に
論理値真を返し、文字列照合の不成功を表わしていると
きには前記推論手段に推論結果を棄却させさらに推論を
続行させる機能を有する推論制御手段がら構成される。
(Structure of the Invention) The present invention provides an apparatus for determining whether a character string input as an answer satisfies a predetermined condition regarding the format, which includes a character string input means, an axiom input means, and an inference rule storage means. and an inference means having a function of making an inference by applying the contents of the inference rule storage means to the output from the axiom input means, and a function of comparing the output from the inference means with the output from the character string input means. and a function of returning a logical value false to an external output when the output from the inference means indicates failure of the inference, and activating the string comparison means when the output indicates success of the inference. a string matching control means having a character string matching control means; and when the output of the string matching means indicates success in string matching, a logical value true is returned to an external output, and when the output of the string matching means indicates failure in string matching, the inference means The inference control means has the function of causing the inference result to be rejected and the inference to be continued.

(実施例) 次に第1図を参照して本発明の実施例について説明する
(Example) Next, an example of the present invention will be described with reference to FIG.

第1図は本発明の一実施例を示すブロック図である。1
は公理入力手段で、予想解答の解答例の形式上の特徴を
表現した公理を入力し推論手段3に出力する機能を有す
る。公理入力手段1は例えばホストコンピュータとのイ
ンターフェースなどである。
FIG. 1 is a block diagram showing one embodiment of the present invention. 1
is an axiom input means, which has a function of inputting axioms expressing the formal characteristics of an answer example of a predicted answer and outputting them to the inference means 3. The axiom input means 1 is, for example, an interface with a host computer.

2は推論規則記憶手段で推論規則を蓄え推論手段3から
の要求によって推論規則を推論手段3に出力する。3は
推論手段で公理入力手段1から公理が入力されると推論
規則記憶手段2に蓄積されている推論規則を適用して推
論を行ない、推論の成功不成功を文字列照合制御手段7
に出力し、推論結果を文字列照合手段5に出力し、照合
の結果を推論制御手段6を介して入力し、照合成功の場
合は推論を終了し、照合不成功の場合は推論結果を棄却
して推論を続行する機能を有する。4は文字列入力手段
で、操作者の解答文字列を入力し文字列照合手段5に出
力する機能を有する。文字列入力手段4は、例えばキー
ボードなどのように操作者により直接解答文字列が入力
される装置であっても、ホストコンピュータを通じて文
字列が入力されるためのインターフェースなどであって
も良い。5は文字列照合手段で文字列照合制御手段7か
ら推論成功の信号を受は取ったときに起動され、推論手
段3からの推論結果と文字列入力手段4からの文字列を
パターンマツチし、パターンマツチの成否を推論制御手
段6に出力する機能を有する。また、文字列照合手段5
は推論手段3からの出力がワイルドカードなどの超文字
を含む場合は超文字の解決を行なう機能を有する。6は
推論制御手段で文字列照合手段5からの出力がパターン
マツチの成功を表わしているときには外部出力に論理値
真を出力すると共に推論手段3を初期状態に戻し、文字
列照合手段5からの出力がパターンマツチの不成功を表
わしているときには推論手段3に推論結果を棄却させ推
論の続行を指示する機能を有する。7は文字列照合制御
手段で推論手段3からの出力が推論の成功を表わしてい
るときには文字列照合手段5を起動させ、推論手段3か
らの出力が推論の不成功を表わしているときには外部出
力に論理値偽を出力する機能を有する。
2 is an inference rule storage means which stores inference rules and outputs the inference rules to the inference means 3 in response to a request from the inference means 3; 3 is an inference means which, when an axiom is input from the axiom input means 1, performs inference by applying the inference rules stored in the inference rule storage means 2, and determines the success or failure of the inference by a character string collation control means 7.
outputs the inference result to the string matching means 5, inputs the result of the matching via the inference control means 6, terminates the inference if the matching is successful, and rejects the inference result if the matching is unsuccessful. It has the ability to continue reasoning. Reference numeral 4 denotes a character string input means, which has a function of inputting the operator's answer character string and outputting it to the character string matching means 5. The character string input means 4 may be a device such as a keyboard through which an answer character string is directly input by an operator, or an interface through which a character string is input through a host computer. 5 is a character string matching means which is activated when receiving a signal of success in inference from the character string matching control means 7, and pattern-matches the inference result from the inference means 3 and the character string from the character string input means 4; It has a function of outputting the success or failure of pattern matching to the inference control means 6. In addition, the character string matching means 5
has a function of resolving supercharacters when the output from the inference means 3 includes supercharacters such as wild cards. Reference numeral 6 denotes an inference control means which outputs a logical value true to an external output when the output from the string matching means 5 indicates a success in pattern matching, returns the inference means 3 to its initial state, and controls the output from the string matching means 5. It has a function of instructing the inference means 3 to reject the inference result and to continue inference when the output indicates failure of pattern matching. 7 is a string matching control means which activates the string matching means 5 when the output from the inference means 3 indicates success of the inference, and outputs an external output when the output from the inference means 3 indicates failure of the inference. It has a function to output a logical value of false.

第1図中の推論手段3の機能を第2図に示すフローチャ
ートを導入してさらに詳しく説明する。図2に示される
、推論手段3のアルゴリズムは以下の通りである。
The functions of the inference means 3 shown in FIG. 1 will be explained in more detail by introducing the flowchart shown in FIG. The algorithm of the inference means 3 shown in FIG. 2 is as follows.

■推論手段公理入力手段から入力された公理に推論規則
記憶手段に蓄えられている推論手段を適用して推論を行
なう。(11,12) ■推論が成功したときには推論の成功を表わす信号を文
字列照合制御手段に出力すると共に推論結果を文字列照
合手段に出力し、そのまま内部状態を保持する。(13
,14,15) ■推論制御手段からの信号を待ち、推論制御手段からの
信号が文字列照合の成功を表わしているときには推論を
終了し、推論制御手段からの信号が文字列照合の不成功
を表わしているときには現在の推論結果を棄却して推論
を続行する。(16,17)■推論が出尽くしたとか記
憶容量不足などの物理的制約などの理由で推論が不成功
であったときには文字列照合制御手段に推論の不成功を
表わす信号を出力して推論を終了する。(13,18)
(発明の効果) 例えば、本発明において次のような推論規則を適用した
とする。
(2) Inference means The inference means stored in the inference rule storage means are applied to the axioms input from the axiom input means to perform inference. (11, 12) (11) When the inference is successful, a signal indicating the success of the inference is output to the string matching control means, and the inference result is output to the string matching means, and the internal state is maintained as it is. (13
, 14, 15) ■ Wait for a signal from the inference control means, and when the signal from the inference control means indicates success in string matching, end the inference, and when the signal from the inference control means indicates failure in string matching. , the current inference result is rejected and inference continues. (16, 17) ■ When inference is unsuccessful due to exhaustion of inference or physical constraints such as insufficient storage capacity, a signal indicating failure of inference is output to the string matching control means and inference is continued. finish. (13,18)
(Effects of the Invention) For example, suppose that the following inference rules are applied in the present invention.

1+−2−′−9 (α、13トα (α、f3)−13 [α、p1:δ−αδp [α、p1:δ−pδα [a、p、y]:δ−a8p8y [αJ3.y]:δ−0δy813 [0,β、Y]:δ−pδαδY [α、f3.yl:δ−D8yδα [αJ3.y]:δ−Yδαδp [αJ3.yl:δ−Yδpδα ただし、ここでαf3yδは終端記号列を表わし、(、
)[]:は非非終端量を表わす。また、終端記号列は非
終端記号と区別するために5′で括って表わす。
1+-2-'-9 (α, 13tα (α, f3)-13 [α, p1: δ-αδp [α, p1: δ-pδα [a, p, y]: δ-a8p8y [αJ3. y]: δ-0δy813 [0, β, Y]: δ-pδαδY [α, f3.yl: δ-D8yδα [αJ3.y]: δ-Yδαδp [αJ3.yl: δ-Yδpδα However, here αf3yδ is represents the terminal symbol string, (,
) [ ]: represents a non-terminal quantity. In addition, terminal symbol strings are expressed in brackets 5' to distinguish them from non-terminal symbols.

次に、本発明に予想解答として次のような公理を入力す
る。
Next, the following axioms are input to the present invention as expected answers.

じWX’、’Y’、’−Z’]:″+2すると、本発明
では、次に挙げるような解答例が入力されたときに論理
値真を出力する。
WX', 'Y', '-Z']:''+2 Then, in the present invention, a logical value true is output when the following answer examples are input.

wx+y−z WX−Z+Y y+wx−z y−z+wx −Z+WX+Y −z+y+wx 以上のような、数学的に等価な文字式が1つの公理から
導き出される。
wx+y−z WX−Z+Y y+wx−z y−z+wx −Z+WX+Y −z+y+wx A mathematically equivalent character expression as described above can be derived from one axiom.

さらに、WxがXWになることも許す場合には、構文規
則を入れ子にすることにより、以下のような公理で対応
できる。
Furthermore, if Wx is allowed to become XW, the following axioms can be used by nesting the syntax rules.

[[W′、IXl]、+1.IY1.(−21]、+ 
+ 1または、上の公理と同じ結果をもたらす以下の公
理でも良い。
[[W', IXl], +1. IY1. (-21], +
+ 1 or the following axiom that gives the same result as the above axiom.

[(’WX’、’XW’)、’Y’、’ −Z’]:’
 + ’上の2つの公理からは共に次に挙げるような解
答例が導き出される。
[('WX','XW'),'Y','-Z']:'
+ 'From the above two axioms, the following example answers can be derived.

wx+y−z XW+Y−Z WX−Z+Y w−z−y y+wx−z y+xw−z y−z+wx Y−Z+XW・ −Z+WX+Y −z+xw+y −z+y+wx −z 十y+xw 以上の例のように、従来の解答照合方式では予想解答の
解答例を全て列挙しなければならなかったものが、本発
明によれば簡単な公理を記述するだけで多数の解答例を
照合することができる。
wx + y-z XW + Y-Z WX-Z + Y w-z-y y + wx-z y + xw-z y-z + wx Y-Z + Well then In the past, it was necessary to list all answer examples of predicted answers, but according to the present invention, a large number of answer examples can be collated by simply writing a simple axiom.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の基本構成を示す図、第2図は第1図の
推論手段の動作を表わすフローチャートである。 図において、1・・・公理入力手段、2・・・推論規則
記憶手段、3・・・推論手段、4・・・文字列入力手段
、5・・・文字列照合手段、6・・・推論制御手段、7
・・・文字列照合制御手段、をそれぞれ示す。
FIG. 1 is a diagram showing the basic configuration of the present invention, and FIG. 2 is a flowchart showing the operation of the inference means shown in FIG. In the figure, 1...Axiom input means, 2...Inference rule storage means, 3...Inference means, 4...Character string input means, 5...Character string matching means, 6...Inference control means, 7
. . . indicates a character string collation control means, respectively.

Claims (1)

【特許請求の範囲】[Claims] 解答として入力された文字列が、形式に関する定められ
た条件を満足するか否かを判定する装置であって、文字
列入力手段と、公理入力手段と、推論規則記憶手段と、
前記公理入力手段からの出力に前記推論規則記憶手段の
内容を適用して推論をする機能を有する推論手段と、前
記推論手段からの出力を前記文字列入力手段からの出力
と照合する機能を有する文字列照合手段と、前記推論手
段からの出力が推論の不成功を表わしているときには外
部出力に論理値偽を返し推論の成功を表わしているとき
には前記文字列照合手段を起動する機能を有する文字列
照合制御手段と、前記文字列照合手段の出力が文字列照
合の成功を表わしているときには外部出力に論理値真を
返し、文字列照合の不成功を表わしているときには前記
推論手段に推論結果を棄却させさらに推論を続行させる
機能を有する推論制御手段を持つことを特徴とする解答
照合装置。
A device for determining whether a character string input as an answer satisfies a predetermined condition regarding a format, the device comprising: a character string input means, an axiom input means, an inference rule storage means;
an inference means having a function of inferring by applying the contents of the inference rule storage means to the output from the axiom input means, and a function of comparing the output from the inference means with the output from the character string input means. a character string matching means, and a character having a function of returning a logical value false to an external output when the output from the inference means indicates failure of the inference and activating the string matching means when the output from the inference means indicates success of the inference; When the outputs of the column matching control means and the string matching means indicate success in string matching, a logical value true is returned to the external output, and when the outputs of the string matching means indicate failure, the inference result is sent to the inference means. An answer matching device characterized by having an inference control means having a function of rejecting the question and continuing the inference.
JP60267715A 1985-11-27 1985-11-27 Answer collating device Pending JPS62126460A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60267715A JPS62126460A (en) 1985-11-27 1985-11-27 Answer collating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60267715A JPS62126460A (en) 1985-11-27 1985-11-27 Answer collating device

Publications (1)

Publication Number Publication Date
JPS62126460A true JPS62126460A (en) 1987-06-08

Family

ID=17448545

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60267715A Pending JPS62126460A (en) 1985-11-27 1985-11-27 Answer collating device

Country Status (1)

Country Link
JP (1) JPS62126460A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0333788A (en) * 1989-06-29 1991-02-14 Tokyo Electric Power Co Inc:The System for evaluating learner solution in electric work engineer training cai system
JP2007041179A (en) * 2005-08-02 2007-02-15 Hiroshima Industrial Promotion Organization Method for evaluating answer to math examination

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0333788A (en) * 1989-06-29 1991-02-14 Tokyo Electric Power Co Inc:The System for evaluating learner solution in electric work engineer training cai system
JP2007041179A (en) * 2005-08-02 2007-02-15 Hiroshima Industrial Promotion Organization Method for evaluating answer to math examination

Similar Documents

Publication Publication Date Title
McDermott RI: an Expert in the Computer Systems Domain.
EP3267369A1 (en) Decision tree generating apparatus, decision tree generating method, non-transitory computer-readable recording medium, and inquiry system
KR19990077006A (en) Genetic Programming Method and System
CN112667805A (en) Work order category determination method, device, equipment and medium
CN111667923A (en) Data matching method and device, computer readable medium and electronic equipment
JPS62126460A (en) Answer collating device
KR970004526B1 (en) Fuzzy reasoning processor and method and rule setting apparatus and method
CN115952201A (en) Data query method, device, system and storage medium
CN115455922A (en) Form verification method and device, electronic equipment and storage medium
WO2021064881A1 (en) Personnel arrangement device, arrangement method, and program
US20220374730A1 (en) Method for assigning at least one query triplet to at least one respective class
JPH0366704B2 (en)
JPS63153689A (en) Domicile reader
JPS6385861A (en) Document processor
JPH0262656A (en) Back-up device for elaboration of japanese word document
Bass Cluster validation using the non-parametric bootstrap and parallel processing: applications in unsupervised machine learning of Shimodaira's method to text mining and genomics
JPS6359625A (en) Forward inference system
JPH04178834A (en) Inference processing system
JPH01187637A (en) Rule acquisition system
JPH0734181B2 (en) Calculator with guide function
JPH02143326A (en) Sorting circuit
JPS6316340A (en) Checking system for source program
JPS61161574A (en) Inspecting device of circuit diagram
JPH0793156A (en) Production system
JPH0484322A (en) Device for preparing verification program