[go: up one dir, main page]

JP2006185219A - Predicate logic formula creation device, summary journalizing rule creation device, summary journalizing device, predicate logic formula creation program, summary journalizing rule creation program and summary journalizing program - Google Patents

Predicate logic formula creation device, summary journalizing rule creation device, summary journalizing device, predicate logic formula creation program, summary journalizing rule creation program and summary journalizing program Download PDF

Info

Publication number
JP2006185219A
JP2006185219A JP2004378628A JP2004378628A JP2006185219A JP 2006185219 A JP2006185219 A JP 2006185219A JP 2004378628 A JP2004378628 A JP 2004378628A JP 2004378628 A JP2004378628 A JP 2004378628A JP 2006185219 A JP2006185219 A JP 2006185219A
Authority
JP
Japan
Prior art keywords
condition attribute
value
event data
condition
attribute
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.)
Granted
Application number
JP2004378628A
Other languages
Japanese (ja)
Other versions
JP4709543B2 (en
Inventor
Yoshiaki Nagai
永井義明
Koji Sasaki
佐々木浩二
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to JP2004378628A priority Critical patent/JP4709543B2/en
Publication of JP2006185219A publication Critical patent/JP2006185219A/en
Application granted granted Critical
Publication of JP4709543B2 publication Critical patent/JP4709543B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a predicate logic formula creation device and a predicate logic formula creation program that create predicate logic formulas as rules of classifying data on each event by predetermined attributes, for events having background knowledge such as prerequisites for the events; a summary journalizing rule creation device and a summary journalizing rule creation program that create predicate logic formulas for events of accounting; and a summary journalizing device and a summary journalizing program that perform summary journalizing using predicate logic formulas. <P>SOLUTION: A summary journalizing rule creation process 30 applies common rules 32 of accounting transactions and company characteristic rules 33 specific to a company to past journalizing results 31 to create, by rough set theory, predicate logic formulas 34 whose decision attributes are a debit account title and a credit account title. A journalizing process 36 journalizes transaction data 35 according to the predicate logic formulas 34 to decide debit account titles and credit account titles and thus create journalizing results 37. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は複数の属性を有する事象に関して、所定の属性に基づいて各事象についてのデータを分類するためのルールである述語論理式を作成する及び述語論理式作成プログラムに関し、詳細には、ある属性が所定の値を取る際に、他の属性がどの値となるかを決定するルールを示す述語論理式作成装置、会計仕訳ルール作成装置、会計仕訳装置、述語論理式作成プログラム、会計仕訳ルール作成プログラム、及び、会計仕訳プログラムに関する。   The present invention relates to a predicate logical expression creating rule and predicate logical expression creating program that is a rule for classifying data for each event based on a predetermined attribute with respect to an event having a plurality of attributes. Predicate formula creation device, accounting journal rule creation device, accounting journal creation device, predicate formula creation program, accounting journal rule creation showing rules that determine what value other attributes will take when a value takes a predetermined value The present invention relates to an accounting journal program.

従来、実社会の事象のデータを蓄積したデータベースから当該事象を分類するルールを、コンピュータでの推論に利用できるような形式で作成する方法が研究されている。例えば、その事象についての前提条件等の背景知識と事例を用いて、仮説となる述語論理形式のルールを作成する方式として、帰納論理プログラミングがある(特許文献1参照)。また、曖昧性をもって集合の間の論理的関係を推論する理論として、ラフ集合理論がある(特許文献2参照)。
古川康一著、植野研著、尾崎知伸著、「帰納論理プログラミング」、共立出版、2001年5月25日 Pawlak,Z.、“Rough Sets: Theoretical Aspects of Reasoning About Data”、Kluwer Academic Publishers、1991年
Conventionally, a method for creating a rule for classifying an event from a database storing real-world event data in a format that can be used for inference by a computer has been studied. For example, there is induction logic programming as a method for creating a predicate logic form rule as a hypothesis by using background knowledge such as preconditions about the event and examples (see Patent Document 1). Further, as a theory for inferring a logical relationship between sets with ambiguity, there is a rough set theory (see Patent Document 2).
Koichi Furukawa, Ken Ueno, Tomonobu Ozaki, “Inductive Logic Programming”, Kyoritsu Shuppan, May 25, 2001 Pawlak, Z .; "Rough Sets: Theoretical Aspects of Reasoning About Data", Kluwer Academic Publishers, 1991.

しかしながら、特許文献1に示すような帰納論理プログラミングだけでは、事実を構成する生のデータから適切な述語論理式を生成することができないという問題点があり、特許文献2に示すようなラフ集合論理だけでも、背景知識を持った事例については効果的な述語論理形式作成できないという問題点があった。   However, there is a problem that an appropriate predicate logical expression cannot be generated from raw data constituting a fact only by induction logic programming as shown in Patent Document 1, and rough set logic as shown in Patent Document 2 However, there was a problem that an effective predicate logic form could not be created for cases with background knowledge.

本発明は、上述の問題点を解決するためになされたものであり、その事象についての前提条件等の背景知識を持った事象について、ラフ集合理論を用いて、所定の属性に基づいて各事象についてのデータを分類するためのルールである述語論理式を作成する述語論理式作成装置、及び、述語論理式作成プログラム、事象が会計処理である述語論理式を作成する会計仕訳ルール作成装置、及び、会計仕訳ルール作成プログラム、述語論理式を用いて会計仕訳処理を行う会計仕訳装置、及び、会計仕訳プログラムを提供することを目的とする。   The present invention has been made to solve the above-mentioned problems. For events having background knowledge such as preconditions for the events, each event based on predetermined attributes using rough set theory. A predicate logical expression creation device for creating a predicate logical expression that is a rule for classifying data on the data, a predicate logical expression creation program, an accounting journal rule creation device for creating a predicate logical expression whose event is accounting processing, and It is an object of the present invention to provide an accounting journal rule creation program, an accounting journal device that performs accounting journal processing using a predicate logical expression, and an accounting journal program.

上記課題を解決するため、請求項1に係る発明の述語論理式作成装置では、複数の属性を有する事象に関して、所定の属性に基づいて各事象についてのデータを分類するためのルールである述語論理式を作成する述語論理式作成装置において、少なくとも、分類の基準となる属性である決定属性と当該決定属性以外の属性である条件属性をデータ項目に有する、各事象についての個々のデータである事象データを入力する事象データ入力手段と、当該事象データ入力手段により入力された複数の前記事象データを記憶する事象データ記憶手段と、当該事象データ記憶手段に記憶されている前記事象データの所定の前記条件属性に対して、当該事象データを前記決定属性の値が同一である前記事象データの少なくとも一部のデータのまとまりの集合である第1クラスターと当該クラスターに含まれない前記事象データの少なくとも一部のデータのまとまりの集合である第2クラスターとに分類するクラスター作成手段と、当該クラスター作成手段により作成された前記第1クラスターに含まれる前記事象データの前記所定の条件属性の値が数値である場合には、前記事象データ記憶手段に記憶されているすべての前記事象データの当該条件属性の値の最小値以上最大値以下の値を要素とする集合を第1条件属性値集合とし、当該所定の条件属性の値が文字列である場合には各前記所定の条件属性の値を要素とする集合を第1条件属性値集合とする第1条件属性値集合作成手段と、前記クラスター作成手段により作成された前記第2クラスターに含まれる前記事象データの前記所定の条件属性の値が数値である場合には、前記事象データ記憶手段に記憶されているすべての前記事象データの当該条件属性の値の最小値以上最大値以下の値を要素とする集合を第2条件属性値集合とし、当該所定の条件属性の値が文字列である場合には各前記所定の条件属性の値を要素とする集合を第2条件属性値集合とする第2条件属性値集合作成手段と、前記第1条件属性値集合の要素と前記第2条件属性値集合の要素とを比較し、第1条件属性値集合と前記第2条件属性値集合との要素の関係を判断する関係判断手段と、前記関係判断手段での判断結果に基づいて前記第1条件属性値集合の所定の部分集合を下近似集合とするか、又は、下近似集合を作成せずに述語論理式を作成しないとする下近似集合決定手段と、前記下近似集合決定手段により決定された前記下近似集合を記憶する下近似集合記憶手段と、前記下近似集合記憶手段に記憶されている前記下近似集合について、当該下近似集合を構成する前記事象データの前記所定の条件属性の種類、前記所定の条件属性の値及び前記決定属性の値に基づいて、前記所定の条件属性が所定の値を取る際に前記決定属性がどの値を取るのかを示す述語論理式を作成する述語論理式作成手段と、当該述語論理式作成手段により作成された前記述語論理式を記憶する述語論理式記憶手段とを備えたことを特徴とする構成となっている。   In order to solve the above-mentioned problem, in the predicate logical expression creation device according to the first aspect of the present invention, for an event having a plurality of attributes, a predicate logic that is a rule for classifying data for each event based on a predetermined attribute In the predicate logical expression creation device for creating an expression, an event that is individual data for each event having at least a determination attribute that is an attribute serving as a classification reference and a condition attribute that is an attribute other than the determination attribute in a data item Event data input means for inputting data, event data storage means for storing a plurality of the event data input by the event data input means, and predetermined event data stored in the event data storage means For the condition attribute of the A cluster creating means for classifying the first cluster that is a combination and a second cluster that is a set of at least a part of the event data not included in the cluster, and the cluster created by the cluster creating means When the value of the predetermined condition attribute of the event data included in the first cluster is a numerical value, the value of the condition attribute of all the event data stored in the event data storage means A set having a value that is greater than or equal to the minimum value and less than or equal to the maximum value as a first condition attribute value set, and when the value of the predetermined condition attribute is a character string, a set having the value of each predetermined condition attribute as an element A first condition attribute value set creating means having the first condition attribute value set as a first condition attribute value set, and the predetermined condition of the event data included in the second cluster created by the cluster creating means If the value of the attribute is a numerical value, a set including elements whose values are the minimum value and the maximum value of the condition attribute values of all the event data stored in the event data storage means A second condition attribute value set, and when the value of the predetermined condition attribute is a character string, a second condition attribute value set is a set having the values of the predetermined condition attributes as elements The creation means compares the elements of the first condition attribute value set with the elements of the second condition attribute value set, and determines the relationship between the elements of the first condition attribute value set and the second condition attribute value set. Based on the determination result of the relationship determination means and the relationship determination means, a predetermined subset of the first condition attribute value set is set as a lower approximation set, or a predicate logical expression is created without creating a lower approximation set. Lower approximate set determining means not to create, and lower approximate set determining means A lower approximation set storage means for storing the lower approximation set determined by the step (a), and the lower approximation set stored in the lower approximation set storage means for the predetermined data of the event data constituting the lower approximation set. Based on the type of condition attribute, the value of the predetermined condition attribute, and the value of the determination attribute, a predicate logical expression indicating which value the determination attribute takes when the predetermined condition attribute takes a predetermined value A predicate logical expression creating means to be created and a predicate logical expression storage means for storing the previous description word logical expression created by the predicate logical expression creating means are provided.

また、請求項2に係る発明の述語論理式作成装置では、請求項1に記載の発明の構成に加えて、前記関係判断手段は、前記第1条件属性値集合の要素と前記第2条件属性値集合の要素とを比較し、前記第1条件属性値集合と前記第2条件属性値集合との要素の関係が、前記第1条件属性値集合と前記第2条件属性値集合とが重なりを有しない第1関係、前記第1条件属性値集合と前記第2条件属性値集合とが重なりを有し互いに含まれない第2関係、前記第2条件属性値集合が前記第1条件属性値集合に含まれる第3関係、又は、前記第1条件属性値集合が前記第2条件属性値集合に含まれる第4関係のいずれかであるかを判断し、前記近似集合決定手段は、前記関係判断手段において前記第1関係であると判断された場合に、前記第1条件属性値集合を下近似集合とする第1近似集合決定手段と、前記関係判断手段において前記第2関係であると判断された場合に、前記重なりに含まれる要素を前記第1条件属性値集合から除いた集合を下近似集合とする第2近似集合決定手段と、前記関係判断手段において前記第3関係であると判断された場合に、前記所定の条件属性の値が文字列である場合には、前記第1条件属性値集合から前記第2条件属性値集合を除いた集合を下近似集合とし、前記所定の条件属性の値が数値である場合には、前記第1条件属性値集合の最大値及び最小値と、前記第1条件属性値集合に含まれている前記第2条件属性値集合の値とにおいて、すべての大小関係の隣り合う2つの値についてその小さい方の値と大きい方の値とで示される範囲に含まれる前記第1条件属性値集合の要素の数を算出し、その数が最も多い隣り合う2つの値により指定される範囲に含まれる数の集合を下近似集合とする第3近似集合決定手段と、前記関係判断手段において前記第4関係であると判断された場合に、前記所定の条件属性の値が数値である場合には、前記第1条件属性値集合の最大値及び最小値と、前記重なりに含まれる前記第2条件属性値集合の値とにおいて、すべての大小関係の隣り合う2つの値についてその小さい方の値と大きい方の値とで示される範囲に含まれる前記第1条件属性値集合の要素の数を算出し、その数が最も多い隣り合う2つの値により指定される範囲に含まれる数の集合を下近似集合とする第4近似集合決定手段と、前記関係判断手段において前記第4関係であると判断された場合に、前記所定の条件属性の値が文字列である場合には、述語論理式を作成しないものとする不作成手段とを備えたことを特徴とする構成となっている。   Further, in the predicate logical expression creation device of the invention according to claim 2, in addition to the configuration of the invention of claim 1, the relation judging means includes the element of the first condition attribute value set and the second condition attribute. The elements of the value set are compared, and the relationship between the elements of the first condition attribute value set and the second condition attribute value set is such that the first condition attribute value set and the second condition attribute value set overlap. The first relationship that does not have, the first condition attribute value set and the second condition attribute value set overlap each other and do not include each other, the second condition attribute value set is the first condition attribute value set Or the first condition attribute value set is a fourth relation included in the second condition attribute value set, and the approximate set determining means If the first condition is determined by the means, the first condition A first approximation set determining unit having a sex value set as a lower approximation set, and an element included in the overlap from the first condition attribute value set when the relationship determination unit determines that the second relationship is established In the case where it is determined that the third relation is determined by the second approximate set determining means that uses the excluded set as a lower approximate set and the relation determining means, the value of the predetermined condition attribute is a character string. When the set obtained by excluding the second condition attribute value set from the first condition attribute value set is a lower approximation set, and the value of the predetermined condition attribute is a numerical value, the maximum of the first condition attribute value set Of the two values adjacent to each other in the magnitude relation, the smaller value and the larger value of the value and the minimum value and the value of the second condition attribute value set included in the first condition attribute value set Before being included in the range indicated by the value Calculating the number of elements of the first condition attribute value set, and a third approximate set determining unit that sets a set of numbers included in a range specified by two adjacent values having the largest number as a lower approximate set; When it is determined by the relationship determining means that the relationship is the fourth relationship, and the value of the predetermined condition attribute is a numerical value, the maximum value and the minimum value of the first condition attribute value set are overlapped with the overlap. Among the values of the second condition attribute value set included, the first condition attribute value set included in a range indicated by a smaller value and a larger value of two adjacent values of all magnitude relationships A fourth approximation set determining unit that calculates a set of numbers included in a range specified by two adjacent values having the largest number as the lower approximation set; and When it is determined that the relationship is 4 In addition, when the value of the predetermined condition attribute is a character string, a non-creation unit that does not create a predicate logical expression is provided.

また、請求項3に係る発明の述語論理式作成装置では、請求項1又は2に記載の発明の構成に加えて、前記条件属性は複数存在し、当該事象データ記憶手段に記憶されている前記事象データの前記条件属性のすべての組合せを作成する全条件属性組合せ作成手段と、当該全条件属性組合せ作成手段により作成された組合せを記憶する全条件属性組合せ記憶手段と、当該全条件属性組合せ記憶手段に記憶されているすべての組合せに対して、夫々前記クラスター作成手段、前記第1条件属性値集合作成手段、前記第2条件属性値集合作成手段、前記関係判断手段、前記下近似集合決定手段及び前記述語論理式作成手段を実施する全条件属性組合せ処理手段とを備えたことを特徴とする構成となっている。   Further, in the predicate logical expression creation device of the invention according to claim 3, in addition to the configuration of the invention of claim 1 or 2, there are a plurality of the condition attributes before being stored in the event data storage means. All condition attribute combination creating means for creating all combinations of the condition attributes of the event data, all condition attribute combination storage means for storing the combinations created by the all condition attribute combination creating means, and all condition attribute combinations For all combinations stored in the storage means, the cluster creation means, the first condition attribute value set creation means, the second condition attribute value set creation means, the relation determination means, and the lower approximation set determination, respectively. And an all-condition attribute combination processing means for executing the predescription word logical expression creating means.

また、請求項4に係る発明の述語論理式作成装置では、請求項1乃至3のいずれかに記載の発明の構成に加えて、前記第1条件属性値集合を上近似集合とする上近似集合作成手段と、当該近似集合記憶手段に記憶されている前記上近似集合に前記所定の条件属性の値が含まれる前記事象データの数である上近似事象データ数、及び、前記下近似集合に前記所定の条件属性の値が含まれる前記事象データの数である下近似事象データ数を算出し、前記下近似事象データ数を前記上近似事象データ数で割った値である近似精度を算出する近似精度算出手段と、前記組合せ毎に、当該組合せの前記下近似事象データ数と、前記近似精度算出手段により算出された前記近似精度と、前記事象データ記憶手段に記憶されている前記事象データの数とに基づいて有効性能評価指標を算出する有効性能評価指標算出手段と、当該有効性能評価算出手段により算出された前記有効性能評価指標の値が所定の値以下であった前記組合せについては、前記述語論理式作成手段において前記述語論理式を作成しないようにする述語論理式作成制御手段とを備えたことを特徴とする構成となっている。   In addition to the configuration of the invention according to any one of claims 1 to 3, the predicate logical expression creation device according to the invention of claim 4 is an upper approximation set in which the first condition attribute value set is an upper approximation set. Creating means, an upper approximate event data number that is the number of event data in which the value of the predetermined condition attribute is included in the upper approximate set stored in the approximate set storage means, and the lower approximate set Calculate the lower approximate event data number that is the number of the event data including the value of the predetermined condition attribute, and calculate the approximate accuracy that is a value obtained by dividing the lower approximate event data number by the upper approximate event data number For each combination, the number of lower approximate event data of the combination, the approximate accuracy calculated by the approximate accuracy calculation means, and the event data stored in the event data storage means Based on the number of The effective performance evaluation index calculation means for calculating the effective performance evaluation index and the combination in which the value of the effective performance evaluation index calculated by the effective performance evaluation calculation means is equal to or less than a predetermined value A predicate logical expression creation control means for preventing the predescription word logical expression from being created in the expression creating means is provided.

また、請求項5に係る発明の述語論理式作成装置では、請求項1乃至4のいずれかに記載の発明の構成に加えて、前記事象データ記憶手段に記憶されている前記事象データにおいて、前記所定の条件属性の値が記憶されていない場合には、前記クラスター作成手段、前記第1条件属性値集合作成手段、前記第2条件属性値集合作成手段、前記関係判断手段、前記下近似集合決定手段及び前記述語論理式作成手段を動作させないことを特徴とする構成となっている。   Further, in the predicate logical expression creation device of the invention according to claim 5, in addition to the configuration of the invention according to any one of claims 1 to 4, in the event data stored in the event data storage means If the value of the predetermined condition attribute is not stored, the cluster creation means, the first condition attribute value set creation means, the second condition attribute value set creation means, the relationship determination means, the lower approximation The set determining means and the predescription word formula creating means are not operated.

また、請求項6に係る発明の会計仕訳ルール作成装置では、請求項1乃至5のいずれかに記載の述語論理式作成装置であって、前記事象は会計処理における取引であり、前記事象データは会計処理において発生する個々の取引に関する取引データであり、前記決定属性の種類は借方及び貸方であり、その要素は勘定科目であり、前記条件属性は会計取引に関する種々の関連項目であり、その要素は関連項目に関する内容であって、所定の条件属性が所定の値を取る際に、前記決定属性である前記借方及び貸方がどの勘定科目となるのかを決定する述語論理式を作成することを特徴とする構成となっている。   Further, in the accounting journal rule creating device of the invention according to claim 6, the predicate formula creating device according to any one of claims 1 to 5, wherein the event is a transaction in accounting processing, and the event The data is transaction data relating to individual transactions that occur in accounting processing, the types of decision attributes are debits and credits, the elements thereof are account items, and the condition attributes are various related items relating to accounting transactions, The element is content related to a related item, and when a predetermined condition attribute takes a predetermined value, a predicate logical formula for determining which account item the debit and credit that are the determination attributes will be created It is the structure characterized by this.

また、請求項7に係る発明の会計仕訳装置では、会計処理において発生する個々の取引に関する取引データを入力する取引データ入力手段と、当該取引データ入力手段により入力された前記取引データを請求項6に記載の会計仕訳ルール作成装置の前記述語論理式作成手段により作成された前記述語論理式にしたがって、前記決定属性である借方及び貸方の勘定科目を決定する仕訳手段と、当該仕訳手段により決定された前記決定属性である借方及び貸方の勘定科目を当該取引データに関連付けて記憶する仕訳結果記憶手段とを備えたことを特徴とする構成となっている。   In the accounting journalizing apparatus of the invention according to claim 7, the transaction data input means for inputting the transaction data relating to each transaction generated in the accounting process, and the transaction data input by the transaction data input means are claimed in claim 6. According to the predescription word formula created by the predescription word formula creation means of the accounting journal rule creation device described in the above, the journal entry means for determining the debit and credit account items as the decision attributes, and the journal means Journal entry result storage means for storing the determined debit and credit account items that are the determined attributes in association with the transaction data is provided.

また、請求項8に係る発明の述語論理式作成プログラムでは、複数の属性を有する事象に関して、所定の属性に基づいて各事象についてのデータを分類するためのルールである述語論理式を作成させる動作をコンピュータに実行させるための述語論理式作成プログラムであって、少なくとも、分類の基準となる属性である決定属性と当該決定属性以外の属性である条件属性をデータ項目に有する、各事象についての個々のデータである事象データを入力する事象データ入力ステップと、当該事象データ入力ステップにより入力された複数の前記事象データを事象データ記憶手段に記憶する事象データ記憶ステップと、前記事象データ記憶手段に記憶されている前記事象データの所定の前記条件属性に対して、当該事象データを前記決定属性の値が同一である前記事象データの少なくとも一部のデータのまとまりの集合である第1クラスターと当該クラスターに含まれない前記事象データの少なくとも一部のデータのまとまりの集合である第2クラスターとに分類するクラスター作成ステップと、当該クラスター作成ステップにより作成された前記第1クラスターに含まれる前記事象データの前記所定の条件属性の値が数値である場合には、前記事象データ記憶手段に記憶されているすべての前記事象データの当該条件属性の値の最小値以上最大値以下の値を要素とする集合を第1条件属性値集合とし、当該所定の条件属性の値が文字列である場合には各前記所定の条件属性の値を要素とする集合を第1条件属性値集合とする第1条件属性値集合作成ステップと、前記クラスター作成ステップにより作成された前記第2クラスターに含まれる前記事象データの前記所定の条件属性の値が数値である場合には、前記事象データ記憶手段に記憶されているすべての前記事象データの当該条件属性の値の最小値以上最大値以下の値を要素とする集合を第2条件属性値集合とし、当該所定の条件属性の値が文字列である場合には各前記所定の条件属性の値を要素とする集合を第2条件属性値集合とする第2条件属性値集合作成ステップと、前記第1条件属性値集合の要素と前記第2条件属性値集合の要素とを比較し、第1条件属性値集合と前記第2条件属性値集合との要素の関係を判断する関係判断ステップと、前記関係判断ステップでの判断結果に基づいて前記第1条件属性値集合の所定の部分集合を下近似集合とするか、又は、下近似集合を作成せずに述語論理式を作成しないとする下近似集合決定ステップと、前記下近似集合決定ステップにより決定された前記下近似集合を下近似集合記憶手段に記憶する下近似集合記憶ステップと、前記下近似集合記憶手段に記憶されている前記下近似集合について、当該下近似集合を構成する前記事象データの前記所定の条件属性の種類、前記所定の条件属性の値及び前記決定属性の値に基づいて、前記所定の条件属性が所定の値を取る際に前記決定属性がどの値を取るのかを示す述語論理式を作成する述語論理式作成ステップと、当該述語論理式作成ステップにより作成された前記述語論理式を述語論理式記憶手段に記憶する述語論理式記憶ステップとをコンピュータに実行させることを特徴とする構成となっている。   In the predicate logical expression creation program of the invention according to claim 8, an operation for creating a predicate logical expression that is a rule for classifying data for each event based on a predetermined attribute for an event having a plurality of attributes Is a predicate formula creation program for causing a computer to execute at least a decision attribute that is an attribute that serves as a classification criterion and a conditional attribute that is an attribute other than the decision attribute in the data item. Event data input step for inputting event data that is data of the event data, an event data storage step for storing a plurality of the event data input by the event data input step in event data storage means, and the event data storage means For the predetermined condition attribute of the event data stored in the event data, A first cluster that is a set of at least some data of the event data that are the same, and a second cluster that is a set of at least some data of the event data not included in the cluster, If the value of the predetermined condition attribute of the event data included in the first cluster created by the cluster creation step is a numerical value, the cluster data is stored in the event data storage means. A set of elements having values from the minimum value to the maximum value of the condition attribute values of all the event data stored as a first condition attribute value set, and the value of the predetermined condition attribute is a character string In some cases, a first condition attribute value set creation step in which a set having the values of the predetermined condition attributes as elements is a first condition attribute value set; and the cluster creation If the value of the predetermined condition attribute of the event data included in the second cluster created by the step is a numerical value, all of the event data stored in the event data storage means A set of elements having values from the minimum value to the maximum value of the condition attribute value as a second condition attribute value set, and when the value of the predetermined condition attribute is a character string, A second condition attribute value set creation step in which a set having values as elements is a second condition attribute value set, and comparing the elements of the first condition attribute value set with the elements of the second condition attribute value set; A relationship determination step of determining a relationship between elements of one condition attribute value set and the second condition attribute value set; and a predetermined subset of the first condition attribute value set based on a determination result in the relationship determination step. Lower approximation set or lower A lower approximation set determining step that does not create a predicate logical expression without creating an approximate set, and a lower approximate set storage step that stores the lower approximate set determined by the lower approximate set determination step in a lower approximate set storage means And for the lower approximation set stored in the lower approximation set storage means, the type of the predetermined condition attribute of the event data constituting the lower approximation set, the value of the predetermined condition attribute, and the determination attribute A predicate logical expression creating step for creating a predicate logical expression indicating which value the decision attribute takes when the predetermined conditional attribute takes a predetermined value based on the value of the predicate logical expression, A predicate logical expression storage step for storing the created predescription logical expression in the predicate logical expression storage means is executed by a computer.

また、請求項9に係る発明の述語論理式作成プログラムでは、請求項8に記載の発明の構成に加えて、前記関係判断ステップは、コンピュータに、前記第1条件属性値集合の要素と前記第2条件属性値集合の要素とを比較させ、第1条件属性値集合と前記第2条件属性値集合との要素の関係が、前記第1条件属性値集合と前記第2条件属性値集合とが重なりを有しない第1関係、前記第1条件属性値集合と前記第2条件属性値集合とが重なりを有し互いに含まれない第2関係、前記第2条件属性値集合が前記第1条件属性値集合に含まれる第3関係、又は、前記第1条件属性値集合が前記第2条件属性値集合に含まれる第4関係のいずれかであるかを判断させ、前記近似集合決定ステップは、前記関係判断ステップにおいて前記第1関係であると判断された場合に、前記第1条件属性値集合を下近似集合とする第1近似集合決定ステップと、前記関係判断ステップにおいて前記第2関係であると判断された場合に、前記重なりに含まれる要素を前記第1条件属性値集合から除いた集合を下近似集合とする第2近似集合決定ステップと、前記関係判断ステップにおいて前記第3関係であると判断された場合に、前記所定の条件属性の値が文字列である場合には、前記第1条件属性値集合から前記第2条件属性値集合を除いた集合を下近似集合とし、前記所定の条件属性の値が数値である場合には、前記第1条件属性値集合の最大値及び最小値と、前記第1条件属性値集合に含まれている前記第2条件属性値集合の値とにおいて、すべての大小関係の隣り合う2つの値についてその小さい方の値と大きい方の値とで示される範囲に含まれる前記第1条件属性値集合の要素の数を算出し、その数が最も多い隣り合う2つの値により指定される範囲に含まれる数の集合を下近似集合とする第3近似集合決定ステップと、前記関係判断ステップにおいて前記第4関係であると判断された場合に、前記所定の条件属性の値が数値である場合には、前記第1条件属性値集合の最大値及び最小値と、前記重なりに含まれる前記第2条件属性値集合の値とにおいて、すべての大小関係の隣り合う2つの値についてその小さい方の値と大きい方の値とで示される範囲に含まれる前記第1条件属性値集合の要素の数を算出し、その数が最も多い隣り合う2つの値により指定される範囲に含まれる数の集合を下近似集合とする第4近似集合決定ステップと、前記関係判断ステップにおいて前記第4関係であると判断された場合に、前記所定の条件属性の値が文字列である場合には、述語論理式を作成しないものとする不作成ステップとをコンピュータに実行させることを特徴とする構成となっている。   Further, in the predicate logical expression creation program of the invention according to claim 9, in addition to the configuration of the invention according to claim 8, the relationship determination step includes: The elements of the two condition attribute value sets are compared, and the relationship between the elements of the first condition attribute value set and the second condition attribute value set is the following: A first relationship that does not have an overlap, a second relationship in which the first condition attribute value set and the second condition attribute value set do not overlap each other, and the second condition attribute value set is the first condition attribute Determining whether the third relation included in the value set or the first relation attribute value set is the fourth relation included in the second condition attribute value set, and the approximate set determination step includes: In the relationship determination step, the first relationship Is included in the overlap when it is determined that the second relation is determined in the first approximate set determining step in which the first condition attribute value set is a lower approximate set and the relation determining step. A second approximate set determining step in which a set obtained by removing the element to be removed from the first condition attribute value set is a lower approximate set, and the predetermined condition when the relationship determining step determines that the third relationship is satisfied When the attribute value is a character string, a set obtained by removing the second condition attribute value set from the first condition attribute value set is set as a lower approximation set, and the value of the predetermined condition attribute is a numerical value. Are the two adjacent values of all the magnitude relationships in the maximum value and the minimum value of the first condition attribute value set and the value of the second condition attribute value set included in the first condition attribute value set. Its value small The number of elements of the first condition attribute value set included in the range indicated by the larger value and the larger value is calculated, and the number included in the range specified by the two adjacent values having the largest number If the value of the predetermined condition attribute is a numerical value when it is determined in the third approximate set determining step that is a lower approximate set and the relationship determining step is the fourth relationship, Of the maximum value and the minimum value of the first condition attribute value set and the value of the second condition attribute value set included in the overlap, the smaller value and the larger value of two adjacent values of all magnitude relations The number of elements of the first condition attribute value set included in the range indicated by the value of is calculated, and the set of numbers included in the range specified by the two adjacent values having the largest number is calculated as a lower approximation set The fourth approximate set decision step And a non-creation step that does not create a predicate logical expression when the value of the predetermined condition attribute is a character string when it is determined that the relationship is the fourth relationship in the relationship determination step; Is executed by a computer.

また、請求項10に係る発明の述語論理式作成プログラムでは、請求項8又は9に記載の発明の構成に加えて、前記条件属性は複数存在し、当該事象データ記憶手段に記憶されている前記事象データの前記条件属性のすべての組合せを作成する全条件属性組合せ作成ステップと、当該全条件属性組合せ作成ステップにより作成された組合せを全条件属性組合せ記憶手段に記憶する全条件属性組合せ記憶ステップと、当該全条件属性組合せ記憶手段に記憶されているすべての組合せに対して、夫々前記クラスター作成ステップ、前記第1条件属性値集合作成ステップ、前記第2条件属性値集合作成ステップ、前記関係判断ステップ、前記下近似集合決定ステップ及び前記述語論理式作成ステップを実施する全条件属性組合せ処理ステップとをコンピュータに実行させることを特徴とする構成となっている。   Further, in the predicate logical expression creation program of the invention according to claim 10, in addition to the configuration of the invention according to claim 8 or 9, there are a plurality of the condition attributes before the condition data is stored in the event data storage means. All condition attribute combination creating step for creating all combinations of the condition attributes of the event data, and all condition attribute combination storing step for storing the combination created by the all condition attribute combination creating step in the all condition attribute combination storage means And the cluster creation step, the first condition attribute value set creation step, the second condition attribute value set creation step, and the relationship determination for all combinations stored in the all condition attribute combination storage means, respectively. A step, a lower approximation set determination step and a predescription word formula creation step. It has a structure, characterized in that to execute the computer.

また、請求項11に係る発明の述語論理式作成プログラムでは、請求項8乃至10のいずれかに記載の発明の構成に加えて、前記第1条件属性値集合を上近似集合とする上近似集合作成ステップと、当該近似集合記憶手段に記憶されている前記上近似集合に前記所定の条件属性の値が含まれる前記事象データの数である上近似事象データ数、及び、前記下近似集合に前記所定の条件属性の値が含まれる前記事象データの数である下近似事象データ数を算出し、前記下近似事象データ数を前記上近似事象データ数で割った値である近似精度を算出する近似精度算出ステップと、前記組合せ毎に、当該組合せの前記下近似事象データ数と、前記近似精度算出ステップにより算出された前記近似精度と、前記事象データ記憶手段に記憶されている前記事象データの数とに基づいて有効性能評価指標を算出する有効性能評価指標算出ステップと、当該有効性能評価算出ステップにより算出された前記有効性能評価指標の値が所定の値以下であった前記組合せについては、前記述語論理式作成ステップにおいて前記述語論理式を作成しないようにする述語論理式作成制御ステップとをコンピュータに実行させることを特徴とする構成となっている。   In addition to the configuration of the invention according to any one of claims 8 to 10, the predicate formula creating program of the invention according to claim 11 is an upper approximation set in which the first condition attribute value set is an upper approximation set. A creation step, an upper approximate event data number that is the number of event data in which the value of the predetermined condition attribute is included in the upper approximate set stored in the approximate set storage means, and the lower approximate set Calculate the lower approximate event data number that is the number of the event data including the value of the predetermined condition attribute, and calculate the approximate accuracy that is the value obtained by dividing the lower approximate event data number by the upper approximate event data number For each combination, the number of lower approximation event data of the combination, the approximation accuracy calculated by the approximation accuracy calculation step, and the event data storage means before being stored in the event data storage means An effective performance evaluation index calculating step for calculating an effective performance evaluation index based on the number of event data, and the combination in which the value of the effective performance evaluation index calculated by the effective performance evaluation calculating step is equal to or less than a predetermined value Is configured to cause the computer to execute a predicate logical expression creation control step for preventing the pre-description logical expression from being created in the previous description word logical expression creation step.

また、請求項12に係る発明の述語論理式作成プログラムでは、請求項8乃至11のいずれかに記載の発明の構成に加えて、前記事象データ記憶手段に記憶されている前記事象データにおいて、前記所定の条件属性の値が記憶されていない場合には、前記クラスター作成ステップ、前記第1条件属性値集合作成ステップ、前記第2条件属性値集合作成ステップ、前記関係判断ステップ、前記下近似集合決定ステップ及び前記述語論理式作成ステップをコンピュータに実施させないことを特徴とする構成となっている。   Further, in the predicate logical expression creation program of the invention according to claim 12, in addition to the configuration of the invention of any one of claims 8 to 11, in the event data stored in the event data storage means If the value of the predetermined condition attribute is not stored, the cluster creation step, the first condition attribute value set creation step, the second condition attribute value set creation step, the relationship determination step, the lower approximation The set determination step and the pre-description word formula creation step are prevented from being executed by a computer.

また、請求項13に係る発明の会計仕訳ルール作成プログラムでは、請求項8乃至12のいずれかに記載の述語論理式作成プログラムにおいて、前記事象は会計処理における取引であり、前記事象データは会計処理において発生する個々の取引に関する取引データであり、前記決定属性の種類は借方及び貸方であり、その要素は勘定科目であり、前記条件属性は会計取引に関する種々の関連項目であり、その要素は関連項目に関する内容であって、所定の条件属性が所定の値を取る際に、前記決定属性である前記借方及び貸方がどの勘定科目となるのかを決定する述語論理式の作成をコンピュータに実行させることを特徴とする構成となっている。   Further, in the accounting rule creation program of the invention according to claim 13, in the predicate formula creation program according to any one of claims 8 to 12, the event is a transaction in accounting processing, and the event data is Transaction data relating to individual transactions that occur in accounting processing, the types of decision attributes are debits and credits, elements thereof are account items, and the condition attributes are various related items relating to accounting transactions, Is the contents related items, and when a predetermined condition attribute takes a predetermined value, the computer creates a predicate logical expression that determines which account item the debit and credit that are the determination attributes will be It is the structure characterized by making it carry out.

また、請求項14に係る発明の会計仕訳プログラムでは、会計処理において発生する個々の取引に関する取引データを入力する取引データ入力ステップと、当該取引データ入力ステップにより入力された前記取引データを請求項13に記載の会計仕訳ルール作成プログラムの前記述語論理式作成ステップにより作成された前記述語論理式にしたがって、前記決定属性である借方及び貸方の勘定科目を決定する仕訳ステップと、当該仕訳ステップにより決定された前記決定属性である借方及び貸方の勘定科目を当該取引データに関連付けて記憶する仕訳結果記憶ステップとをコンピュータに実行させることを特徴とする構成となっている。   In the accounting journal program according to the fourteenth aspect of the present invention, the transaction data input step for inputting transaction data relating to each transaction generated in the accounting process, and the transaction data input by the transaction data input step are defined in claim 13. According to the predescription word formula created by the predescription word formula creation step of the accounting journal rule creation program described in the above, the journal entry step for determining the debit and credit account items as the decision attributes, and the journal step The journalizing result storing step for storing the determined debit and credit account items, which are the determined attributes, in association with the transaction data is executed by a computer.

請求項1に係る発明の述語論理式作成装置では、事象データ入力手段は、少なくとも、分類の基準となる属性である決定属性と決定属性以外の属性である条件属性をデータ項目に有する、各事象についての個々のデータである事象データを入力し、事象データ記憶手段は、事象データ入力手段により入力された複数の事象データを記憶することができる。そして、クラスター作成手段は、事象データ記憶手段に記憶されている事象データの所定の条件属性に対して、事象データを決定属性の値が同一である事象データの少なくとも一部のデータのまとまりの集合である第1クラスターとクラスターに含まれない事象データの少なくとも一部のデータのまとまりの集合である第2クラスターとに分類し、第1条件属性値集合作成手段は、クラスター作成手段により作成された第1クラスターに含まれる事象データの所定の条件属性の値が数値である場合には、事象データ記憶手段に記憶されているすべての事象データの条件属性の値の最小値以上最大値以下の値を要素とする集合を第1条件属性値集合とし、所定の条件属性の値が文字列である場合には各所定の条件属性の値を要素とする集合を第1条件属性値集合とし、第2条件属性値集合作成手段は、クラスター作成手段により作成された第2クラスターに含まれる事象データの所定の条件属性の値が数値である場合には、事象データ記憶手段に記憶されているすべての事象データの条件属性の値の最小値以上最大値以下の値を要素とする集合を第2条件属性値集合とし、所定の条件属性の値が文字列である場合には各所定の条件属性の値を要素とする集合を第2条件属性値集合とすることができる。そして、関係判断手段は、第1条件属性値集合の要素と第2条件属性値集合の要素とを比較し、第1条件属性値集合と第2条件属性値集合との要素の関係を判断し、下近似集合決定手段は、関係判断手段での判断結果に基づいて第1条件属性値集合の所定の部分集合を下近似集合とするか、又は、下近似集合を作成せずに述語論理式を作成しないとし、下近似集合記憶手段は、下近似集合決定手段により決定された下近似集合を記憶し、述語論理式作成手段は、下近似集合記憶手段に記憶されている下近似集合について、下近似集合を構成する事象データの所定の条件属性の種類、所定の条件属性の値及び決定属性の値に基づいて、所定の条件属性が所定の値を取る際に決定属性がどの値を取るのかを示す述語論理式を作成し、述語論理式記憶手段は、述語論理式作成手段により作成された述語論理式を記憶することができる。したがって、ある事象に関するデータを決定属性に関して分類するためのルール(述語論理式)を作成することができるので、作成された述語論理式を用いることによりある事象に関するデータの決定属性を容易に決定できるようになる。   In the predicate logical expression creation device of the invention according to claim 1, the event data input means has at least a decision attribute that is an attribute that serves as a classification criterion and a condition attribute that is an attribute other than the decision attribute in each data item. Event data which is individual data about the event data is input, and the event data storage means can store a plurality of event data input by the event data input means. Then, the cluster creating means determines the event data for the predetermined condition attribute of the event data stored in the event data storage means, and a set of at least a part of the event data having the same attribute value The first condition attribute value set creation means is created by the cluster creation means, and is classified into a second cluster that is a set of at least a part of event data not included in the cluster. When the value of the predetermined condition attribute of the event data included in the first cluster is a numerical value, a value not less than the minimum value and not more than the maximum value of the condition attribute values of all event data stored in the event data storage means Is a first condition attribute value set, and when the value of the predetermined condition attribute is a character string, the set having the value of each predetermined condition attribute as the element The condition attribute value set is set, and the second condition attribute value set creating means is the event data storage means when the value of the predetermined condition attribute of the event data included in the second cluster created by the cluster creating means is a numerical value. When the second condition attribute value set is a set of elements whose values are not less than the minimum value and not more than the maximum value of the condition attribute values of all event data stored in, and the value of the predetermined condition attribute is a character string Can set a set of elements having the values of each predetermined condition attribute as a second condition attribute value set. Then, the relationship determination means compares the elements of the first condition attribute value set and the elements of the second condition attribute value set, and determines the relationship between the elements of the first condition attribute value set and the second condition attribute value set. The lower approximate set determining means sets a predetermined subset of the first condition attribute value set as the lower approximate set based on the determination result of the relationship determining means, or predicate logical expression without creating the lower approximate set The lower approximation set storage means stores the lower approximation set determined by the lower approximation set determination means, and the predicate logical expression creation means stores the lower approximation set stored in the lower approximation set storage means. Which value the decision attribute takes when the predetermined condition attribute takes a predetermined value based on the type of the predetermined condition attribute of the event data constituting the lower approximation set, the value of the predetermined condition attribute, and the value of the decision attribute Create a predicate formula that indicates whether Means can store the predicate logic formulas created by predicate logic formula creation means. Therefore, since a rule (predicate logical expression) for classifying data related to a certain event with respect to a determination attribute can be created, the determination attribute of data related to a certain event can be easily determined by using the created predicate logical expression. It becomes like.

また、請求項2に係る発明の述語論理式作成装置では、請求項1に記載の発明の効果に加えて、関係判断手段は、第1条件属性値集合の要素と第2条件属性値集合の要素とを比較し、第1条件属性値集合と第2条件属性値集合との要素の関係が、第1条件属性値集合と第2条件属性値集合とが重なりを有しない第1関係、第1条件属性値集合と第2条件属性値集合とが重なりを有し互いに含まれない第2関係、第2条件属性値集合が第1条件属性値集合に含まれる第3関係、又は、第1条件属性値集合が第2条件属性値集合に含まれる第4関係のいずれかであるかを判断し、近似集合決定手段の第1近似集合決定手段は、関係判断手段において第1関係であると判断された場合に、第1条件属性値集合を下近似集合とし、第2近似集合決定手段は、関係判断手段において第2関係であると判断された場合に、重なりに含まれる要素を第1条件属性値集合から除いた集合を下近似集合とし、第3近似集合決定手段は、関係判断手段において第3関係であると判断された場合に、所定の条件属性の値が文字列である場合には、第1条件属性値集合から第2条件属性値集合を除いた集合を下近似集合とし、所定の条件属性の値が数値である場合には、第1条件属性値集合の最大値及び最小値と、第1条件属性値集合に含まれている第2条件属性値集合の値とにおいて、すべての大小関係の隣り合う2つの値についてその小さい方の値と大きい方の値とで示される範囲に含まれる第1条件属性値集合の要素の数を算出し、その数が最も多い隣り合う2つの値により指定される範囲に含まれる数の集合を下近似集合とし、第4近似集合決定手段は、関係判断手段において第4関係であると判断された場合に、所定の条件属性の値が数値である場合には、第1条件属性値集合の最大値及び最小値と、重なりに含まれる第2条件属性値集合の値とにおいて、すべての大小関係の隣り合う2つの値についてその小さい方の値と大きい方の値とで示される範囲に含まれる第1条件属性値集合の要素の数を算出し、その数が最も多い隣り合う2つの値により指定される範囲に含まれる数の集合を下近似集合とし、不作成手段は、関係判断手段において第4関係であると判断された場合に、所定の条件属性の値が文字列である場合には、述語論理式を作成しないものとすることができる。したがって、決定属性の値が同じ集合の要素の条件属性値の集合(第1条件属性値集合)と、その他の決定属性の値の集合の要素の条件属性値の集合(第2条件属性値集合)との関係に基づいて、属性値が文字列か数値かにも対応して下近似集合を決定することができる。   Further, in the predicate logical expression creation device according to the second aspect of the invention, in addition to the effect of the first aspect of the invention, the relationship judging means includes the elements of the first condition attribute value set and the second condition attribute value set. The elements are compared, and the element relationship between the first condition attribute value set and the second condition attribute value set is the first relation in which the first condition attribute value set and the second condition attribute value set do not overlap, The first condition attribute value set and the second condition attribute value set are overlapped and not included in each other, the second condition attribute value set is included in the first condition attribute value set, or the first relation It is determined whether the condition attribute value set is one of the fourth relations included in the second condition attribute value set, and the first approximate set determining means of the approximate set determining means is the first relation in the relation determining means. If it is determined, the first condition attribute value set is set as the lower approximation set, and the second approximation set determiner When the relationship determining means determines that the second relationship is established, the set obtained by removing the elements included in the overlap from the first condition attribute value set is set as the lower approximate set, and the third approximate set determining means is the relationship determining When it is determined that the third relationship is established by the means, and the value of the predetermined condition attribute is a character string, a set obtained by removing the second condition attribute value set from the first condition attribute value set is a lower approximation set. When the value of the predetermined condition attribute is a numerical value, the maximum value and the minimum value of the first condition attribute value set, and the value of the second condition attribute value set included in the first condition attribute value set , The number of elements of the first condition attribute value set included in the range indicated by the smaller value and the larger value of two adjacent values of all magnitude relations is calculated, and the number is the largest. Included in the range specified by two adjacent values And the fourth approximate set determining means determines that the first condition attribute is a numerical value when the value of the predetermined condition attribute is a numerical value when the relation determining means determines that the relation is the fourth relation. In the maximum value and the minimum value of the value set and the value of the second condition attribute value set included in the overlap, it is indicated by the smaller value and the larger value of two adjacent values of all magnitude relations. The number of elements of the first condition attribute value set included in the range is calculated, the set of numbers included in the range specified by two adjacent values having the largest number is set as a lower approximation set, When the relationship determining means determines that the relationship is the fourth relationship, if the value of the predetermined condition attribute is a character string, the predicate logical expression may not be created. Therefore, a set of condition attribute values of elements of the set having the same decision attribute value (first condition attribute value set) and a set of condition attribute values of elements of the other set of decision attribute values (second condition attribute value set) ), The lower approximation set can be determined in correspondence with whether the attribute value is a character string or a numerical value.

また、請求項3に係る発明の述語論理式作成装置では、請求項1又は2に記載の発明の効果に加えて、条件属性は複数存在しているので全条件属性組合せ作成手段は、事象データ記憶手段に記憶されている事象データの条件属性のすべての組合せを作成し、全条件属性組合せ記憶手段は、全条件属性組合せ作成手段により作成された組合せを記憶することができる。そして、全条件属性組合せ処理手段は、全条件属性組合せ記憶手段に記憶されているすべての組合せに対して、夫々クラスター作成手段、第1条件属性値集合作成手段、第2条件属性値集合作成手段、関係判断手段、下近似集合決定手段及び述語論理式作成手段を実施することができる。したがって、事象に関する様々な条件属性を条件として、また、その組合せを条件として述語論理式を作成することができる。   Further, in the predicate logical expression creation device of the invention according to claim 3, in addition to the effect of the invention of claim 1 or 2, since there are a plurality of condition attributes, all condition attribute combination creation means All combinations of the condition attributes of the event data stored in the storage means are created, and the all condition attribute combination storage means can store the combinations created by the all condition attribute combination creation means. Then, the all condition attribute combination processing means has a cluster creation means, a first condition attribute value set creation means, and a second condition attribute value set creation means for all combinations stored in the all condition attribute combination storage means. , Relationship determination means, lower approximation set determination means, and predicate logical expression creation means. Therefore, a predicate logical expression can be created using various condition attributes related to events as conditions and combinations thereof as conditions.

また、請求項4に係る発明の述語論理式作成装置では、請求項1乃至3のいずれかに記載の発明の効果に加えて、上近似集合作成手段は、第1条件属性値集合を上近似集合とし、近似精度算出手段は、近似集合記憶手段に記憶されている上近似集合に所定の条件属性の値が含まれる事象データの数である上近似事象データ数、及び、下近似集合に所定の条件属性の値が含まれる事象データの数である下近似事象データ数を算出し、下近似事象データ数を上近似事象データ数で割った値である近似精度を算出し、有効性能評価指標算出手段は、組合せ毎に、組合せの下近似事象データ数と、近似精度算出手段により算出された近似精度と、事象データ記憶手段に記憶されている事象データの数とに基づいて有効性能評価指標を算出し、述語論理式作成制御手段は、有効性能評価算出手段により算出された有効性能評価指標の値が所定の値以下であった組合せについては、述語論理式作成手段において述語論理式を作成しないようにすることができる。したがって、有効性の低い述語論理式は作成されないので、作成された述語論理式を用いて事象データを分類する際に妥当でない分類をされてしまうことがない。   In addition, in the predicate logical expression creation device of the invention according to claim 4, in addition to the effect of the invention according to any one of claims 1 to 3, the upper approximation set creation means further approximates the first condition attribute value set. The approximate accuracy calculation means is a set of upper approximate event data, which is the number of event data in which the value of the predetermined condition attribute is included in the upper approximate set stored in the approximate set storage means, and the lower approximate set. The number of event data including the value of the condition attribute is calculated as the lower approximate event data number, the approximate accuracy is calculated by dividing the lower approximate event data number by the upper approximate event data number, and the effective performance evaluation index The calculation means, for each combination, the effective performance evaluation index based on the number of lower approximate event data of the combination, the approximation accuracy calculated by the approximation accuracy calculation means, and the number of event data stored in the event data storage means Calculate the predicate logic The creation control means can prevent the predicate logical expression creation means from creating a predicate logical expression for a combination in which the value of the effective performance evaluation index calculated by the effective performance evaluation calculation means is equal to or less than a predetermined value. . Therefore, since a predicate logical expression with low effectiveness is not created, an invalid classification is not performed when event data is classified using the created predicate logical expression.

また、請求項5に係る発明の述語論理式作成装置では、請求項1乃至4のいずれかに記載の発明の効果に加えて、事象データ記憶手段に記憶されている事象データにおいて、所定の条件属性の値が記憶されていない場合には、クラスター作成手段、第1条件属性値集合作成手段、第2条件属性値集合作成手段、関係判断手段、下近似集合決定手段及び述語論理式作成手段を動作させないようにすることができる。したがって、条件属性の値のないデータについて無駄な処理を行わないので、処理の負担を軽減でき、また処理時間を短縮できる。   In addition, in the predicate logical expression creation device of the invention according to claim 5, in addition to the effect of the invention according to any one of claims 1 to 4, in the event data stored in the event data storage means, a predetermined condition If the attribute value is not stored, the cluster creation means, the first condition attribute value set creation means, the second condition attribute value set creation means, the relationship judgment means, the lower approximation set determination means, and the predicate logical expression creation means It can be prevented from operating. Therefore, since no unnecessary processing is performed on data having no condition attribute value, the processing load can be reduced and the processing time can be shortened.

また、請求項6に係る発明の会計仕訳ルール作成装置では、請求項1乃至5のいずれかに記載の発明の効果に加えて、事象を会計処理における取引とし、事象データを会計処理において発生する個々の取引に関する取引データとし、決定属性の種類を借方及び貸方とし、その要素は勘定科目とし、条件属性を会計取引に関する種々の関連項目とし、その要素は関連項目に関する内容として、所定の条件属性が所定の値を取る際に、決定属性である借方及び貸方がどの勘定科目となるのかを決定する述語論理式を作成することができる。したがって、過去の仕訳結果(事象データ)に基づいて、会計処理における借方勘定科目と貸方勘定科目の決定という仕訳処理のための述語論理式を作成することができるので、その企業に応じた会計仕訳ルール(述語論理式)を作成することができる。   In addition, in the accounting journal rule creation device of the invention according to claim 6, in addition to the effect of the invention according to any one of claims 1 to 5, an event is a transaction in accounting processing, and event data is generated in accounting processing Transaction data related to individual transactions, debit and credit as the type of decision attributes, elements as account items, condition attributes as various related items related to accounting transactions, elements as contents related items, predetermined condition attributes When taking a predetermined value, it is possible to create a predicate logical expression that determines which account item the debit and credit that are the determination attributes are. Therefore, based on the past journal results (event data), it is possible to create a predicate formula for the journal processing of determining the debit account and credit account in the accounting process. Rules (predicate logical expressions) can be created.

また、請求項7に係る発明の会計仕訳装置では、取引データ入力手段は、会計処理において発生する個々の取引に関する取引データを入力し、仕訳手段は、取引データ入力手段により入力された取引データを請求項6に記載の会計仕訳ルール作成装置の述語論理式作成手段により作成された述語論理式にしたがって、決定属性である借方及び貸方の勘定科目を決定し、仕訳結果記憶手段は、仕訳手段により決定された決定属性である借方及び貸方の勘定科目を取引データに関連付けて記憶することができる。したがって、その企業に応じた会計仕訳ルール(述語論理式)により取引データの仕訳を簡単に行うことができる。   In the accounting journalizing apparatus of the invention according to claim 7, the transaction data input means inputs the transaction data relating to each transaction generated in the accounting process, and the journalizing means receives the transaction data input by the transaction data input means. The debit and credit account items that are decision attributes are determined according to the predicate logical expression created by the predicate logical expression creating means of the accounting journal rule creating device according to claim 6, and the journal result storage means is determined by the journalizing means. The debit and credit account items, which are the determined attributes, can be stored in association with the transaction data. Therefore, the transaction data can be easily journaled by the accounting journal rule (predicate logical formula) corresponding to the company.

また、請求項8に係る発明の述語論理式作成プログラムでは、コンピュータに、少なくとも、分類の基準となる属性である決定属性と決定属性以外の属性である条件属性をデータ項目に有する、各事象についての個々のデータである事象データを入力する事象データ入力ステップと、事象データ入力ステップにより入力された複数の事象データを事象データ記憶手段に記憶する事象データ記憶ステップと、事象データ記憶手段に記憶されている事象データの所定の条件属性に対して、事象データを決定属性の値が同一である事象データの少なくとも一部のデータのまとまりの集合である第1クラスターとクラスターに含まれない事象データの少なくとも一部のデータのまとまりの集合である第2クラスターとに分類するクラスター作成ステップと、クラスター作成ステップにより作成された第1クラスターに含まれる事象データの所定の条件属性の値が数値である場合には、事象データ記憶手段に記憶されているすべての事象データの条件属性の値の最小値以上最大値以下の値を要素とする集合を第1条件属性値集合とし、所定の条件属性の値が文字列である場合には各所定の条件属性の値を要素とする集合を第1条件属性値集合とする第1条件属性値集合作成ステップと、クラスター作成ステップにより作成された第2クラスターに含まれる事象データの所定の条件属性の値が数値である場合には、事象データ記憶手段に記憶されているすべての事象データの条件属性の値の最小値以上最大値以下の値を要素とする集合を第2条件属性値集合とし、所定の条件属性の値が文字列である場合には各所定の条件属性の値を要素とする集合を第2条件属性値集合とする第2条件属性値集合作成ステップと、第1条件属性値集合の要素と第2条件属性値集合の要素とを比較し、第1条件属性値集合と第2条件属性値集合との要素の関係を判断する関係判断ステップと、関係判断ステップでの判断結果に基づいて第1条件属性値集合の所定の部分集合を下近似集合とするか、又は、下近似集合を作成せずに述語論理式を作成しないとする下近似集合決定ステップと、下近似集合決定ステップにより決定された下近似集合を下近似集合記憶手段に記憶する下近似集合記憶ステップと、下近似集合記憶手段に記憶されている下近似集合について、下近似集合を構成する事象データの所定の条件属性の種類、所定の条件属性の値及び決定属性の値に基づいて、所定の条件属性が所定の値を取る際に決定属性がどの値を取るのかを示す述語論理式を作成する述語論理式作成ステップと、述語論理式作成ステップにより作成された述語論理式を述語論理式記憶手段に記憶する述語論理式記憶ステップとを実行させることができる。したがって、ある事象に関するデータを決定属性に関して分類するためのルール(述語論理式)を作成することができるので、作成された述語論理式を用いることによりある事象に関するデータの決定属性を容易に決定できるようになる。   Further, in the predicate logical expression creation program of the invention according to claim 8, for each event, the computer has at least a determination attribute that is an attribute serving as a classification reference and a condition attribute that is an attribute other than the determination attribute in a data item. An event data input step for inputting event data that is individual data of the event data, an event data storage step for storing a plurality of event data input by the event data input step in the event data storage means, and an event data storage means The event data that is not included in the cluster is the first cluster that is a set of at least a part of the event data having the same value as the determination attribute value for the predetermined condition attribute of the event data. Cluster creation step for classifying at least part of the data into a second cluster that is a set of data If the value of the predetermined condition attribute of the event data included in the first cluster created by the cluster creation step is a numerical value, the value of the condition attribute of all the event data stored in the event data storage means A set of elements having a value between the minimum value and the maximum value of the first is the first condition attribute value set. When the value of the predetermined condition attribute is a character string, the set having the value of each predetermined condition attribute as the element If the value of the predetermined condition attribute of the event data included in the second cluster created by the first condition attribute value set creation step and the cluster creation step as the first condition attribute value set is a numerical value, the event data A set of elements having values from the minimum value to the maximum value of the condition attribute values of all event data stored in the storage means as the second condition attribute value set, and the value of the predetermined condition attribute is a character string A second condition attribute value set creating step in which a set having each predetermined condition attribute value as an element is a second condition attribute value set, an element of the first condition attribute value set, and a second condition attribute value set And a relationship determination step for determining the relationship between the elements of the first condition attribute value set and the second condition attribute value set, and based on the determination result at the relationship determination step, The lower approximation set determined by the lower approximation set determining step and the lower approximation set determining step in which the predetermined subset is a lower approximation set, or the predicate logical expression is not created without creating the lower approximation set. The lower approximation set storage step stored in the lower approximation set storage means, and the lower approximation set stored in the lower approximation set storage means, the types of predetermined condition attributes of event data constituting the lower approximation set, the predetermined condition attributes Values and determinants The predicate formula creation step and the predicate formula creation step create a predicate formula that indicates what value the decision attribute takes when a given condition attribute takes a given value based on the sex value The predicate logical expression storage step of storing the predicate logical expression in the predicate logical expression storage means can be executed. Therefore, since a rule (predicate logical expression) for classifying data related to a certain event with respect to a determination attribute can be created, the determination attribute of data related to a certain event can be easily determined by using the created predicate logical expression. It becomes like.

また、請求項9に係る発明の述語論理式作成プログラムでは、請求項8に記載の発明の効果に加えて、関係判断ステップにより、コンピュータに第1条件属性値集合の要素と第2条件属性値集合の要素とを比較させ、第1条件属性値集合と第2条件属性値集合との要素の関係が、第1条件属性値集合と第2条件属性値集合とが重なりを有しない第1関係、第1条件属性値集合と第2条件属性値集合とが重なりを有し互いに含まれない第2関係、第2条件属性値集合が第1条件属性値集合に含まれる第3関係、又は、第1条件属性値集合が第2条件属性値集合に含まれる第4関係のいずれかであるかを判断させることができる。そして、近似集合決定ステップにより、コンピュータに関係判断ステップにおいて第1関係であると判断された場合に、第1条件属性値集合を下近似集合とする第1近似集合決定ステップと、関係判断ステップにおいて第2関係であると判断された場合に、重なりに含まれる要素を第1条件属性値集合から除いた集合を下近似集合とする第2近似集合決定ステップと、関係判断ステップにおいて第3関係であると判断された場合に、所定の条件属性の値が文字列である場合には、第1条件属性値集合から第2条件属性値集合を除いた集合を下近似集合とし、所定の条件属性の値が数値である場合には、第1条件属性値集合の最大値及び最小値と、第1条件属性値集合に含まれている第2条件属性値集合の値とにおいて、すべての大小関係の隣り合う2つの値についてその小さい方の値と大きい方の値とで示される範囲に含まれる第1条件属性値集合の要素の数を算出し、その数が最も多い隣り合う2つの値により指定される範囲に含まれる数の集合を下近似集合とする第3近似集合決定ステップと、関係判断ステップにおいて第4関係であると判断された場合に、所定の条件属性の値が数値である場合には、第1条件属性値集合の最大値及び最小値と、重なりに含まれる第2条件属性値集合の値とにおいて、すべての大小関係の隣り合う2つの値についてその小さい方の値と大きい方の値とで示される範囲に含まれる第1条件属性値集合の要素の数を算出し、その数が最も多い隣り合う2つの値により指定される範囲に含まれる数の集合を下近似集合とする第4近似集合決定ステップと、関係判断ステップにおいて第4関係であると判断された場合に、所定の条件属性の値が文字列である場合には、述語論理式を作成しないものとする不作成ステップとを実行させることができる。したがって、決定属性の値が同じ集合の要素の条件属性値の集合(第1条件属性値集合)と、その他の決定属性の値の集合の要素の条件属性値の集合(第2条件属性値集合)との関係に基づいて、属性値が文字列か数値かにも対応して下近似集合を決定することができる。   Further, in the predicate logical expression creation program of the invention according to claim 9, in addition to the effect of the invention of claim 8, the relationship determination step causes the computer to send the elements of the first condition attribute value set and the second condition attribute value. The elements of the set are compared, and the relationship between the elements of the first condition attribute value set and the second condition attribute value set is the first relation in which the first condition attribute value set and the second condition attribute value set do not overlap. , A second relationship in which the first condition attribute value set and the second condition attribute value set overlap and are not included in each other, a third relationship in which the second condition attribute value set is included in the first condition attribute value set, or It can be determined whether the first condition attribute value set is one of the fourth relationships included in the second condition attribute value set. In the approximate set determining step, when it is determined that the computer has the first relationship in the relationship determining step, in the first approximate set determining step in which the first condition attribute value set is the lower approximate set, and in the relationship determining step When it is determined that the relationship is the second relationship, a second approximate set determining step in which a set obtained by removing the elements included in the overlap from the first condition attribute value set is a lower approximate set; If it is determined that the value of the predetermined condition attribute is a character string, a set obtained by removing the second condition attribute value set from the first condition attribute value set is set as a lower approximation set, and the predetermined condition attribute is set. When the value of is a numerical value, all the magnitude relations between the maximum and minimum values of the first condition attribute value set and the values of the second condition attribute value set included in the first condition attribute value set Next to Calculates the number of elements of the first condition attribute value set included in the range indicated by the smaller value and the larger value for the two matching values, and is specified by the two adjacent values with the largest number When the value of the predetermined condition attribute is a numerical value when it is determined in the third approximate set determining step that sets the number of sets included in the range to be the lower approximate set and the relationship determining step is the fourth relationship Is the smaller value and the larger value of the two adjacent values of all magnitude relationships in the maximum and minimum values of the first condition attribute value set and the values of the second condition attribute value set included in the overlap. The number of elements of the first condition attribute value set included in the range indicated by the value of, and the set of numbers included in the range specified by the two adjacent values having the largest number is the lower approximation set The fourth approximate set decision step And a non-creation step in which a predicate logical expression is not created when the value of the predetermined condition attribute is a character string when it is determined that the relationship is the fourth relationship in the relationship determination step. Can do. Therefore, a set of condition attribute values of elements in the set having the same decision attribute value (first condition attribute value set) and a set of condition attribute values of elements of the other set of decision attribute values (second condition attribute value set) ), The lower approximation set can be determined in correspondence with whether the attribute value is a character string or a numerical value.

また、請求項10に係る発明の述語論理式作成プログラムでは、請求項8又は9に記載の発明の効果に加えて、コンピュータに、事象データ記憶手段に記憶されている事象データの条件属性のすべての組合せを作成する全条件属性組合せ作成ステップと、全条件属性組合せ作成ステップにより作成された組合せを全条件属性組合せ記憶手段に記憶する全条件属性組合せ記憶ステップと、全条件属性組合せ記憶手段に記憶されているすべての組合せに対して、夫々クラスター作成ステップ、第1条件属性値集合作成ステップ、第2条件属性値集合作成ステップ、関係判断ステップ、下近似集合決定ステップ及び述語論理式作成ステップを実施する全条件属性組合せ処理ステップとを実行させることができる。したがって、事象に関する様々な条件属性を条件として、また、その組合せを条件として述語論理式を作成することができる。   Further, in the predicate logical expression creation program of the invention according to claim 10, in addition to the effect of the invention of claim 8 or 9, all the condition attributes of event data stored in the event data storage means are stored in the computer. All condition attribute combination creating step for creating a combination of all conditions, all condition attribute combination storing step for storing the combination created by the all condition attribute combination creating step in all condition attribute combination storing means, and storing in all condition attribute combination storing means A cluster creation step, a first condition attribute value set creation step, a second condition attribute value set creation step, a relationship determination step, a lower approximation set determination step, and a predicate logic formula creation step are performed for all combinations that are performed. All condition attribute combination processing steps to be executed can be executed. Therefore, a predicate logical expression can be created using various condition attributes related to events as conditions and combinations thereof as conditions.

また、請求項11に係る発明の述語論理式作成プログラムでは、請求項8乃至10のいずれかに記載の発明の効果に加えて、コンピュータに、第1条件属性値集合を上近似集合とする上近似集合作成ステップと、近似集合記憶手段に記憶されている上近似集合に所定の条件属性の値が含まれる事象データの数である上近似事象データ数、及び、下近似集合に所定の条件属性の値が含まれる事象データの数である下近似事象データ数を算出し、下近似事象データ数を上近似事象データ数で割った値である近似精度を算出する近似精度算出ステップと、組合せ毎に、組合せの下近似事象データ数と、近似精度算出ステップにより算出された近似精度と、事象データ記憶手段に記憶されている事象データの数とに基づいて有効性能評価指標を算出する有効性能評価指標算出ステップと、有効性能評価算出ステップにより算出された有効性能評価指標の値が所定の値以下であった組合せについては、述語論理式作成ステップにおいて述語論理式を作成しないようにする述語論理式作成制御ステップとを実行させることができる。したがって、有効性の低い述語論理式は作成されないので、作成された述語論理式を用いて事象データを分類する際に妥当でない分類をされてしまうことがない。   In addition to the effects of the invention according to any one of claims 8 to 10, the predicate logical expression creation program according to the invention according to claim 11 is used to make the computer set the first condition attribute value set as an upper approximation set. Approximate set creation step, upper approximate event data number that is the number of event data whose value of the predetermined condition attribute is included in the upper approximate set stored in the approximate set storage means, and predetermined condition attribute in the lower approximate set For each combination, an approximate accuracy calculation step for calculating the number of lower approximate event data, which is the number of event data including the value of, and calculating the approximate accuracy that is the value obtained by dividing the number of lower approximate event data by the number of upper approximate event data, In addition, an effective performance evaluation index is calculated based on the number of lower approximate event data in the combination, the approximate accuracy calculated in the approximate accuracy calculation step, and the number of event data stored in the event data storage means. Do not create a predicate logical expression in the predicate logical expression creation step for a combination in which the value of the effective performance evaluation index calculation step and the effective performance evaluation index calculated by the effective performance evaluation calculation step is equal to or less than a predetermined value. And a predicate formula creation control step. Therefore, since a predicate logical expression with low effectiveness is not created, an invalid classification is not performed when event data is classified using the created predicate logical expression.

また、請求項12に係る発明の述語論理式作成プログラムでは、請求項8乃至11のいずれかに記載の発明の効果に加えて、事象データ記憶手段に記憶されている事象データにおいて、所定の条件属性の値が記憶されていない場合には、クラスター作成ステップ、第1条件属性値集合作成ステップ、第2条件属性値集合作成ステップ、関係判断ステップ、下近似集合決定ステップ及び述語論理式作成ステップをコンピュータに実施させないようにできる。したがって、条件属性の値のないデータについて無駄な処理を行わないので、処理の負担を軽減でき、また処理時間を短縮できる。   Further, in the predicate logical expression creation program of the invention according to claim 12, in addition to the effect of the invention of any one of claims 8 to 11, in the event data stored in the event data storage means, a predetermined condition If the attribute value is not stored, a cluster creation step, a first condition attribute value set creation step, a second condition attribute value set creation step, a relationship determination step, a lower approximation set determination step, and a predicate logical expression creation step are performed. You can prevent the computer from implementing it. Therefore, since no unnecessary processing is performed on data having no condition attribute value, the processing load can be reduced and the processing time can be shortened.

また、請求項13に係る発明の会計仕訳ルール作成プログラムでは、請求項8乃至12のいずれかに記載の述語論理式作成プログラムにおける事象を会計処理における取引とし、事象データを会計処理において発生する個々の取引に関する取引データとし、決定属性の種類を借方及び貸方とし、その要素を勘定科目とし、条件属性を会計取引に関する種々の関連項目とし、その要素を関連項目に関する内容として、所定の条件属性が所定の値を取る際に、決定属性である借方及び貸方がどの勘定科目となるのかを決定する述語論理式の作成をコンピュータに実行させることができる。したがって、過去の仕訳結果(事象データ)に基づいて、会計処理における借方勘定科目と貸方勘定科目の決定という仕訳処理のための述語論理式を作成することができるので、その企業に応じた会計仕訳ルール(述語論理式)を作成することができる。   In the accounting rule creation program of the invention according to claim 13, an event in the predicate formula creation program according to any one of claims 8 to 12 is regarded as a transaction in accounting processing, and event data is generated in accounting processing. The transaction data related to the transaction is debit and credit, the element is the account item, the condition attribute is various related items related to the accounting transaction, and the element is the content related to the specified condition attribute. When taking a predetermined value, it is possible to cause the computer to create a predicate logical expression that determines which account item the debit and credit as the determination attributes are. Therefore, based on the past journal results (event data), it is possible to create a predicate formula for the journal processing of determining the debit account and credit account in the accounting process. Rules (predicate logical expressions) can be created.

また、請求項14に係る発明の会計仕訳プログラムでは、会計処理において発生する個々の取引に関する取引データを入力する取引データ入力ステップと、取引データ入力ステップにより入力された取引データを請求項13に記載の会計仕訳ルール作成プログラムの述語論理式作成ステップにより作成された述語論理式にしたがって、決定属性である借方及び貸方の勘定科目を決定する仕訳ステップと、仕訳ステップにより決定された決定属性である借方及び貸方の勘定科目を取引データに関連付けて記憶する仕訳結果記憶ステップとをコンピュータに実行させることができる。したがって、その企業に応じた会計仕訳ルール(述語論理式)により取引データの仕訳を簡単に行うことができる。   In the accounting journal program of the invention according to claim 14, the transaction data input step for inputting transaction data relating to each transaction generated in the accounting process, and the transaction data input by the transaction data input step are described in claim 13. The journal step that determines the debit and credit account items that are the decision attributes according to the predicate formula created by the predicate formula creation step of the accounting journal rule creation program, and the debit that is the decision attribute determined by the journal step And a journal result storing step for storing the credit account item in association with the transaction data. Therefore, the transaction data can be easily journaled by the accounting journal rule (predicate logical formula) corresponding to the company.

以下、本発明の実施の形態を図面を参照して説明する。まずはじめに、述語論理式を用いたデータの分類について図1を参照して説明する。図1は、述語論理式を用いたデータ分類の概念を示す模式図である。自然界や社会における種々の事象については、それに関する種々のデータ(事象データとする)が発生する。そして、その事象について何らかの働きを起こそうとする場合には、事象データの分類が必要となってくる。この事象データの分類には、事象データの何を基準にして分類するかが重要となってくる。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. First, data classification using predicate logical expressions will be described with reference to FIG. FIG. 1 is a schematic diagram showing the concept of data classification using predicate logical expressions. Various data related to the natural world and society (event data) is generated. And when it is going to take some action about the event, classification of event data is needed. In order to classify the event data, what is the basis of the event data is important.

事象データは、その事象に関する様々な観点(属性とする)からの値が集まったものである。例えば、会計システムにおける会計取引に着眼すれば、取引の発生した日付、取引の目的(売上、給与など)、金額、現金か小切手や手形のようなものかといった金銭の種類、貸借対照表などの会計資料を作成する際の勘定科目などが属性に該当する。また、学校における生徒の情報に着眼すれば、氏名、性別、住所、出身校、過去のクラス、現在のクラス、テストの点数、所属部活動などが属性に該当する。   The event data is a collection of values from various viewpoints (attributes) regarding the event. For example, if you focus on accounting transactions in the accounting system, such as the date the transaction occurred, the purpose of the transaction (sales, salary, etc.), the amount, the type of money such as cash, check or bill, balance sheet, etc. Accounts when creating accounting materials correspond to attributes. Further, if focusing on student information at school, the name, gender, address, school of origin, past class, current class, test score, affiliation activity, etc. correspond to attributes.

事象データを分類するに当たって、分類の基準となる属性(「決定属性」とする)の値が決まっていない場合がある。例えば、会計取引においては、会計資料を作成するためには、勘定科目により分類する必要があるが、実際の伝票により日付、目的、金額、金銭の種類等は分かっていても、勘定科目は決定していない場合がある。尚、伝票から発生した事象データを勘定科目に分類していく作業を仕訳といい、会計処理の基本作業となっている。また、学校の例では、クラス分けをする場合を考えると、クラスが決定属性となるが、そのクラスを決定することが目的であり、事象データのクラスは未定である。   When classifying event data, there is a case where the value of an attribute (referred to as a “decision attribute”) that serves as a reference for classification is not determined. For example, in accounting transactions, in order to create accounting materials, it is necessary to classify by account item, but the account item is determined even if the date, purpose, amount, money type, etc. are known from the actual slip. May not have. The work of classifying event data generated from a slip into account items is called a journal and is a basic accounting process. Also, in the case of school, considering the case of class classification, the class becomes a determination attribute, but the purpose is to determine the class, and the event data class is undecided.

そこで、他の属性の値(「条件属性」とする)を条件として決定属性における分類のルールを作成することができれば、事象データを決定属性で簡単に分類することができる。本発明では、この分類のルールとなる述語論理式を作成するものである。図1においては、ルール(述語論理式)12がこれに該当する。尚、本発明では実際の問題解決の場では収集することが難しい事例(負例)、つまり自然界や社会においては発生しないと思われる事象のデータを前提としないものとする。   Therefore, if the classification rule for the decision attribute can be created using another attribute value (referred to as “condition attribute”) as a condition, the event data can be easily classified by the decision attribute. In the present invention, a predicate logical expression serving as a rule for this classification is created. In FIG. 1, the rule (predicate logical expression) 12 corresponds to this. It should be noted that in the present invention, it is not premised on case data (negative examples) that are difficult to collect in an actual problem-solving field, that is, event data that does not appear to occur in the natural world or society.

図1に示すように、事象10において事象データ1,2,3,4,5,6,7の7つの事象データが得られたとする。この事象データ1〜7において、ある属性(決定属性)について分類したいが、その値が未知であったとする。そこで、決定属性について分類するために、ルール(述語論理式)12を使用する。このルール12は、事象10における過去の事象データ13と、事象10についてその専門家等が認識している条件(共通ルール)14、その事象10における特別のルール(特別ルール)15とにより導かれ、このルール12を導く処理が本発明の要部である。このルール12の生成については、図2乃至図10を参照して後に詳述し、その後、図11乃至図33を参照して、具体例を挙げて説明する。   As shown in FIG. 1, it is assumed that seven event data of event data 1, 2, 3, 4, 5, 6, and 7 are obtained in event 10. In the event data 1 to 7, it is desired to classify a certain attribute (decision attribute), but the value is unknown. Therefore, in order to classify the decision attributes, rules (predicate logical expressions) 12 are used. The rule 12 is derived from past event data 13 in the event 10, a condition (common rule) 14 recognized by the expert for the event 10, and a special rule (special rule) 15 in the event 10. The process for deriving this rule 12 is the main part of the present invention. The generation of the rule 12 will be described in detail later with reference to FIGS. 2 to 10, and then described with reference to specific examples with reference to FIGS. 11 to 33.

例えば、属性a,b,c,dの4つの条件属性と、1つの決定属性があるとすると、ルール12は、「属性aの値>1,かつ,属性bの値≦6ならば、決定属性の値は「A」となる。」、「属性cの値が「B」ならば、決定属性の値は「A」となる。」、「10<属性a,かつ,6<属性bならば、決定属性の値は「B」となる。」、「100<属性dならば、決定属性の値は「B」となる。」、「属性cの値が「A」又は「F」ならば、決定属性の値は「C」となる。」、「属性a≦1,かつ,属性d≦100ならば、決定属性の値は「C」となる。」などである。   For example, if there are four condition attributes of attributes a, b, c, and d and one decision attribute, the rule 12 determines that “if the value of attribute a> 1, and the value of attribute b ≦ 6, The value of the attribute is “A”. ", If the value of attribute c is" B ", the value of the decision attribute is" A ". , “10 <attribute a and 6 <attribute b, the value of the determination attribute is“ B ”. , “100 <attribute d, the value of the determination attribute is“ B ”. ", If the value of attribute c is" A "or" F ", the value of the decision attribute is" C ". , “If attribute a ≦ 1, and attribute d ≦ 100, the value of the determination attribute is“ C ”. Etc.

図1に示す例では、以上のルールにしたがって、事象データ1が「属性a=3,属性b=4.5」で決定属性「A」に分類されており、事象データ2が「属性a=12,属性b=7」で決定属性「B」に分類されており、事象データ3が「属性d=125」で決定属性「B」に分類されており、事象データ4が「属性cが「A」」で決定属性「C」に分類されており、事象データ5が「属性a=1,属性d=96」で決定属性「C」に分類されており、事象データ6が「属性cが「B」」で決定属性「A」に分類されており、事象データ7が「属性a=3,属性b=4.8」で決定属性「A」に分類されている。したがって、図1に示すように、事象データ1〜7の決定属性が決定され、決定属性が「A」の集合16、決定属性が「B」の集合17、決定属性が「C」の集合18の3つに分類される。   In the example illustrated in FIG. 1, according to the above rules, event data 1 is classified as “attribute a = 3, attribute b = 4.5” and determined attribute “A”, and event data 2 is “attribute a = 12, attribute b = 7 ”is classified as a decision attribute“ B ”, event data 3 is classified as“ attribute d = 125 ”and decision attribute“ B ”, and event data 4 is classified as“ attribute c is “ "A" "is classified as a decision attribute" C ", event data 5 is classified as" attribute a = 1, attribute d = 96 "as a decision attribute" C ", and event data 6 is classified as" attribute c " “B” is classified as a decision attribute “A”, and the event data 7 is classified as “decision attribute“ A ”with“ attribute a = 3, attribute b = 4.8 ”. Therefore, as shown in FIG. 1, the decision attributes of the event data 1 to 7 are decided, the decision attribute “A” set 16, the decision attribute “B” set 17, and the decision attribute “C” set 18. It is classified into three.

尚、本実施の形態では、ルール12を数1のような形式の述語論理式で表現するものとする。「:−」の右辺が条件、左辺が結果となり、右辺が真ならば左辺も真という関係が成り立つ。例えば、「属性aの値X1>1,かつ,属性bの値X2≦6ならば、決定属性の値は「A」となる。」というルールであれば、数2のように表される。また、「属性cの値Y1が「A」又は「F」ならば、決定属性の値は「C」となる。」というルールであれば、数3のように表される。尚、「greaterThanInt(X1,1)」はX1は整数型で1より大であることを示す表記である。これに準じて、「lessThanInt(X1,1)」はX1は整数型で1より小を示し、「lessEqualInt(X1,1)」はX1は整数型で1以下を示し、「greaterThanInt(X1,1)」X1は整数型で1以上を示している。尚、X1が実数型の場合には「Int」でなく「Float」とする。また、「member(Y1[A,F])」は属性の値(変数Y1)が「A」または「F」であることを示す表記であり、[]内に属性値が列記される。

Figure 2006185219

Figure 2006185219

Figure 2006185219
In the present embodiment, it is assumed that the rule 12 is expressed by a predicate logical expression in the form of Equation 1. The right side of “: −” is a condition, the left side is the result, and if the right side is true, the relationship that the left side is also true is established. For example, if the value of attribute a is X1> 1, and the value of attribute b is X2 ≦ 6, the value of the determination attribute is “A”. Is expressed as the following formula (2). Also, if the value Y1 of the attribute c is “A” or “F”, the value of the decision attribute is “C”. Is expressed as the following equation (3). “GlaerThanInt (X1,1)” is a notation indicating that X1 is an integer type and greater than 1. Correspondingly, “lessThanInt (X1,1)” is X1 being an integer type and less than 1, “lessEqualInt (X1,1)” is X1 being an integer type and less than or equal to 1, and “greaterThanInt (X1,1)” ) ”X1 is an integer type and indicates 1 or more. When X1 is a real type, it is set to “Float” instead of “Int”. “Member (Y1 [A, F])” is a notation indicating that the attribute value (variable Y1) is “A” or “F”, and the attribute value is listed in [].
Figure 2006185219

Figure 2006185219

Figure 2006185219

次に、図2乃至図9を参照して、ルール12の作成方法について述べる。図2は、ラフ集合論で用いられる決定表20の模式図であり、図3は、ルール作成の概略フローチャートであり、図4は、決定表20の条件属性aについての部分決定表21の模式図である。図5は、部分決定表21から生成されるクラスターのイメージ図である。また、図6及び図7は、条件属性が文字列をとる場合の下近似集合のイメージ図であり、図8乃至図10は、条件属性が数値をとる場合の下近似集合のイメージ図である。   Next, a method for creating the rule 12 will be described with reference to FIGS. 2 is a schematic diagram of a decision table 20 used in rough set theory, FIG. 3 is a schematic flowchart of rule creation, and FIG. 4 is a schematic diagram of a partial decision table 21 for the condition attribute a of the decision table 20. FIG. FIG. 5 is an image diagram of a cluster generated from the partial determination table 21. 6 and 7 are image diagrams of the lower approximation set when the condition attribute takes a character string, and FIGS. 8 to 10 are image diagrams of the lower approximation set when the condition attribute takes a numerical value.

図2に示すように、分類される事象データは、条件属性と決定属性を分けて整理して表現される。この決定表20を基にして、図3に示すフローチャートの流れでルール12が作成される。   As shown in FIG. 2, the event data to be classified is expressed by arranging the condition attribute and the decision attribute separately. Based on this decision table 20, a rule 12 is created in the flow of the flowchart shown in FIG.

まず、事象データの属性を、図2に示すように各属性が決定属性と条件属性とに分け、決定表20を作成する(S1)。そして、各条件属性についての組合せを作成する(S2)。図2に示す例のような条件属性では、(属性a),(属性b),(属性c),…,(属性a,属性b),(属性a,属性c),(属性b,属性c),…,(属性a,属性b,属性c),…というような組合せが作成される。そして、すべての組合せについて、S4〜S9の処理が行われる(S3:NO,S4〜S9)。まず、処理を行う条件属性の組合せにおいて、決定属性の値毎に事象データを第1クラスターと第2クラスターとに分類する(S4)。   First, as shown in FIG. 2, the attribute of event data is divided into a decision attribute and a condition attribute, and a decision table 20 is created (S1). Then, a combination for each condition attribute is created (S2). In the condition attribute as shown in FIG. 2, (attribute a), (attribute b), (attribute c),..., (Attribute a, attribute b), (attribute a, attribute c), (attribute b, attribute c),... (attribute a, attribute b, attribute c),. And the process of S4-S9 is performed about all the combinations (S3: NO, S4-S9). First, in the combination of condition attributes to be processed, event data is classified into a first cluster and a second cluster for each value of the decision attribute (S4).

具体的には、決定表20から決定属性と当該組合せの属性のみの値からなる部分決定表21(図4参照)を作成する。尚、この際、当該組合せの属性に値がセットされていない事象データは、部分決定表21から削除される。図4は、決定属性が属性αのみであり、条件属性の組合せは(属性a)について作成された部分決定表21の模式図である。まず、決定属性の値で各データがソートされる。図5に示す例では、上から4つのデータが決定属性(属性α)が「1」であり、残りの2つのデータが決定属性(属性α)が「2」である。そこで、決定属性の値毎に第1クラスター(決定属性の値が同じデータの集合)と第2クラスター(決定属性の値が第1クラスターの決定属性の値以外のデータの集合)とに分割される。図5に示す例では、決定属性αの値は「1」と「2」の2種類なので、第1クラスターは2つ作成されることとなる。(条件属性aの値,決定属性αの値)とすると、第1の第1クラスターは{(12,1),(54,1),(12,1),(13,1)}となり、第1の第2クラスターは{(21,2),(12,2)}となる。そして、第2の第1クラスターは{(21,2),(12,2)}となり、第2の第2クラスターは{(12,1),(54,1),(12,1),(13,1)}となる。   Specifically, a partial determination table 21 (see FIG. 4) is created from the determination table 20 and including values of only the determination attribute and the attribute of the combination. At this time, event data for which no value is set in the attribute of the combination is deleted from the partial determination table 21. FIG. 4 is a schematic diagram of the partial determination table 21 in which the determination attribute is only the attribute α and the combination of the condition attributes is created for (attribute a). First, each data is sorted by the value of the decision attribute. In the example shown in FIG. 5, the four pieces of data from the top have a decision attribute (attribute α) of “1”, and the remaining two pieces of data have a decision attribute (attribute α) of “2”. Therefore, each decision attribute value is divided into a first cluster (a set of data having the same decision attribute value) and a second cluster (a set of data having a decision attribute value other than the decision attribute value of the first cluster). The In the example shown in FIG. 5, since there are two types of determination attribute α, “1” and “2”, two first clusters are created. Assuming (value of condition attribute a, value of decision attribute α), the first first cluster is {(12,1), (54,1), (12,1), (13,1)} The first second cluster is {(21, 2), (12, 2)}. The second first cluster is {(21,2), (12,2)}, and the second second cluster is {(12,1), (54,1), (12,1), (13, 1)}.

そして、S4で作成されたすべての決定属性の組合せについてS6〜S9の処理が行われる(S5:NO,S6〜S9)。まず、上近似集合が作成され(S6)、下近似集合が作成され(S7)、上近似集合と下近似集合とに基づいて有効性評価値が算出され(S8)、下近似集合に基づいて述語論理式が作成される(S9)。そして、すべての決定属性の組合せについて処理が終了したら(S5:YES)、次の条件属性の組合せについて処理が行われ(S4〜S9)、すべての組合せについての処理が終了したら(S3:YES)、有効性評価値が所定値以下の述語論理式を削除して(S10)、当該事象データからのルール(述語論理式)の作成は完了する。   And the process of S6-S9 is performed about the combination of all the decision attributes produced by S4 (S5: NO, S6-S9). First, an upper approximation set is created (S6), a lower approximation set is created (S7), and an effectiveness evaluation value is calculated based on the upper approximation set and the lower approximation set (S8). A predicate logical expression is created (S9). Then, when the processing is completed for all combinations of determined attributes (S5: YES), the processing is performed for the next combination of conditional attributes (S4 to S9), and when the processing for all combinations is completed (S3: YES). Then, the predicate logical expression whose effectiveness evaluation value is equal to or smaller than the predetermined value is deleted (S10), and the creation of the rule (predicate logical expression) from the event data is completed.

ここで、上近似集合、下近似集合の決定方法について図6乃至図9を参照して説明する。尚、上近似集合及び下近似集合とは、ラフ集合理論において用いられる集合である。数4は下近似集合を示しており、数5は上近似集合を示している。数4及び数5において、「X」は識別したい事象データ、「U」は事象データの全体集合、「x」はある1つの事象データ、「θ」は空集合を示しており、R(x)はRという条件属性で決定属性が決定される事象データの集合を示している。R(X)は下近似集合、R(X)は上近似集合を示している。

Figure 2006185219

Figure 2006185219
Here, a method of determining the upper approximation set and the lower approximation set will be described with reference to FIGS. The upper approximate set and the lower approximate set are sets used in the rough set theory. Equation 4 shows the lower approximation set, and Equation 5 shows the upper approximation set. In Equations 4 and 5, “X” indicates event data to be identified, “U” indicates an entire set of event data, “x” indicates one event data, “θ” indicates an empty set, and R (x ) Indicates a set of event data whose determination attribute is determined by the condition attribute R. R * (X) represents the lower approximate set, and R * (X) represents the upper approximate set.
Figure 2006185219

Figure 2006185219

つまり、下近似集合とは、R(x)集合の要素はすべてX集合に含まれることを示しており、下近似集合に含まれる要素は、すべて当該決定属性の値を持つものとなる。また、上近似集合は、R(x)集合とX集合とに共通部分がある(共通部分が空集合でない)ことを示しており、R(x)集合の要素のうちの少なくとも1つはX集合の要素であるとしている。そして、条件属性Rにより完全に決定属性を分類できる場合には、上近似集合と下近似集合とは同一集合となる。   That is, the lower approximate set indicates that all elements of the R (x) set are included in the X set, and all elements included in the lower approximate set have values of the determination attribute. The upper approximation set indicates that there is a common part between the R (x) set and the X set (the common part is not an empty set), and at least one of the elements of the R (x) set is X It is said to be an element of a set. If the decision attribute can be completely classified by the condition attribute R, the upper approximate set and the lower approximate set are the same set.

尚、上近似集合は、第1クラスターと同一の集合である。そして、下近似集合は、第1クラスターに属する事象データの条件属性の値の集合(第1条件属性値集合)と第2クラスターに属する事象データの条件属性の値の集合(第2条件属性値集合)との関係により決定される。特に、下近似集合を決定する際には、条件属性値の値が文字列であるか、それとも、値間に大小関係の発生する数値であるかによりその決定方法が異なる。   The upper approximate set is the same set as the first cluster. The lower approximate set includes a set of condition attribute values of event data belonging to the first cluster (first condition attribute value set) and a set of condition attribute values of event data belonging to the second cluster (second condition attribute value). It is determined by the relationship with the set. In particular, when determining the lower approximation set, the determination method differs depending on whether the value of the condition attribute value is a character string or a numerical value that has a magnitude relationship between the values.

まず、条件属性値が文字列である場合について説明する。ここで、第1クラスターをP、第2クラスターをQとする。第1クラスターPと第2クラスターQとに重なりがない場合(P∩Q=空集合)(「第1関係」に該当)には、第1クラスターPに属する値を条件属性としていれば、必ず決定属性が決まることになる。そこで、上近似集合、下近似集合ともに第1クラスターPとされる。   First, a case where the condition attribute value is a character string will be described. Here, the first cluster is P, and the second cluster is Q. When there is no overlap between the first cluster P and the second cluster Q (P∩Q = empty set) (corresponding to the “first relationship”), if the value belonging to the first cluster P is used as a conditional attribute, it is always The decision attribute is determined. Therefore, both the upper approximate set and the lower approximate set are set as the first cluster P.

また、図6に示すように、第1クラスターPと第2クラスターQとに重なりがあり、他方に含まれない場合(P∩Q≠空集合、且つ、PはQの部分集合でなく、且つ、QはPの部分集合でない)には(「第2関係」に該当)、重なりに属する値を条件属性とする場合には、決定属性の値が一意的に決まらないことになる。つまり、第1クラスターPが決定属性「1」であるデータの集合であるとすると、条件属性値が重なりに属する「A」である場合に、決定属性は「1」のものもあれば、「1」でないものもあるということになる。そこで、第1クラスターPが上近似集合とされ、第1クラスターPと第2クラスターQとの重なり(積)を第1クラスターから削除した集合(P−(P∩Q))が下近似集合とされる。   Further, as shown in FIG. 6, when the first cluster P and the second cluster Q overlap and are not included in the other (P∩Q ≠ empty set, and P is not a subset of Q, and , Q is not a subset of P) (corresponding to “second relation”), when the value belonging to the overlap is a condition attribute, the value of the decision attribute is not uniquely determined. That is, if the first cluster P is a set of data having the determination attribute “1”, if the condition attribute value is “A” belonging to the overlap, the determination attribute is “1”, Some of them are not “1”. Therefore, the first cluster P is an upper approximation set, and a set (P− (P (Q)) obtained by deleting the overlap (product) of the first cluster P and the second cluster Q from the first cluster is a lower approximation set. Is done.

また、図7に示すように、第2クラスターQが第1クラスターPに含まれる場合(Q⊆P)には(「第3関係」に該当)、第1クラスターPと第2クラスターQとに重なりがある場合に準じて、第1クラスターPが上近似集合とされ、第1クラスターPと第2クラスターQとの積を第1クラスターから削除した集合(P−(P∩Q))が下近似集合とされる。   Further, as shown in FIG. 7, when the second cluster Q is included in the first cluster P (Q⊆P) (corresponding to the “third relation”), the first cluster P and the second cluster Q According to the case where there is an overlap, the first cluster P is an upper approximate set, and the set obtained by deleting the product of the first cluster P and the second cluster Q from the first cluster (P− (P∩Q)) is lower. It is an approximate set.

条件属性が文字列を取る場合において、第1クラスターPが第2クラスターQに含まれてしまう場合(P⊆Q)には(「第4関係」に該当)、条件属性の値に基づいて決定属性が一意的に決めることができない。つまり、第1クラスターPが決定属性「1」であるデータの集合であるとすると、条件属性値が「A」である場合に、決定属性は「1」のものもあれば、「1」でないものもあるということになる。つまり、この条件属性の値から決定属性の値を決定することはできない。したがって、この事象データは述語論理式を作成するのに適当でないデータであると言え、述語論理式を作成しないものとされる。   When the first attribute P is included in the second cluster Q when the condition attribute is a character string (P⊆Q) (corresponding to “fourth relationship”), the determination is made based on the value of the condition attribute. An attribute cannot be uniquely determined. That is, if the first cluster P is a set of data having the determination attribute “1”, if the condition attribute value is “A”, the determination attribute is “1” and not “1”. It means that there are things. That is, the value of the determination attribute cannot be determined from the value of the condition attribute. Therefore, it can be said that this event data is data that is not suitable for creating a predicate logical expression, and the predicate logical expression is not created.

次に、条件属性値が数である場合について説明する。条件属性が数値を取る場合において、第1クラスターPと第2クラスターQとに重なりがない場合(P∩Q=空集合)(「第1関係」に該当)にも、条件属性が文字列をとる場合と同様に第1クラスターPに属する値を条件属性としていれば、必ず決定属性が決まることになる。そこで、上近似集合、下近似集合ともに第1クラスターPとされる。   Next, a case where the condition attribute value is a number will be described. When the condition attribute takes a numerical value, if the first cluster P and the second cluster Q do not overlap (P∩Q = empty set) (corresponding to the “first relationship”), the condition attribute is a character string. If the value belonging to the first cluster P is used as the condition attribute as in the case of taking the decision attribute, the determination attribute is always determined. Therefore, both the upper approximate set and the lower approximate set are set as the first cluster P.

また、図8に示すように、第1クラスターPと第2クラスターQとに重なりがあり、他方に含まれない場合(P∩Q≠空集合、且つ、PはQに含まれず、且つ、QはPに含まれない)には(「第2関係」に該当)、第1クラスターPが上近似集合とされ、第1クラスターPと第2クラスターQとの積を第1クラスターから削除した集合(P−(P∩Q))が下近似集合とされる。図8に示す例では、q1≦x≦p4の範囲においては、第1クラスターPと第2クラスターQとの領域が重なっている。そこで、下近似集合はp1≦x<q1となる。尚、ここで、2つの値により指定される範囲において、値が第1クラスターPの要素であれば等号を含み(≧,≦)、値が第2クラスターQの要素であれば等号を含まない(>,<)こととする。   Further, as shown in FIG. 8, when the first cluster P and the second cluster Q overlap and are not included in the other (P∩Q ≠ empty set, P is not included in Q, and Q Is not included in P) (corresponding to “second relation”), the first cluster P is an upper approximation set, and the product of the first cluster P and the second cluster Q is deleted from the first cluster (P− (P∩Q)) is a lower approximation set. In the example shown in FIG. 8, the regions of the first cluster P and the second cluster Q overlap in the range of q1 ≦ x ≦ p4. Therefore, the lower approximation set is p1 ≦ x <q1. Here, in the range specified by two values, if the value is an element of the first cluster P, an equal sign is included (≧, ≦), and if the value is an element of the second cluster Q, the equal sign is included. Not included (>, <).

また、図9に示すように、第2クラスターQが第1クラスターPに含まれる場合には(「第3関係」に該当)、第1クラスターPの最大値及び最小値と、第1クラスターPと第2クラスターQとの重なりに含まれる第2クラスターQの値とにおいて、大小関係の隣り合う2つの値について、その小さい方の値以上大きい方の値以下の範囲に含まれる第1クラスターPの値の数を算出し、その数が最も多い隣り合う2つの値に挟まれた範囲に含まれる第1クラスターPの要素の集合が下近似集合とされる。第1クラスターPの最大値(p6)及び最小値(p1)と、第1クラスターPに含まれる第2クラスターQの値(q1,q2,q3)との関係は、p1<q1<q2<q3<p6となる。そこで、R1(p1≦x≦q1),R2(q1≦x≦q2),R3(q2≦x≦q3),R4(q3≦x≦p6)の5つの範囲において、第1クラスターPの要素の数を数えると、R1で3個、R2で0個、R3で1個、R4で2個となる。そこで、1番多いR1(p1≦x<q1)が下近似集合となる。   Further, as shown in FIG. 9, when the second cluster Q is included in the first cluster P (corresponding to the “third relationship”), the maximum value and the minimum value of the first cluster P, and the first cluster P And the value of the second cluster Q included in the overlap between the second cluster Q and the first cluster P included in the range of the smaller value and the larger value of the two adjacent values of the magnitude relationship And the set of elements of the first cluster P included in the range between the two adjacent values having the largest number is set as the lower approximation set. The relationship between the maximum value (p6) and the minimum value (p1) of the first cluster P and the values (q1, q2, q3) of the second cluster Q included in the first cluster P is p1 <q1 <q2 <q3. <P6. Therefore, in the five ranges R1 (p1 ≦ x ≦ q1), R2 (q1 ≦ x ≦ q2), R3 (q2 ≦ x ≦ q3), R4 (q3 ≦ x ≦ p6), the elements of the first cluster P When counting the number, R1 is 3, R2 is 0, R3 is 1, R4 is 2. Therefore, R1 (p1 ≦ x <q1), which is the largest, becomes the lower approximation set.

また、図10に示すように、第1クラスターPが第2クラスターQに含まれてしまう場合(P⊆Q)には(「第4関係」に該当)、第1クラスターPの最大値及び最小値と、第1クラスターPと第2クラスターQとの重なりに含まれる第2クラスターQの値(重なりに含まれる第2クラスターQの値)とにおいて、大小関係の隣り合う2つの値について、その小さい方の値以上大きい方の値以下の範囲に含まれる第1クラスターPの値の数を算出し、その数が最も多い隣り合う2つの値に挟まれた範囲に含まれる第1クラスターPの要素の集合が下近似集合とされる。図10に示す例では、第1クラスターPの最大値(p5)及び最小値(p1)と、第1クラスターPに含まれる第2クラスターの値(q3,q4,q5,q6)との関係は、p1<q3<q4<q5<q6<p5となる。そこで、R1(p1≦x≦q3),R2(q3≦x≦q4),R3(q4≦x≦q5),R4(q5≦x≦q6),R5(q6≦x≦p5)の5つの範囲において、第1クラスターPの要素の数を数えると、R1で1個、R2で0個、R3で1個、R4で2個、R5で1個となる。そこで、1番多いR4(q5<x<q6)が下近似集合となる。尚、ここで、2つの値により指定される範囲において、値が第1クラスターPの要素であれば等号を含み(≧,≦)、値が第2クラスターQの要素であれば等号を含まない(>,<)こととする。   Also, as shown in FIG. 10, when the first cluster P is included in the second cluster Q (P) Q) (corresponding to “fourth relationship”), the maximum value and the minimum value of the first cluster P Value and the value of the second cluster Q included in the overlap of the first cluster P and the second cluster Q (the value of the second cluster Q included in the overlap) The number of values of the first cluster P included in the range from the smaller value to the larger value is calculated, and the first cluster P included in the range between the two adjacent values having the largest number is calculated. The set of elements is the lower approximation set. In the example shown in FIG. 10, the relationship between the maximum value (p5) and the minimum value (p1) of the first cluster P and the values (q3, q4, q5, q6) of the second cluster included in the first cluster P is , P1 <q3 <q4 <q5 <q6 <p5. Therefore, R1 (p1 ≦ x ≦ q3), R2 (q3 ≦ x ≦ q4), R3 (q4 ≦ x ≦ q5), R4 (q5 ≦ x ≦ q6), R5 (q6 ≦ x ≦ p5) , The number of elements of the first cluster P is counted as 1 for R1, 0 for R2, 1 for R3, 2 for R4, and 1 for R5. Therefore, R4 (q5 <x <q6), which is the largest, becomes the lower approximation set. Here, in the range specified by two values, if the value is an element of the first cluster P, an equal sign is included (≧, ≦), and if the value is an element of the second cluster Q, the equal sign is included. Not included (>, <).

次に、有効性評価値について説明する。この有効性評価値は各条件属性の組合せから作成される述語論理式の有効性を評価するための値である。有効性評価値は、数6により与えられる。尚、ρは条件属性の個数を評価に反映する程度を表すパラメータであり、情報分類を行う状況によって変更する。通常は2程度に設定する。下近似事象データ数は、条件属性の値が下近似集合に含まれる事象データの数であり、上近似事象データ数は、条件属性の値が上近似集合に含まれる事象データの数である。有効性評価値はその値が大きいほど有効性が高く、その値が低いほど有効性は低くなる。つまり、有効性が低い述語論理式ほどその述語論理式に基づいて事象データを分類しても正確な分類ができない可能性が高くなる。そこで、所定の値以下の述語論理式は不採用とされる。

Figure 2006185219
Next, the effectiveness evaluation value will be described. This validity evaluation value is a value for evaluating the validity of the predicate logical expression created from the combination of the condition attributes. The effectiveness evaluation value is given by Equation 6. Note that ρ is a parameter indicating the degree to which the number of condition attributes is reflected in the evaluation, and is changed depending on the situation where information classification is performed. Usually, it is set to about 2. The lower approximate event data number is the number of event data whose condition attribute value is included in the lower approximate set, and the upper approximate event data number is the number of event data whose condition attribute value is included in the upper approximate set. The effectiveness evaluation value increases as the value increases, and the effectiveness decreases as the value decreases. That is, a predicate logical expression that is less effective is more likely to be unable to be accurately classified even if event data is classified based on the predicate logical expression. Therefore, predicate logical expressions below a predetermined value are not adopted.
Figure 2006185219

通常のラフ集合論においては、その精度を評価する値として近似精度が利用され、当該条件属性の組み合わせにより完全に決定属性を分類できる場合には、上近似集合と下近似集合とは同一集合となり、その近似精度は「1」となり精度が高いと評価される。また、条件属性の組み合わせを構成する条件属性の数が多いほど上近似集合と下近似集合とは近づくので、単に条件属性の数が多いものの精度が高くなる傾向が現れてしまう。そこで、本発明では、条件属性の数及び事象データの数によりウェイト付けを行い有効性評価値を求めている。   In ordinary rough set theory, approximate accuracy is used as a value to evaluate the accuracy, and if the decision attribute can be completely classified by the combination of the condition attribute, the upper approximation set and the lower approximation set are the same set. The approximation accuracy is “1”, which is evaluated as high accuracy. In addition, as the number of condition attributes constituting a combination of condition attributes increases, the upper approximation set and the lower approximation set become closer, so that the accuracy tends to increase although the number of condition attributes is simply large. Therefore, in the present invention, the effectiveness evaluation value is obtained by weighting according to the number of condition attributes and the number of event data.

以上のようにして、ラフ集合論の下近似集合を利用して事象データの決定属性を決定するための述語論理式を作成することができる。また、有効性評価値を算出することにより、作成された述語論理式の有効性も評価することができるので、より有効性の高い述語論理式を優先して使用することができる。   As described above, a predicate logical expression for determining a determination attribute of event data can be created using a lower approximation set of rough set theory. In addition, by calculating the validity evaluation value, the validity of the created predicate logical expression can also be evaluated, so that a predicate logical expression having higher effectiveness can be preferentially used.

次に、本発明の具体例として、「事象」を会計取引、「事象データ」を会計取引において発生する取引データとして、取引データを会計上の貸方又は借方の勘定科目に仕訳けるための述語論理式の作成、及び取引データの仕訳を取り上げて説明する。   Next, as a specific example of the present invention, predicate logic for translating transaction data into accounting credit or debit account items, with “events” as accounting transactions and “event data” as transaction data generated in accounting transactions. Explains the creation of formulas and journal entries for transaction data.

まず、図11を参照して、会計仕訳ルール作成及び会計仕訳の処理の流れについて説明する。図11は、本実施例のデータと処理の関連図である。本会計仕訳ルールでは、どの企業にも適応する会計仕訳ルール(述語論理式)を作成するのではなく、企業ごとにその企業の特性を盛り込んだ会計仕訳ルールを作成する。図11に示すように、会計仕訳ルール作成処理30において、過去仕訳結果31に、会計取引での共通ルール32とその企業独特の企業特性ルール33を加味して、述語論理式34が作成される。この場合、決定属性が借方勘定科目及び貸方勘定科目となる。そして、仕訳処理36では、述語論理式34に基づいて取引データ35の仕訳を行い、借方勘定科目及び貸方勘定科目を決定し、仕訳結果37を作成する。   First, with reference to FIG. 11, the flow of processing of accounting journal entry rules and accounting journal entries will be described. FIG. 11 is a diagram showing the relationship between data and processing in this embodiment. In this accounting entry rule, an accounting entry rule that incorporates the characteristics of the company is created for each company, rather than creating an accounting entry rule (predicate formula) that applies to any company. As shown in FIG. 11, in the accounting journal rule creation process 30, a predicate logical expression 34 is created by adding a common rule 32 in accounting transactions and a company characteristic rule 33 unique to the company to the past journal result 31. . In this case, the determination attributes are a debit account item and a credit account item. In the journal processing 36, the transaction data 35 is journalized based on the predicate logical formula 34, the debit account item and the credit account item are determined, and the journal result 37 is created.

共通ルール32とは、例えば、「『日付』は、勘定科目の決定に影響を与えない」というような、会計処理を行う者(経理担当者や会計士、税理士等)の情報に基づいて導かれる「仕訳結果から『日付』の属性は削除する」というルールである。また、企業特性ルール33とは、「『相手先』が『M調査会社』の『摘要』が『情報提供料』の出金取引であれば、『情報提供契約』があり、『借方勘定科目』は『販売手数料』となる。」というような情報に基づいて導かれる「『相手先』が『M調査会社』の『摘要』が『情報提供料』の出金取引であれば、『情報提供契約』属性に「有り」をセットし、『相手先』が『M調査会社』でない『摘要』が『情報提供料』の出金取引については「無し」をセットする」というルールであり、過去仕訳結果に新たな『情報提供契約』属性が追加される。   The common rule 32 is derived based on information of an accountant (accounting person, accountant, tax accountant, etc.), for example, ““ Date does not affect the determination of account items ”. The rule is “delete the attribute of“ date ”from the journal entry result”. The company characteristic rule 33 is “if the“ partner ”is“ M research company ”” “summary” is “information provision fee” withdrawal transaction, there is “information provision contract” and “debit account item” "Is a" sales commission "" derived from information such as "If the" partner "is a" M research company "" summary "is a" information provision fee "withdrawal transaction, The rule is that “Yes” is set in the “Provision contract” attribute, and “No” is set for withdrawal transactions where “Description” is not “M research company” and “Information provision fee”. A new “information provision contract” attribute is added to the past journal result.

これらのルールは、会計仕訳ルール作成プログラムにおいて解読可能な形式で記載されている。また、従業員数や年間売上高といった企業情報もここにおいて入力される。例えば、「仕訳結果から『日付』の属性は削除する」というルールは「仕訳(借方勘定科目,貸方勘定科目):−日付(X1),fail.」と表現し、従業員数56人は「従業員数(56)と表現し、年間売上高2500万円は年間売上高(25000000)と表現する。   These rules are described in a format that can be deciphered by the accounting journal rule creation program. Also, company information such as the number of employees and annual sales is input here. For example, the rule “delete the attribute of“ date ”from journal results” is expressed as “journal (debit account, credit account):-date (X1), fail.”. Expressed as number (56), annual sales of 25 million yen is expressed as annual sales (25000000).

次に、図12を参照して、会計仕訳ルール作成及び会計仕訳の処理を行うコンピュータ100について説明する。図12は、コンピュータ100の電気的構成を示すブロック図である。図12に示すように、コンピュータ100には、コンピュータ100の制御を司るCPU110が設けられ、CPU110には各種のデータを一時的に記憶するRAM101と、BIOS等を記憶したROM102と、データの受け渡しの仲介を行うI/Oインタフェイス103とが接続されている。I/Oインタフェイス103には、ハードディスク装置120が接続され、当該ハードディスク装置120には、過去仕訳結果記憶エリア121と、共通ルール記憶エリア122と、企業特性ルール記憶エリア123と、述語論理式記憶エリア124と、取引データ記憶エリア125と、仕訳結果記憶エリア126と、プログラム記憶エリア127と、その他の情報記憶エリア128とが設けられている。   Next, the computer 100 that performs accounting journal rule creation and accounting journal processing will be described with reference to FIG. FIG. 12 is a block diagram showing an electrical configuration of the computer 100. As shown in FIG. 12, the computer 100 is provided with a CPU 110 that controls the computer 100. The CPU 110 temporarily stores various types of data, a RAM 101 that stores various data, a ROM 102 that stores BIOS, and the like. An I / O interface 103 that performs mediation is connected. A hard disk device 120 is connected to the I / O interface 103, and the past journal result storage area 121, common rule storage area 122, company characteristic rule storage area 123, and predicate logical expression storage are stored in the hard disk device 120. An area 124, a transaction data storage area 125, a journal result storage area 126, a program storage area 127, and other information storage areas 128 are provided.

尚、過去仕訳結果記憶エリア121には、述語論理式を生成するための過去の仕訳結果が記憶されており、共通ルール記憶エリア122には、会計処理一般の共通ルール32が記憶されており、企業特性ルール記憶エリア123には、当該企業における独特の企業特性ルール33が記憶されている。また、述語論理式記憶エリア124には、会計仕訳ルール作成処理で作成された述語論理式が記憶される。取引データ記憶エリア125には、会計仕訳処理にて仕訳される対象の取引データが記憶される。仕訳結果記憶エリア126には、会計仕訳処理にて取引データ記憶エリア125に記憶されている取引データが仕訳された結果が記憶される。プログラム記憶エリア127にはCPU110で実行されるプログラムが記憶されており、その他の情報記憶エリア128には、コンピュータ100で使用されるその他の情報が記憶されている。   The past journal result storage area 121 stores past journal results for generating a predicate logical expression, and the common rule storage area 122 stores common rules 32 for general accounting processing. The company characteristic rule storage area 123 stores a company characteristic rule 33 unique to the company. The predicate logical expression storage area 124 stores the predicate logical expression created by the accounting journal entry rule creation process. The transaction data storage area 125 stores transaction data to be journalized in the accounting journal processing. The journal result storage area 126 stores the result of journalizing the transaction data stored in the transaction data storage area 125 in the accounting journal processing. The program storage area 127 stores a program executed by the CPU 110, and the other information storage area 128 stores other information used by the computer 100.

また、I/Oインタフェイス103には、ビデオコントローラ104と、キーコントローラ105と、CD−ROMドライブ106と、FDドライブ107と、マウス108とが接続され、ビデオコントローラ104にはディスプレイ114が接続され、キーコントローラ105にはキーボード115が接続され、なお、CD−ROMドライブ106に挿入されるCD−ROM116には、コンピュータ100の制御プログラムが記憶されており、導入時に、CD−ROM116からハードディスク装置120にセットアップされてプログラム記憶エリア127に記憶される。また、FDドライブ107ではフレキシブルディスク117の読み取りや書き込みが可能となっている。   In addition, a video controller 104, a key controller 105, a CD-ROM drive 106, an FD drive 107, and a mouse 108 are connected to the I / O interface 103, and a display 114 is connected to the video controller 104. A keyboard 115 is connected to the key controller 105, and a control program for the computer 100 is stored in a CD-ROM 116 inserted into the CD-ROM drive 106, and the hard disk device 120 is loaded from the CD-ROM 116 at the time of introduction. Are stored in the program storage area 127. Further, the FD drive 107 can read and write to the flexible disk 117.

尚、過去仕訳結果31、共通ルール32、企業特性ルール33は、キーボード115やマウス108によりコンピュータ100に直接入力しても良いし、CD−ROM116やフレキシブルディスク117等の記憶媒体により入力しても良い。また、コンピュータ100をLANやインターネットに接続し、ネットワーク経由で入力しても良い。   The past journal result 31, the common rule 32, and the company characteristic rule 33 may be directly input to the computer 100 by the keyboard 115 or the mouse 108, or may be input by a storage medium such as the CD-ROM 116 or the flexible disk 117. good. Alternatively, the computer 100 may be connected to a LAN or the Internet and input via a network.

次に、図13乃至図32を参照して、会計仕訳処理の詳細について説明する。まず、図16及び図17を参照して、会計仕訳ルール作成処理における基本データとなる決定表について説明する。そして、図13乃至図15のフローチャートを参照して、会計仕訳ルール作成処理の流れを説明する。この際には、図18乃至図22を用いて、条件属性の組合せ(「摘要」のみ)の場合を具体例に挙げながら説明する。その後、図23乃至図27を用いて、条件属性の組合せ(「当座預金出金」のみ)の場合を具体例に挙げて説明し、図28乃至図32を用いて、条件属性の組合せ(「相手先」,「情報提供契約」)の場合を具体例に挙げて説明する。   Next, the details of the accounting journal processing will be described with reference to FIGS. First, with reference to FIG.16 and FIG.17, the determination table used as the basic data in an accounting journal rule preparation process is demonstrated. The flow of the accounting journal entry rule creation process will be described with reference to the flowcharts of FIGS. In this case, a case of a combination of condition attributes (only “summary”) will be described with reference to FIGS. 18 to 22 as a specific example. Subsequently, the case of a combination of condition attributes (only “current account withdrawal”) will be described with reference to FIGS. 23 to 27, and the combination of condition attributes (“ The case of "other party", "information provision contract") will be described as a specific example.

図13は、会計仕訳ルール作成処理のフローチャートであり、図14は、会計仕訳ルール作成処理の属性組合せ処理のフローチャートであり、図15は、属性組合せ処理の下近似集合作成処理のフローチャートである。また、図16は、過去仕訳結果記憶エリア121に記憶されている過去仕訳結果31に基づいて作成された決定表501の模式図であり、図17は、共通ルール32及び企業特性ルール33を加味した後の決定表502の模式図である。図18は、条件属性「摘要」についての部分決定表201の模式図であり、図19は、条件属性「摘要」についての部分決定表202の模式図であり、図20は、条件属性「摘要」についての部分決定表203の模式図である。尚、決定表501,502や部分決定表201〜203は、会計仕訳ルール作成プログラムによりRAM101に作成され、使用される中間データである。図21は、条件属性「摘要」についての第1クラスター及び第2クラスターの情報を記憶するRAM101のクラスター情報記憶エリア301の模式図であり、図22は、条件属性「摘要」についての集合の情報や述語論理式を記憶するRAM101の述語論理式情報記憶エリア302の模式図である。   FIG. 13 is a flowchart of accounting journal rule creation processing, FIG. 14 is a flowchart of attribute combination processing of accounting journal rule creation processing, and FIG. 15 is a flowchart of approximate set creation processing under attribute combination processing. 16 is a schematic diagram of the decision table 501 created based on the past journal result 31 stored in the past journal result storage area 121. FIG. 17 includes the common rule 32 and the company characteristic rule 33. It is a schematic diagram of the determination table 502 after having performed. 18 is a schematic diagram of the partial determination table 201 for the condition attribute “explanation”, FIG. 19 is a schematic diagram of the partial determination table 202 for the condition attribute “explanation”, and FIG. It is a schematic diagram of the partial determination table 203 for "." The decision tables 501 and 502 and the partial decision tables 201 to 203 are intermediate data created and used in the RAM 101 by the accounting journal rule creating program. FIG. 21 is a schematic diagram of the cluster information storage area 301 of the RAM 101 that stores information on the first cluster and the second cluster regarding the condition attribute “explanation”, and FIG. 22 shows information on the set regarding the condition attribute “explanation”. 2 is a schematic diagram of a predicate formula information storage area 302 of a RAM 101 that stores a predicate formula.

まず、図16及び図17を参照して、会計仕訳ルール作成処理における基本データとなる決定表について説明する。図16に示すように、決定表501は、取引データの各属性が条件属性と決定属性とに分けられており、行に個々のデータ、列に属性とする表形式で複数の取引データにより構成されている。図16に示す例では、「日付」、「摘要」、「相手先」、「現金入金」、「現金出金」、「当座預金入金」、「当座預金出金」、「普通預金入金」、「普通預金出金」、「対象社員比率(%)」が条件属性とされ、「借方勘定科目」及び「貸方勘定科目」が決定属性とされている。そして、30個の過去仕訳結果のデータにより構成されている。   First, with reference to FIG.16 and FIG.17, the determination table used as the basic data in an accounting journal rule preparation process is demonstrated. As shown in FIG. 16, the decision table 501 is composed of a plurality of transaction data in a table format in which each attribute of transaction data is divided into a condition attribute and a decision attribute, and each row has individual data and a column has attributes. Has been. In the example shown in FIG. 16, “date”, “description”, “partner”, “cash deposit”, “cash withdrawal”, “current account deposit”, “current account withdrawal”, “ordinary deposit”, “Normal deposit withdrawal” and “Target employee ratio (%)” are condition attributes, and “Debit account item” and “Credit account item” are decision attributes. And it is comprised by the data of 30 past journal results.

図16に示す例では、1番目の仕訳結果データでは4/2に「摘要」が「本日売上」、「現金入金」が「86080」の取引データが「借方勘定科目」は「現金」、貸方勘定科目は「売上高」に仕訳されている。2番目の仕訳結果データでは4/2に「摘要」が「仕入れ」、「相手先」が「A豆腐店」、「現金出金」が「37972」の取引データが「借方勘定科目」は「商品仕入高」、貸方勘定科目は「現金」に仕訳されている。3番目の仕訳結果データでは4/2に「摘要」が「社会保険料」、「相手先」が「T社会保険事務所」、「普通預金出金」が「129204」の取引データが「借方勘定科目」は「法定福利費」、貸方勘定科目は「普通預金」に仕訳されている。4番目の仕訳結果データでは4/3に「摘要」が「本日売上」、「現金入金」が「136650」の取引データが「借方勘定科目」は「現金」、貸方勘定科目は「売上高」に仕訳されている。5番目の仕訳結果データでは4/3に「摘要」が「仕入れ」、「相手先」が「A豆腐店」、「現金出金」が「9713」の取引データが「借方勘定科目」は「商品仕入高」、貸方勘定科目は「現金」に仕訳されている。6番目の仕訳結果データでは4/3に「摘要」が「仕入れ」、「相手先」が「K酒店」、「現金出金」が「3675」の取引データが「借方勘定科目」は「商品仕入高」、貸方勘定科目は「現金」に仕訳されている。7番目の仕訳結果データでは4/3に「摘要」が「ホワイトボードマーカー」、「相手先」が「S事務用品店」、「現金出金」が「850」の取引データが「借方勘定科目」は「備品・消耗品費」、貸方勘定科目は「現金」に仕訳されている。8番目の仕訳結果データでは4/3に「相手先」が「Tガス」、「当座預金出金」が「20405」の取引データが「借方勘定科目」は「水道光熱費」、貸方勘定科目は「当座預金」に仕訳されている。9番目の仕訳結果データでは4/3に「相手先」が「Cカード会社」、「当座預金出金」が「4200」の取引データが「借方勘定科目」は「備品・消耗品費」、貸方勘定科目は「当座預金」に仕訳されている。10番目の仕訳結果データでは4/7に「摘要」が「ごみ処理券」、「相手先」が「Kスーパー」、「現金出金」が「1080」の取引データが「借方勘定科目」は「雑費」、貸方勘定科目は「現金」に仕訳されている。   In the example shown in FIG. 16, in the first journal result data, the transaction data whose “summary” is “today's sales” and “cash deposit” is “86080” is “cash” for “debit account” is “credit”. The account is journalized in “Sales”. In the second journal result data, the transaction data for “Description” is “Purchase”, “Partner” is “A Tofu Shop”, and “Cash Withdrawal” is “37972” is “Debit Account”. “Product purchases” and credit account items are journaled as “cash”. In the third journal entry result data, the transaction data for “Summary” is “Social Insurance Premium”, “Partner” is “T Social Insurance Office”, and “Payment with Deposits” is “129204” on 4/2. “Account” is journalized as “statutory welfare expenses”, and credit account is “regular deposit”. In the fourth journal result data, 4/3, “Summary” is “Today's sales”, “Cash deposit” is “136650”, Transaction data is “Debit account” is “Cash”, and Credit account is “Sales” Journalized in In the fifth journal entry result data, the transaction data with “Description” set to “Purchase”, “Partner” set to “A Tofu Store”, and “Cash Withdrawal” set to “9713” is set to “Debit Account”. “Product purchases” and credit account items are journaled as “cash”. In the 6th journal entry result data, the transaction data with “Summary” is “Purchase”, “Partner” is “K liquor”, “Cash withdrawal” is “3675”, and “Debit account” is “Product” “Purchase” and credit account items are journaled as “cash”. In the 7th journal entry result data, the transaction data for “Summary” is “Whiteboard Marker”, “Partner” is “S Office Supplies Store”, and “Cash Withdrawal” is “850” on 4/3. "" Equipment and consumables expenses ", and the credit account item is" cash ". In the 8th journal entry result data, the transaction data of “Tendee” is “T gas” and “Checking account withdrawal” is “20405” is 4/3, “Debit account” is “Utilities”, Credit account Is journalized in "Checking account". In the 9th journal result data, the transaction data for “Corporate” is “C card company”, “Current account withdrawal” is “4200”, and “Debit account” is “Equipment and consumables”. The credit account item is journalized in “Checking account”. In the 10th journal entry result data, the transaction data with “Description” as “garbage disposal ticket”, “Destination” as “K supermarket”, and “Cash withdrawal” as “1080” “Miscellaneous expenses” and credit account items are journalized as “cash”.

11番目の仕訳結果データでは4/10に「摘要」が「電話代」、「相手先」が「N会社」、「当座預金出金」が「6074」の取引データが「借方勘定科目」は「通信交通費」、貸方勘定科目は「当座預金」に仕訳されている。12番目の仕訳結果データでは4/10に「摘要」が「電話代」、「相手先」が「TTネット」、「当座預金出金」が「1320」の取引データが「借方勘定科目」は「通信交通費」、貸方勘定科目は「当座預金」に仕訳されている。13番目の仕訳結果データでは4/14に「摘要」が「香典代」、「相手先」が「U様」、「現金出金」が「10000」の取引データが「借方勘定科目」は「交際費」、貸方勘定科目は「現金」に仕訳されている。14番目の仕訳結果データでは4/15に「摘要」が「社員旅行」、「現金出金」が「300000」、「対象社員比率(%)」が「5」の取引データが「借方勘定科目」は「事務員給与」、貸方勘定科目は「現金」に仕訳されている。15番目の仕訳結果データでは4/15に「摘要」が「情報提供料」、「相手先」が「M調査会社」、「当座預金出金」が「200000」の取引データが「借方勘定科目」は「販売手数料」、貸方勘定科目は「当座預金」に仕訳されている。16番目の仕訳結果データでは4/17に「摘要」が「仕入れ(3月分)」、「相手先」が「N商店」、「当座預金出金」が「478155」の取引データが「借方勘定科目」は「商品仕入高」、貸方勘定科目は「当座預金」に仕訳されている。17番目の仕訳結果データでは4/25に「摘要」が「電話代」、「相手先」が「K会社」、「当座預金出金」が「623」の取引データが「借方勘定科目」は「通信交通費」、貸方勘定科目は「当座預金」に仕訳されている。18番目の仕訳結果データでは4/26に「摘要」が「顧問料」、「相手先」が「Y会計事務所」、「当座預金出金」が「47500」の取引データが「借方勘定科目」は「管理諸費」、貸方勘定科目は「当座預金」に仕訳されている。19番目の仕訳結果データでは4/26に「摘要」が「家賃」、「相手先」が「Tビル」、「当座預金出金」が「300000」の取引データが「借方勘定科目」は「地代家賃」、貸方勘定科目は「当座預金」に仕訳されている。20番目の仕訳結果データでは4/27に「摘要」が「給与」、「相手先」が「A専務」、「現金出金」が「450000」の取引データが「借方勘定科目」は「役員報酬」、貸方勘定科目は「現金」に仕訳されている。   In the eleventh journal entry result data, the transaction data with “summary” is “telephone charges”, “partner” is “N company”, and “current account withdrawal” is “6074” is 4/10. "Communication transportation expenses" and credit account items are journalized as "Checking account". In the twelfth journal entry result data, the transaction data with “Description” set to “Telephone fee”, “Payee” set to “TT Net”, and “Current account withdrawal” set to “1320” "Communication transportation expenses" and credit account items are journalized as "Checking account". In the 13th journal entry result data, on 4/14, “summary” is “Kaoriyo”, “partner” is “U”, and “cash withdrawal” is “10000”. "Accounting expenses" and credit account items are journalized as "Cash". In the 14th journal result data, on 4/15, the transaction data with “Summary” is “Employee Travel”, “Cash Withdrawal” is “300000”, and “Target Employee Ratio (%)” is “5”. "" Is entered as "office worker salary" and the credit account item is entered as "cash". In the 15th journal result data, on 4/15, the transaction data for “Description” is “Information provision fee”, “Partner” is “M research company”, and “Current account withdrawal” is “200000”. "Is charged as" sales commission ", and the credit account is journalized as" current account ". In the 16th journal result data, on 4/17, the transaction data for “Description” is “Purchase (March)”, “Partner” is “N store”, and “Current account withdrawal” is “478155”. “Account” is journalized as “Product purchases”, and credit account is “Current account”. In the 17th journal result data, on 4/25, “Description” is “Telephone fee”, “Partner” is “K company”, “Current account withdrawal” is “623” and the transaction data is “Debit account” "Communication transportation expenses" and credit account items are journalized as "Checking account". In the 18th journal entry result data, the transaction data with “Description” as “Advisor Fee”, “Partner” as “Y Accounting Office”, and “Current Account Withdrawal” as “47500” is “Debit Account”. "" And "administrative expenses", and credit account items are journalized as "current account". In the 19th journal entry result data, the transaction data for “Rating” is “Rent”, “Tender” is “T-Bill”, and “Current Account Withdrawal” is “300000” is “Debit Account”. The “rent for rent” and credit account items are journalized as “current account”. In the 20th journal result data, on 4/27, “Summary” is “Salary”, “Partner” is “A Senior Managing Director”, and “Cash Withdrawal” is “450,000”. "Remuneration" and credit account items are journalized as "Cash".

21番目の仕訳結果データでは4/27に「摘要」が「給与」、「相手先」が「従業員2名」、「現金出金」が「779420」の取引データが「借方勘定科目」は「事務員給与」、貸方勘定科目は「現金」に仕訳されている。22番目の仕訳結果データでは5/22に「摘要」が「情報提供料」、「相手先」が「P氏」、「当座預金出金」が「150000」の取引データが「借方勘定科目」は「交際費」、貸方勘定科目は「当座預金」に仕訳されている。23番目の仕訳結果データでは5/25に「摘要」が「社員旅行」、「現金出金」が「2500000」、「対象社員比率(%)」が「95」の取引データが「借方勘定科目」は「福利厚生費」、貸方勘定科目は「現金」に仕訳されている。24番目の仕訳結果データでは6/1に「摘要」が「お茶代(社内)」、「現金出金」が「10000」、「対象社員比率(%)」が「100」の取引データが「借方勘定科目」は「福利厚生費」、貸方勘定科目は「現金」に仕訳されている。25番目の仕訳結果データでは6/7に「摘要」が「情報提供料」、「相手先」が「Q大学R教授」、「当座預金出金」が「160000」の取引データが「借方勘定科目」は「交際費」、貸方勘定科目は「当座預金」に仕訳されている。26番目の仕訳結果データでは8/29に「摘要」が「情報提供料」、「相手先」が「S氏」、「当座預金出金」が「120000」の取引データが「借方勘定科目」は「交際費」、貸方勘定科目は「当座預金」に仕訳されている。27番目の仕訳結果データでは10/15に「摘要」が「社員旅行」、「現金出金」が「240000」、「対象社員比率(%)」が「4」の取引データが「借方勘定科目」は「事務員給与」、貸方勘定科目は「現金」に仕訳されている。28番目の仕訳結果データでは10/15に「摘要」が「情報提供料」、「相手先」が「M調査会社」、「当座預金出金」が「150000」の取引データが「借方勘定科目」は「販売手数料」、貸方勘定科目は「当座預金」に仕訳されている。29番目の仕訳結果データでは12/1に「摘要」が「お茶代(社内)」、「現金出金」が「10000」、「対象社員比率(%)」が「100」の取引データが「借方勘定科目」は「福利厚生費」、貸方勘定科目は「現金」に仕訳されている。30番目の仕訳結果データでは12/25に「摘要」が「社員旅行」、「現金出金」が「1000000」、「対象社員比率(%)」が「90」の取引データが「借方勘定科目」は「福利厚生費」、貸方勘定科目は「現金」に仕訳されている。   In the 21st journal entry result data, the transaction data for “Summary” is “Salary”, “Partner” is “2 Employees”, and “Cash withdrawal” is “77420” on 4/27. “Clerical employee salary” and credit account are journalized as “cash”. In the 22nd journal result data, on May 22nd, “Summary” is “Information provision fee”, “Partner” is “Mr. P”, “Current account withdrawal” is “150,000” and the transaction data is “Debit account item”. Is accounted for as “accounting expense” and credit account as “current account”. In the 23rd journal result data, on May 25th, transaction data with “Description” is “Employee Travel”, “Cash Withdrawal” is “2500000”, and “Target Employee Ratio (%)” is “95”. Is credited with “welfare benefits” and credit account is “cash”. In the 24th journal result data, the transaction data with “summary” is “Tea fee (internal)”, “cash withdrawal” is “10000”, and “target employee ratio (%)” is “100” “Debit Account” is journalized as “Benefit Expenses” and Credit Account is “Cash”. In the 25th journal entry result data, the transaction data with “Summary” is “Information provision fee”, “Destination” is “Professor R at Q University”, “Current account withdrawal” is “160000” “Account” is accounted for as “accounting expense” and credit account item as “current account”. In the 26th journal entry result data, the transaction data with “Summary” is “Information provision fee”, “Partner” is “Mr. S”, “Current account withdrawal” is “120,000” will be “Debit account” on August 29th. Is accounted for as “accounting expense” and credit account as “current account”. In the 27th journal result data, the transaction data with “Description” is “Employee Travel”, “Cash Withdrawal” is “240000”, and “Target Employee Ratio (%)” is “4” on 10/15. "" Is entered as "office worker salary" and the credit account item is entered as "cash". In the 28th journal entry result data, the transaction data with “Description” is “Information provision fee”, “Partner” is “M research company”, and “Current account withdrawal” is “150,000” is 10/15. "Is charged as" sales commission ", and the credit account is journalized as" current account ". In the 29th journal entry result data, the transaction data with “summary” is “tea fee (in-house)”, “cash withdrawal” is “10000”, and “target employee ratio (%)” is “100” is 12/1. “Debit Account” is journalized as “Benefit Expenses” and Credit Account is “Cash”. In the 30th journal result data, on 12/25, “description” is “employee trip”, “cash withdrawal” is “1000000”, “target employee ratio (%)” is “90” transaction data is “debit account item” Is credited with “welfare benefits” and credit account is “cash”.

そして、図17は、共通ルール32及び企業特性ルール33を加味した後の決定表502の模式図である。本実施例では、共通ルール32を「仕訳結果から『日付』の属性は削除する」とし、企業特性ルールを「『相手先』が『M調査会社』の『摘要』が『情報提供料』の出金取引であれば、『情報提供契約』属性に「有り」をセットし、その他の『摘要』が『情報提供料』の出金取引には「無し」をセットする」とする。そこで、決定表502では、決定表501の条件属性「日付」が削除され、「情報提供契約」属性が追加されて、15,28番目の仕訳結果データは「摘要」が「情報提供料」、「相手先」が「M調査会社」であるので、「情報提供契約」属性に「有り」がセットされ、22,25,26番目の仕訳結果データは「摘要」が「情報提供料」であるが「相手先」が「M調査会社」でないので、「情報提供契約」属性に「無し」がセットされている。   FIG. 17 is a schematic diagram of the determination table 502 after the common rule 32 and the company characteristic rule 33 are taken into consideration. In this embodiment, the common rule 32 is “delete the attribute of“ date ”from the journal entry result”, and the company characteristic rule is “the“ partner ”is“ M survey company ”“ explanation ”is“ information provision fee ”. In the case of a withdrawal transaction, “present” is set in the “information provision contract” attribute, and “none” is set for withdrawal transactions in which the “summary” is “information provision fee”. Therefore, in the decision table 502, the condition attribute “date” of the decision table 501 is deleted, an “information provision contract” attribute is added, and the 15th and 28th journal result data is “summary” is “information provision fee”, Since “Destination” is “M Survey Company”, “present” is set in the “information provision contract” attribute, and “summary” is “information provision fee” in the 22nd, 25th and 26th journal result data. However, since “the other party” is not “M research company”, “none” is set in the “information provision contract” attribute.

次に、図13のフローチャートを参照して、会計仕訳ルール作成処理について説明する。まず、過去仕訳結果記憶エリア121に記憶されている過去仕訳結果31が読み出され(S51)、決定表501(図16参照)が作成され、RAM101に記憶される(S52)。そして、共通ルール32が共通ルール記憶エリア122から読み込まれ(S53)、その共通ルール32に基づいて決定表501が修正され(S54)、次いで企業特性ルール33が企業特性ルール記憶エリア123から読み込まれ(S55)、その企業特性ルール33に基づいて決定表501が修正される(S56)。S54及びS56の修正後の決定表が決定表502(図17参照)である。   Next, the accounting journal entry rule creation process will be described with reference to the flowchart of FIG. First, the past journal result 31 stored in the past journal result storage area 121 is read (S51), and a decision table 501 (see FIG. 16) is created and stored in the RAM 101 (S52). The common rule 32 is read from the common rule storage area 122 (S53), the decision table 501 is modified based on the common rule 32 (S54), and then the company characteristic rule 33 is read from the company characteristic rule storage area 123. (S55) The decision table 501 is modified based on the company characteristic rule 33 (S56). The determination table after correction in S54 and S56 is a determination table 502 (see FIG. 17).

そして、条件属性のすべての組合せを作成する(S57)。尚、ここで作成された組合せはRAM101に記憶される。図17に示した決定表502では、(摘要),(相手先),(現金入金),…,(情報提供契約),(摘要,相手先),(摘要,現金入金),…,(摘要,相手先,現金入金),…,(普通預金入金,普通預金出金,情報提供契約),…,(摘要,相手先,現金入金,現金出金,当座預金入金,当座預金出金),…,(摘要,相手先,現金入金,現金出金,当座預金入金,当座預金出金,普通預金入金,普通預金出金,対象社員比率(%),情報提供契約)というようなすべての条件属性の組合せが作成される。   Then, all combinations of condition attributes are created (S57). The combinations created here are stored in the RAM 101. In the decision table 502 shown in FIG. 17, (summary), (destination), (cash deposit), ..., (information provision contract), (summary, destination), (summary, cash deposit), ..., (summary) , Counterparty, cash deposit), ..., (savings deposit, savings deposit withdrawal, information provision contract), ..., (explanation, counterparty, cash deposit, cash withdrawal, current account deposit, current account withdrawal), All the conditions such as (summary, counterparty, cash deposit, cash withdrawal, current account deposit, current account deposit, savings deposit, ordinary deposit withdrawal, target employee ratio (%), information provision contract) A combination of attributes is created.

そして、1つ目の組合せが指定される(S58)。そして、まだすべての組合せの処理は終了していないので(S59:NO)、指定された組合せについて条件属性組合せ処理が行われる(S60、図14参照)。例えば、1番目には条件属性「摘要」のみの組合せが指定され、条件属性組合せ処理が行われて、述語論理式が作成され、RAM101の述語論理式情報記憶エリアに記憶される(S60)。そして、S58へ戻り、次の条件属性の組合せ(例えば「相手先」のみの組合せ)が指定され(S58)、すべての組合せ処理が終了していないので(S59:NO)、その組合せについての条件属性組み合わせ処理が行われ(S60)、S58へ戻る。このような処理が繰り返され、すべての組合せについて条件属性組合せ処理が終了し、述語論理式が作成され、記憶されたら(S59:YES)、S61へ進む。   Then, the first combination is designated (S58). Since all the combinations have not been processed yet (S59: NO), the condition attribute combination processing is performed for the designated combination (S60, see FIG. 14). For example, first, a combination of only the condition attribute “summary” is designated, a condition attribute combination process is performed, a predicate logical expression is created, and stored in the predicate logical expression information storage area of the RAM 101 (S60). Then, the process returns to S58, and the next combination of condition attributes (for example, the combination of “other party” only) is designated (S58), and all the combination processes have not been completed (S59: NO). An attribute combination process is performed (S60), and the process returns to S58. When such processing is repeated and the conditional attribute combination processing is completed for all combinations, and the predicate logical expression is created and stored (S59: YES), the process proceeds to S61.

ここで、条件属性組合せ処理について、図14のフローチャート、図18乃至図22を用いて、条件属性の組合せ(「摘要」のみ)からの述語論理式の作成を具体例に挙げながら説明する。   Here, the condition attribute combination process will be described with reference to the flowchart of FIG. 14 and FIGS. 18 to 22, with a specific example of creating a predicate logical expression from a combination of condition attributes (only “summary”).

まず、S59で指定された条件属性の組合せを構成する条件属性と決定属性のみの部分決定表201が作成され、記憶される(S71)。この部分決定表201は、決定表502の列を組合せを構成する条件属性と決定属性のみにしたものである(図18参照)。組合せ(摘要)では、図18に示すように、条件属性が「摘要」のみと、決定属性「借方勘定科目」、「貸方勘定科目」の3つの列からなる部分決定表201となる。   First, the partial decision table 201 including only the condition attribute and the decision attribute constituting the combination of the condition attribute designated in S59 is created and stored (S71). This partial determination table 201 is obtained by replacing the columns of the determination table 502 with only the condition attribute and the determination attribute constituting the combination (see FIG. 18). In the combination (summary), as shown in FIG. 18, the partial attribute table 201 is composed of three columns of only the condition attribute “summary” and the decision attributes “debit account item” and “credit account item”.

そして、部分決定表201から条件属性「摘要」に値のないデータ(列)が削除される(S72)。削除後の部分決定表が図19に示す部分決定表202である。図19に示す例では、部分決定表201の8列目の「借方勘定科目」が「水道光熱費」、「貸方勘定科目」が「当座預金」のデータと、9列目の「借方勘定科目」が「備品・消耗品費」、「貸方勘定科目」が「当座預金」のデータとが削除され、部分決定表202とされている。   Then, the data (column) having no value in the condition attribute “summary” is deleted from the partial determination table 201 (S72). The partial determination table 202 after deletion is a partial determination table 202 shown in FIG. In the example shown in FIG. 19, data of “debit account” in the eighth column of the partial determination table 201 is “utility expenses”, “credit account” is “current account”, and “debit account” in the ninth column. The data of “equipment / consumables expenses” and “credit account item” of “current account” are deleted, and a partial determination table 202 is obtained.

次いで、部分決定表202が決定属性の値でソートされ(S73)、第1クラスター及び第2クラスターが決定される(S74)。図20に示す部分決定表203は、部分決定表202をソートし決定属性の組合せの番号付けをした部分決定表である。尚、第1クラスターは、決定属性の値が同じデータの集合であり、部分決定表202の決定属性の値の組合せごとに作成される。そして、第1クラスターに対して、それ以外の決定属性の値を有するデータは第2クラスターに分類される。したがって、第2クラスターは、部分決定表202に属するデータにおいて、第1クラスターの補集合となる。   Next, the partial determination table 202 is sorted by the value of the determination attribute (S73), and the first cluster and the second cluster are determined (S74). The partial determination table 203 shown in FIG. 20 is a partial determination table obtained by sorting the partial determination table 202 and numbering combinations of determination attributes. The first cluster is a set of data having the same decision attribute value, and is created for each combination of decision attribute values in the partial decision table 202. And the data which has the value of a decision attribute other than that with respect to a 1st cluster are classified into a 2nd cluster. Therefore, the second cluster is a complement of the first cluster in the data belonging to the partial decision table 202.

図20に示す部分決定表203では、第1の第1クラスターは借方勘定科目が「現金」、貸方勘定科目が「売上高」であり、条件属性「摘要」が「本日売上」である2つのデータが属しており、第2の第1クラスターは借方勘定科目が「雑費」、貸方勘定科目が「現金」であり、条件属性「摘要」が「ごみ処理券」である1つのデータが属しており、第3の第1クラスターは借方勘定科目が「事務員給与」、貸方勘定科目が「現金」であり、条件属性「摘要」が「社員旅行」、「給与」である3つのデータが属している。そして、第4の第1クラスターは借方勘定科目が「商品仕入高」、貸方勘定科目が「現金」であり、条件属性「摘要」が「仕入れ」である3つのデータが属しており、第5の第1クラスターは借方勘定科目が「交際費」、貸方勘定科目が「現金」であり、条件属性「摘要」が「香典代」である1つのデータが属しており、第6の第1クラスターは借方勘定科目が「備品・消耗品費」、貸方勘定科目が「現金」であり、条件属性「摘要」が「ホワイトボードマーカー」である1つのデータが属している。   In the partial determination table 203 shown in FIG. 20, the first first cluster includes two items whose debit account item is “cash”, the credit account item is “sales”, and the condition attribute “summary” is “sales today”. The data belongs, and the second first cluster has one data whose debit account item is “Miscellaneous expenses”, the credit account item is “Cash”, and the condition attribute “Description” is “Waste disposal ticket”. In the third cluster, the debit account item is “Clerical employee salary”, the credit account item is “Cash”, and the condition attribute “Description” is “Employee travel” and “Salary”. ing. And the 4th 1st cluster has 3 items with debit account item “Product purchases”, credit account item “Cash” and condition attribute “Description” “Purchase”. The first cluster of 5 belongs to one data in which the debit account item is “accounting expense”, the credit account item is “cash”, and the condition attribute “summary” is “Kaoriyo”. The cluster includes one piece of data in which the debit account item is “equipment / consumables expense”, the credit account item is “cash”, and the condition attribute “explanation” is “whiteboard marker”.

そして、第7の第1クラスターは借方勘定科目が「福利厚生費」、貸方勘定科目が「現金」であり、条件属性「摘要」が「社員旅行」、「お茶代(社内)」である4つのデータが属しており、第8の第1クラスターは借方勘定科目が「役員報酬」、貸方勘定科目が「現金」であり、条件属性「摘要」が「給与」である1つのデータが属しており、第9の第1クラスターは借方勘定科目が「管理諸費」、貸方勘定科目が「当座預金」であり、条件属性「摘要」が「顧問料」である1つのデータが属している。そして、第10の第1クラスターは借方勘定科目が「交際費」、貸方勘定科目が「当座預金」であり、条件属性「摘要」が「情報提供料」である3つのデータが属しており、第11の第1クラスターは借方勘定科目が「商品仕入高」、貸方勘定科目が「当座預金」であり、条件属性「摘要」が「仕入れ(3月分)」である1つのデータが属しており、第12の第1クラスターは借方勘定科目が「地代家賃」、貸方勘定科目が「当座預金」であり、条件属性「摘要」が「家賃」である1つのデータが属している。そして、第13の第1クラスターは借方勘定科目が「通信交通費」、貸方勘定科目が「当座預金」であり、条件属性「摘要」が「電話代」である3つのデータが属しており、第14の第1クラスターは借方勘定科目が「販売手数料」、貸方勘定科目が「当座預金」であり、条件属性「摘要」が「情報提供料」である2つのデータが属しており、第15の第1クラスターは借方勘定科目が「法定福利費」、貸方勘定科目が「普通預金」であり、条件属性「摘要」が「社会保険料」である1つのデータが属している。   In the first cluster, the debit account item is “benefits expenses”, the credit account item is “cash”, and the condition attributes “summary” are “employee travel” and “tea fee (in-house)” 4 The 8th 1st cluster has one data whose debit account item is “Executive Remuneration”, the credit account item is “Cash”, and the condition attribute “Summary” is “Salary”. In the ninth first cluster, one item with the debit account item “management expenses”, the credit account item “current account”, and the condition attribute “explanation” “advisory fee” belongs. The tenth first cluster has three data with the debit account item “accounting expense”, the credit account item “current account”, and the condition attribute “description” “information provision fee”. The eleventh first cluster belongs to one data item whose debit account item is “Product purchases”, the credit account item is “Checking account”, and the condition attribute “Description” is “Purchase (March)” In the twelfth first cluster, one piece of data having the debit account item “rental rent”, the credit account item “current account”, and the condition attribute “explanation” “rent” belongs. The thirteenth first cluster includes three data items with the debit account item “communication transportation expenses”, the credit account item “current account”, and the condition attribute “summary” “phone bill”. The fourteenth first cluster includes two pieces of data in which the debit account item is “sales fee”, the credit account item is “current account”, and the condition attribute “explanation” is “information provision fee”. In the first cluster, one item of data in which the debit account item is “statutory welfare expense”, the credit account item is “ordinary deposit”, and the condition attribute “explanation” is “social insurance premium” belongs.

つまり、部分決定表203では15個の第1クラスターが生成されている。尚、S74では、この生成された第1〜第15の第1クラスターについての情報がRAM101のクラスター情報記憶エリア301に記憶される。図21に示すように、クラスター情報記憶エリア301には、決定条件の組合せごとに条件属性の「属性名」と「データ型」、第1クラスターに属するデータの「値」及び第1条件属性値集合に関するデータ、第2クラスターに属するデータの「値」及び第2条件属性値集合に関するデータが記憶される。   That is, in the partial determination table 203, 15 first clusters are generated. In S 74, the generated information about the first to fifteenth first clusters is stored in the cluster information storage area 301 of the RAM 101. As shown in FIG. 21, in the cluster information storage area 301, for each combination of determination conditions, “attribute name” and “data type” of the condition attribute, “value” of the data belonging to the first cluster, and the first condition attribute value Data relating to the set, “value” of data belonging to the second cluster, and data relating to the second condition attribute value set are stored.

尚、図21に示す例では、条件属性のデータ型が「文字列」であるために、第1クラスターと第2クラスターにおいてその「値」がセットされている。尚、この「第1クラスター」の「値」にセットされている条件属性値の集合は「第1条件属性値」と同一のものである。同様に、「第2クラスター」の「値」にセットされている条件属性値の集合は「第2条件属性値集合」となる。   In the example shown in FIG. 21, since the data type of the condition attribute is “character string”, the “value” is set in the first cluster and the second cluster. The set of condition attribute values set in the “value” of the “first cluster” is the same as the “first condition attribute value”. Similarly, a set of condition attribute values set in “value” of “second cluster” is “second condition attribute value set”.

図21に示す例では、第1の組合せ(「現金」,「売上高」)では、条件属性はデータ型が「文字列」の「摘要」であり、第1クラスターに属するデータの数は1つで、その条件属性値は「本日売上」、第2クラスターに属するデータの数は12個で、その条件属性値は「お茶代(社内)」,「給与」,「香典代」,「ごみ処理券」,「顧問料」,「仕入れ」,「社員旅行」,「社会保険料」,「情報提供料」,「電話代」,「ホワイトボードマーカー」,「家賃」である。また、第2の組合せ(「雑費」,「現金」)では、条件属性はデータ型が「文字列」の「摘要」であり、第1クラスターに属するデータの数は1つで、その条件属性値は「ごみ処理券」、第2クラスターに属するデータの数は12個で、その条件属性値は「お茶代(社内)」,「給与」,「香典代」,「顧問料」,「仕入れ」,「社員旅行」,「社会保険料」,「情報提供料」,「電話代」,「ホワイトボードマーカー」,「本日売上」,「家賃」である。また、第3〜第6の組合せは省略されており、第7の組合せ(「福利厚生費」,「現金」)では、条件属性はデータ型が「文字列」の「摘要」であり、第1クラスターに属するデータの数は2つで、その条件属性値は「社員旅行」,「お茶代(社内)」、第1クラスターに属するデータの数は12個で、その条件属性値は「給与」,「香典代」,「ごみ処理券」,「顧問料」,「仕入れ」,「社員旅行」,「社会保険料」,「情報提供料」,「電話代」,「ホワイトボードマーカー」,「本日売上」,「家賃」である。また、第8〜第14の組合せは省略されており、第15の組合せ(「法定福利費」,「普通預金」」)では、条件属性はデータ型が「文字列」の「摘要」であり、第1クラスターに属するデータの数は1つで、その条件属性値は「社会保険料」、第2クラスターに属するデータの数は12個で、その条件属性値は「お茶代(社内)」,「給与」,「香典代」,「ごみ処理券」,「顧問料」,「仕入れ」,「社員旅行」,「情報提供料」,「電話代」,「ホワイトボードマーカー」,「本日売上」,「家賃」である。   In the example shown in FIG. 21, in the first combination (“cash”, “sales”), the condition attribute is “summary” with the data type “character string”, and the number of data belonging to the first cluster is 1. Therefore, the condition attribute value is “Today's sales”, the number of data belonging to the second cluster is 12, and the condition attribute values are “Tea fee (in-house)”, “Salary”, “Kanen”, “Garbage” “Processing ticket”, “Advisor fee”, “Purchase”, “Employee travel”, “Social insurance fee”, “Information provision fee”, “Telephone fee”, “Whiteboard marker”, “Rent”. Further, in the second combination (“miscellaneous expenses”, “cash”), the condition attribute is “summary” with the data type “character string”, and the number of data belonging to the first cluster is one. The value is “garbage disposal ticket”, the number of data belonging to the second cluster is 12, and the condition attribute values are “tea fee (in-house)”, “salary”, “salary fee”, “advisory fee”, “purchase” ”,“ Employee Travel ”,“ Social Insurance Fee ”,“ Information Provision Fee ”,“ Telephone Fee ”,“ Whiteboard Marker ”,“ Sales Today ”, and“ Rent ”. In addition, the third to sixth combinations are omitted, and in the seventh combination (“benefit expenses”, “cash”), the condition attribute is “explanation” with the data type “character string”. The number of data belonging to one cluster is two, the condition attribute values are “employee trip”, “tea fee (in-house)”, the number of data belonging to the first cluster is 12, and the condition attribute value is “salary” ”,“ Kanori ”,“ Waste disposal ticket ”,“ Advisor fee ”,“ Purchasing ”,“ Employee travel ”,“ Social insurance fee ”,“ Information provision fee ”,“ Telephone fee ”,“ Whiteboard marker ”, “Today's sales” and “Rent”. In addition, the eighth to fourteenth combinations are omitted, and in the fifteenth combination (“statutory welfare expenses”, “ordinary deposit”), the condition attribute is “explanation” whose data type is “character string”. The number of data belonging to the first cluster is one, the condition attribute value is “social insurance premium”, the number of data belonging to the second cluster is 12, and the condition attribute value is “tea fee (in-house)” , “Salary”, “Kanoriyo”, “Waste disposal ticket”, “Advisor fee”, “Purchase”, “Employee travel”, “Information provision fee”, “Telephone fee”, “Whiteboard marker”, “Today's sales” "Rent".

また、条件属性のデータ型が「数」であった場合には、「第1クラスター」の「最大値」及び「最小値」と、データの「値」、「第2クラスター」の「最大値」及び「最小値」と、データの「値」が記憶される(図26参照)。ここでは、「第1条件属性値集合」は「第1クラスター」の「最小値」以上、「最大値」以下の数(データ型が整数であれば整数、実数であれば実数)の集まりであり、「第2条件属性値集合」は「第2クラスター」の「最小値」以上「最大値」以下の数(データ型が整数であれば整数、実数であれば実数)の集まりである。尚、条件属性のデータ型が「数」である場合については、条件属性「当座預金出金」を例に挙げて説明する際に詳述する。また、条件属性の組合せが複数の条件属性値から成る場合には、夫々の条件属性値に対して第1条件属性値集合及び第2条件属性値集合が決定される(図32参照)。これについても、条件属性「相手先」と「情報提供契約」との組合せを例に挙げて説明する際に詳述する。   When the data type of the condition attribute is “number”, “maximum value” and “minimum value” of “first cluster”, “value” of data, and “maximum value” of “second cluster” ”And“ minimum value ”and the“ value ”of the data are stored (see FIG. 26). Here, the “first condition attribute value set” is a collection of numbers (an integer if the data type is an integer, a real number if the data type is an integer) that is greater than or equal to the “minimum value” and less than the “maximum value” of the “first cluster”. In addition, the “second condition attribute value set” is a collection of numbers from the “minimum value” to the “maximum value” of the “second cluster” (an integer if the data type is an integer, and a real number if the data type is a real number). The case where the data type of the condition attribute is “number” will be described in detail when the condition attribute “current account withdrawal” is described as an example. If the combination of condition attributes is composed of a plurality of condition attribute values, a first condition attribute value set and a second condition attribute value set are determined for each condition attribute value (see FIG. 32). This will also be described in detail when a combination of the condition attributes “destination” and “information provision contract” is taken as an example.

以上のようにして、各決定属性の組合せについて第1クラスター、第2クラスター、第1条件属性値集合、第2条件属性値集合が生成され、それに関する情報がクラスター情報記憶エリア301に記憶されたら(S74)、夫々の決定属性の組合せごとに述語論理式が作成され、述語論理式情報記憶エリア302に記憶される(S77〜S80)。そこで、まず、第1の決定属性の組合せが指定される(S75)。第1の決定属性の組合せでは、まだすべての決定属性の組合せが終了していないので(S76:NO)、処理は終了せずに、上近似集合が作成され、述語論理式情報記憶エリア302に記憶される(S77)。この上近似集合についての情報は、RAM101の述語論理式情報記憶エリア302(図22参照)に記憶される。   As described above, the first cluster, the second cluster, the first condition attribute value set, and the second condition attribute value set are generated for each combination of determined attributes, and information related thereto is stored in the cluster information storage area 301. (S74) A predicate logical expression is created for each combination of decision attributes and stored in the predicate logical expression information storage area 302 (S77 to S80). Therefore, first, a combination of the first determination attributes is designated (S75). In the first combination of decision attributes, since all the combinations of decision attributes have not been finished yet (S76: NO), the upper approximation set is created without finishing the processing, and the predicate logical expression information storage area 302 has Stored (S77). Information about the approximate set is stored in the predicate logical expression information storage area 302 (see FIG. 22) of the RAM 101.

図22に示すように、述語論理式情報記憶エリア302は、クラスター情報記憶エリア301と同様に、決定属性の組合せごとに種々の情報が記憶される。「上近似集合」に「値」には、上近似集合を構成するデータの条件属性の「値」がセットされる。上近似集合は、第1クラスターに属するデータの「値」を要素とした集合(第1条件属性値集合)であるので、クラスター情報記憶エリア301の第1クラスターの「値」がセットされる。図22に示す例では、第1の決定属性の組合せ(現金,売上高)では、[本日売上]を要素とする集合が上近似集合とされている。   As shown in FIG. 22, in the predicate logical expression information storage area 302, various information is stored for each combination of decision attributes, similarly to the cluster information storage area 301. “Value” of the condition attribute of the data constituting the upper approximate set is set in “value” in “upper approximate set”. Since the upper approximate set is a set (first condition attribute value set) having “values” of data belonging to the first cluster as elements, the “value” of the first cluster in the cluster information storage area 301 is set. In the example shown in FIG. 22, in the first combination of decision attributes (cash, sales), a set having [Today's sales] as an element is an upper approximate set.

上近似集合が作成されたら(S77)、下近似集合作成処理が行われる(S78,図15参照)。下近似集合作成処理では、指定されている決定属性の組合せについて第1クラスターと第2クラスターとの関係に基づいて下近似集合が作成され、述語論理式情報記憶エリア302に記憶される。ここで、図15のフローチャートを参照して、下近似集合作成処理について説明する。   When the upper approximate set is created (S77), the lower approximate set creation process is performed (S78, see FIG. 15). In the lower approximation set creation process, a lower approximation set is created based on the relationship between the first cluster and the second cluster for the combination of the determined decision attributes, and stored in the predicate logical expression information storage area 302. Here, the lower approximation set creation process will be described with reference to the flowchart of FIG.

まず、指定されている決定属性の組合せについて第1条件属性値集合と第2条件属性値集合との関係が判断される(S101)。この関係は、クラスター情報記憶エリア301の第1クラスターの「値」(第1条件属性値集合)と第2クラスターの「値」(第2条件属性値集合)との関係により決定される。第1条件属性値集合と第2条件属性値集合とに重なりがなく、互いに独立であれば「第1関係」とされ、第1条件属性値集合と第2条件属性値集合とに重なりがあり、一方が他方に含まれることがなければ「第2関係」とされ、第1条件属性値集合と第2条件属性値集合とに重なりがあり、第2条件属性値集合が第1条件属性値集合に含まれる場合には「第3関係」とされ、第1条件属性値集合と第2条件属性値集合とに重なりがあり、第1条件属性値集合が第2条件属性値集合に含まれる場合には「第4関係」とされる。そして、述語論理式情報記憶エリア302の「関係」に第1関係であれば「1」、第2関係であれば「2」、第3関係であれば「3」、第4関係であれば「4」がセットされる。また、重なりがある場合には、述語論理式情報記憶エリア302の重なりの「値」にその要素がセットされる。   First, the relationship between the first condition attribute value set and the second condition attribute value set is determined for the specified combination of decision attributes (S101). This relationship is determined by the relationship between the “value” (first condition attribute value set) of the first cluster in the cluster information storage area 301 and the “value” (second condition attribute value set) of the second cluster. If there is no overlap between the first condition attribute value set and the second condition attribute value set and they are independent from each other, a “first relationship” is assumed, and there is an overlap between the first condition attribute value set and the second condition attribute value set. If one is not included in the other, a “second relationship” is established, the first condition attribute value set and the second condition attribute value set overlap, and the second condition attribute value set is the first condition attribute value. When included in the set, a “third relationship” is established, the first condition attribute value set and the second condition attribute value set overlap, and the first condition attribute value set is included in the second condition attribute value set. In this case, the “fourth relationship” is set. The “relation” in the predicate formula information storage area 302 is “1” for the first relationship, “2” for the second relationship, “3” for the third relationship, and “3” for the fourth relationship. “4” is set. If there is an overlap, the element is set in the overlap “value” in the predicate logical expression information storage area 302.

図21,図22に示す例では、指定されている決定属性の組合せが第1の決定属性の組合せ(現金,売上高)であれば、第1条件属性値集合の要素である[本日売上]は第2条件属性値集合の要素に存在しないので、重なりはなく述語論理式情報記憶エリア302の重なりの「値」には何もセットされず、「関係」には「1」がセットされる。また、指定されている決定属性の組合せが第7の決定属性の組合せ(福利厚生費,現金)であれば、[社員旅行]が第1条件属性値集合と第2条件属性値集合とにあるので、述語論理式情報記憶エリア302の重なりの「値」に[社員旅行]がセットされ、「関係」には「2」がセットされる。   In the example shown in FIG. 21 and FIG. 22, if the combination of designated decision attributes is the first decision attribute combination (cash, sales), it is an element of the first condition attribute value set [sales today] Does not exist in the elements of the second condition attribute value set, there is no overlap, nothing is set in the “value” of overlap in the predicate logical expression information storage area 302, and “1” is set in “relation” . Further, if the combination of designated decision attributes is the seventh decision attribute combination (benefit expenses, cash), [employee trip] is in the first condition attribute value set and the second condition attribute value set. Therefore, “employee travel” is set in the “value” of the overlap of the predicate logical formula information storage area 302, and “2” is set in “relation”.

指定されている決定属性の組合せについて第1条件属性値集合と第2条件属性値集合との関係が判断されたら(S101)、その関係にしたがって、下近似集合が作成されて、構成する条件属性の値が述語論理式情報記憶エリア302の「下近似集合」の「値」にセットされる(S102〜S127)。   When the relationship between the first condition attribute value set and the second condition attribute value set is determined for the specified combination of decision attributes (S101), a lower approximate set is created according to the relationship, and the condition attributes to be configured Is set to the “value” of the “lower approximation set” in the predicate logical expression information storage area 302 (S102 to S127).

関係が第1関係である場合には(S102:YES)、第1条件属性値集合をそのまま下近似集合とするので、クラスター情報記憶エリア301の第1クラスターの「値」が、述語論理式情報記憶エリア302の「下近似集合」の「値」にセットされる(S105)。図21,図22に示す例では、指定されている決定属性の組合せが第1の決定属性の組合せ(現金,売上高)であれば、[本日売上]を要素とする集合が下近似集合とされている。   When the relationship is the first relationship (S102: YES), the first condition attribute value set is directly used as the lower approximation set, so that the “value” of the first cluster in the cluster information storage area 301 is the predicate logical expression information. It is set to the “value” of the “lower approximation set” in the storage area 302 (S105). In the example shown in FIG. 21 and FIG. 22, if the combination of designated decision attributes is the first decision attribute combination (cash, sales), a set having [Today's sales] as an element is a lower approximation set. Has been.

また、関係が第2関係である場合には(S102:NO,S103:YES)、第1条件属性値集合から重なりを除いた集合が下近似集合とされるので、クラスター情報記憶エリア301の第1クラスターの「値」から述語論理式情報記憶エリア302の「重なり」の「値」を除いた要素がセットされる(S106)。図21,図22に示す例では、指定されている決定属性の組合せが第7の決定条件の組合せ(福利厚生費,現金)であれば、[社員旅行,お茶代(社内)]から[社員旅行]を除いた[お茶代(社内)]が「値」にセットされる。   Further, when the relationship is the second relationship (S102: NO, S103: YES), the set obtained by removing the overlap from the first condition attribute value set is set as the lower approximate set. Elements obtained by subtracting the “value” of “overlap” in the predicate logical expression information storage area 302 from the “value” of one cluster are set (S106). In the example shown in FIGS. 21 and 22, if the combination of designated decision attributes is the seventh decision condition combination (benefits expenses, cash), [Employee Travel, Tea Fee (In-house)] to [Employees] [Tea fee (in-house)] excluding [Travel] is set to “value”.

また、関係が第3関係である場合には(S102:NO,S103:NO,S104:YES)、条件属性の型が文字列型であるか数型であるかにより処理が異なる。そこで、まず条件属性の型が文字列型であるか否かの判断が行われる(S110)。そして、文字列型の場合には(S110:YES)、第1条件属性値集合から重なりを除いた集合が下近似集合とされるので、クラスター情報記憶エリア301の第1クラスターの「値」から述語論理式情報記憶エリア302の「重なり」の「値」を除いた要素がセットされる(S117)。尚、文字列型でない場合(S110:NO)についての処理は、条件属性の型が「数」である条件属性の例を説明する際に詳述する。   When the relationship is the third relationship (S102: NO, S103: NO, S104: YES), the processing differs depending on whether the condition attribute type is a character string type or a numeric type. Therefore, it is first determined whether or not the condition attribute type is a character string type (S110). In the case of the character string type (S110: YES), the set obtained by removing the overlap from the first condition attribute value set is set as the lower approximate set, and therefore, from the “value” of the first cluster in the cluster information storage area 301. Elements excluding “value” of “overlap” in the predicate logical expression information storage area 302 are set (S117). The processing for the case of not being a character string type (S110: NO) will be described in detail when an example of a condition attribute whose condition attribute type is “number” is described.

また、関係が第4関係である場合にも(S102:NO,S103:NO,S104:NO)、条件属性の型が文字列型であるか数型であるかにより処理が異なる。そこで、まず条件属性の型が文字列型であるか否かの判断が行われる(S120)。そして、文字列型の場合には(S120:YES)、述語論理式を作成しないので、下近似集合も作成しない(S127)。そこで、述語論理式情報記憶エリア302の「下近似集合」又は「述語論理式」に述語論理式を作成しないことを示す所定の値(例えば、「fail」)がセットされる(S127)。尚、文字列型でない場合(S120:NO)についての処理は、条件属性の型が「数」である条件属性の例を説明する際に詳述する。   Even when the relationship is the fourth relationship (S102: NO, S103: NO, S104: NO), the processing differs depending on whether the type of the condition attribute is a character string type or a numeric type. Therefore, it is first determined whether or not the condition attribute type is a character string type (S120). In the case of the character string type (S120: YES), no predicate logical expression is created, and therefore no lower approximation set is created (S127). Therefore, a predetermined value (for example, “fail”) indicating that a predicate logical expression is not created is set in the “lower approximate set” or “predicate logical expression” in the predicate logical expression information storage area 302 (S127). The processing for the case of not being a character string type (S120: NO) will be described in detail when an example of a condition attribute whose condition attribute type is “number” is described.

以上のようにして、下近似集合が作成されたら(S78)、有効性評価値が算出される(S79)。この有効性評価値は数6に示した式で算出される。ここでは、ρ=2、小数点第3位までを有効桁数とし、四捨五入する。図22に示す例の第1の決定属性の組合せ(現金、売上高)では、上近似集合に属する要素を持つ事象データ数は「2」、下近似集合に属する要素を持つ事象データ数は「2」、条件属性の組合せを構成する条件属性の数は「1」、全事象データ数は「30」であるので、近似精度は、上近似集合に属する要素を持つ事象データ数で下近似集合に属する要素を持つ事象データ数を除して、「2÷2=1」となる。そして、修正近似精度は、全条件属性数「1」の平方根が「1.000」となるので、近似精度「1」を割って、「1÷1.000=1.000」となる。そして、有効性評価値は、近似精度「1.000」に下近似集合に属する要を持つ事象データ数を全事象データ数で割ったものを掛けて、「2÷30×1.000=0.067」となる。   As described above, when the lower approximation set is created (S78), the effectiveness evaluation value is calculated (S79). This effectiveness evaluation value is calculated by the equation shown in Equation 6. Here, ρ = 2 and the third decimal place are regarded as effective digits and rounded off. In the first combination of decision attributes shown in FIG. 22 (cash, sales), the number of event data having elements belonging to the upper approximate set is “2”, and the number of event data having elements belonging to the lower approximate set is “ 2 ”, the number of condition attributes constituting the combination of condition attributes is“ 1 ”, and the total number of event data is“ 30 ”. Therefore, the approximation accuracy is the number of event data having elements belonging to the upper approximation set. By dividing the number of event data having elements belonging to “2 ÷ 2 = 1”. Then, since the square root of the total condition attribute number “1” is “1.000”, the corrected approximate accuracy is “1 ÷ 1.000 = 1.000” by dividing the approximation accuracy “1”. Then, the effectiveness evaluation value is obtained by multiplying the approximation accuracy “1.000” by the number of event data having key points belonging to the lower approximation set, divided by the total number of event data, and “2 ÷ 30 × 1.000 = 0. .067 ".

有効性評価値が算出され、述語論理式情報記憶エリア302に記憶されたら(S79)、述語論理式が作成され、RAM101の述語論理式情報記憶エリア302の述語論理式欄に記憶される(S80)。具体的には、述語論理式の左辺は「仕訳(借方勘定科目名,貸方勘定科目名)」とされ、決定属性の組合せが()内にセットされた文字列が記憶される。尚、「仕訳」は任意の文字列でよく、本実施例では取引データの仕訳を行うための述語論理式を作成しているために「仕訳」とした。そして、右辺には「条件属性1(A),member(A,[条件属性の値,条件属性の値,…]),条件属性2(B),member(B,[条件属性の値,条件属性の値,…]),…」とされる。「条件属性1、条件属性2、…」には、指定されている条件属性の組合せに従い条件属性名がセットされる。「A」,「B」は取引データを当該述語論理式に代入する際に利用される変数である。また、「member(A,[条件属性の値,条件属性の値,…])」の()内には、変数Aの他に、第1条件属性値集合に属する値のリストが列記される。   When the validity evaluation value is calculated and stored in the predicate logical expression information storage area 302 (S79), a predicate logical expression is created and stored in the predicate logical expression column of the predicate logical expression information storage area 302 of the RAM 101 (S80). ). Specifically, the left side of the predicate logical expression is “journal (debit account item name, credit account item name)”, and the character string in which the combination of the decision attributes is set in parentheses is stored. The “journal” may be an arbitrary character string, and in this embodiment, the “journal” is used because a predicate logical expression for journalizing transaction data is created. On the right side, “condition attribute 1 (A), member (A, [condition attribute value, condition attribute value,...]), Condition attribute 2 (B), member (B, [condition attribute value, condition Attribute value ...])) ... ". In “condition attribute 1, condition attribute 2,...”, A condition attribute name is set according to a combination of designated condition attributes. “A” and “B” are variables used when substituting transaction data into the predicate logical expression. In addition, in () of “member (A, [condition attribute value, condition attribute value,...])”, A list of values belonging to the first condition attribute value set is listed in addition to the variable A. .

尚、図22に示す例の第1の決定属性の組合せでは、決定属性は(現金,売上高)であり、条件属性は「摘要」のみ、第1条件属性値集合の要素は「本日売上」であるので、述語論理式は「仕訳(現金,売上高):−摘要(A),member(A,[本日売上]).」となる。尚、これは条件属性の値が文字列型である場合の述語論理式である。文字列型でない場合の述語論理式については、条件属性の型が「数」である条件属性の例を説明する際に詳述する。また、「下近似集合」又は「述語論理式」に述語論理式を作成しないことを示す所定の値がセットされている場合には述語論理式は作成されない。   In the example of the first determination attribute combination shown in FIG. 22, the determination attribute is (cash, sales), the condition attribute is “summary” only, and the element of the first condition attribute value set is “sales today”. Therefore, the predicate logical expression becomes “journal (cash, sales):-summary (A), member (A, [sales today]).”. This is a predicate logical expression when the value of the condition attribute is a character string type. The predicate logical expression in the case of not being a character string type will be described in detail when explaining an example of a condition attribute whose condition attribute type is “number”. Further, when a predetermined value indicating that a predicate logical expression is not created is set in the “lower approximation set” or “predicate logical expression”, the predicate logical expression is not created.

このようにして、指定された決定属性の組合せについて述語論理式が作成され、記憶されたら(S77〜S80)、S75へ戻り、次の決定属性の組合せが指定され(S75)、その決定属性の組合せについての述語論理式が作成され、記憶される(S77〜S80)。繰り返しS75〜S80の処理が行われ、すべての決定属性の組合せについて処理が行われたら(S76:YES)、条件属性組合せ処理は終了し、述語論理式作成処理(図13参照)へ戻る。そして、S58へ進み、次の条件属性の組合せについての処理が行われる。そして、すべての条件属性の組合せについて条件属性組合せ処理(S60)が終了して、すべての条件属性の組合せについて、それぞれすべての決定属性の組合せについて述語論理式が作成され、記憶されたら(S59:YES)、S61へ進む。   In this way, when the predicate logical expression is created and stored for the specified combination of decision attributes (S77 to S80), the process returns to S75, and the next combination of decision attributes is designated (S75). A predicate formula for the combination is created and stored (S77-S80). If the processes of S75 to S80 are repeatedly performed for all combinations of determined attributes (S76: YES), the condition attribute combination process is terminated and the process returns to the predicate logical expression creation process (see FIG. 13). Then, the process proceeds to S58, and processing for the next combination of condition attributes is performed. When the condition attribute combination processing (S60) is completed for all the condition attribute combinations, and predicate logical expressions are created and stored for all the combinations of the decision attributes for all the condition attribute combinations, respectively (S59: YES), the process proceeds to S61.

尚、図22に示す他の決定属性の組合せの例では、第2の決定属性の組合せ(雑費、売上高)は、条件属性は「摘要」のみ、第1条件属性値集合の要素は「ごみ処理券」であるので、上近似集合に属する要素を持つ事象データ数は「1」、下近似集合に属する要素を持つ事象データ数は「1」、条件属性の組合せを構成する条件属性の数は「1」、全事象データ数は「30」であるので、近似精度は、上近似集合に属する要素を持つ事象データ数で下近似集合に属する要素を持つ事象データ数を除して、「1÷1=1」となる。そして、修正近似精度は、全条件属性数「1」の平方根が「1.000」となるので、近似精度「1」を割って、「1÷1.000=1.000」となる。そして、有効性評価値は、近似精度「1.000」に下近似集合に属する要を持つ事象データ数を全事象データ数で割ったものを掛けて、「1÷30×1.000=0.033」となる。そして、述語論理式は「仕訳(現金,売上高):−摘要(A),member(A,[ごみ処理券]).」となる。   In the example of other combinations of decision attributes shown in FIG. 22, the second decision attribute combination (miscellaneous expenses, sales) has only the “requirement” condition attribute, and the element of the first condition attribute value set is “garbage”. The number of event data having elements belonging to the upper approximation set is “1”, the number of event data having elements belonging to the lower approximation set is “1”, and the number of condition attributes constituting the combination of condition attributes Is “1” and the total number of event data is “30”. Therefore, the approximation accuracy is obtained by dividing the number of event data having elements belonging to the lower approximation set by the number of event data having elements belonging to the upper approximation set. 1 ÷ 1 = 1 ”. Then, since the square root of the total condition attribute number “1” is “1.000”, the corrected approximate accuracy is “1 ÷ 1.000 = 1.000” by dividing the approximation accuracy “1”. Then, the effectiveness evaluation value is obtained by multiplying the approximate accuracy “1.000” by the number of event data having the key belonging to the lower approximate set divided by the total number of event data to obtain “1 ÷ 30 × 1.000 = 0. .033 ". The predicate logical expression becomes “journal (cash, sales):-summary (A), member (A, [garbage disposal ticket]).”.

また、第7の決定属性の組合せ(福利厚生費,現金)は、条件属性は「摘要」のみ、第1条件属性値集合の要素は「社員旅行、お茶代(社内)」であるので、上近似集合に属する要素を持つ事象データ数は「6」、下近似集合に属する要素を持つ事象データ数は「2」、条件属性の組合せを構成する条件属性の数は「1」、全事象データ数は「30」であるので、近似精度は、上近似集合に属する要素を持つ事象データ数で下近似集合に属する要素を持つ事象データ数を除して、「2÷6=0.333」となる。そして、修正近似精度は、全条件属性数「1」の平方根が「1.000」となるので、近似精度「0.333」を割って、「0.333÷1.000=0.333」となる。そして、有効性評価値は、近似精度「0.333」に下近似集合に属する要を持つ事象データ数を全事象データ数で割ったものを掛けて、「2÷30×0.333=0.022」となる。そして、述語論理式は「仕訳(福利厚生費,現金):−摘要(A),member(A,[お茶代(社内)]).」となる。   In the seventh combination of decision attributes (benefit expenses, cash), the condition attribute is “Summary” only, and the element of the first condition attribute value set is “employee trip, tea fee (in-house)”. The number of event data having elements belonging to the approximate set is “6”, the number of event data having elements belonging to the lower approximate set is “2”, the number of condition attributes constituting the combination of condition attributes is “1”, and all event data Since the number is “30”, the approximation accuracy is “2 ÷ 6 = 0.333” by dividing the number of event data having elements belonging to the lower approximation set by the number of event data having elements belonging to the upper approximation set. It becomes. Then, since the square root of the number of all condition attributes “1” is “1.000”, the corrected approximate accuracy is “0.333 ÷ 1.000 = 0.333” by dividing the approximate accuracy “0.333”. It becomes. Then, the effectiveness evaluation value is obtained by multiplying the approximate accuracy “0.333” by the number of event data having the key belonging to the lower approximate set divided by the total number of event data, and “2 ÷ 30 × 0.333 = 0. .022 ". The predicate logical expression becomes “Journal (benefit expenses, cash):-Summary (A), member (A, [tea fee (in-house)])”.

また、第15の決定属性の組合せ(法定福利費,普通預金)は、条件属性は「摘要」のみ、第1条件属性値集合の要素は「社会保険料」であるので、上近似集合に属する要素を持つ事象データ数は「1」、下近似集合に属する要素を持つ事象データ数は「1」、条件属性の組合せを構成する条件属性の数は「1」、全事象データ数は「30」であるので、近似精度は、上近似集合に属する要素を持つ事象データ数で下近似集合に属する要素を持つ事象データ数を除して、「1÷1=1」となる。そして、修正近似精度は、全条件属性数「1」の平方根が「1.000」となるので、近似精度「1」を割って、「1÷1.000=1.000」となる。そして、有効性評価値は、近似精度「1.000」に下近似集合に属する要を持つ事象データ数を全事象データ数で割ったものを掛けて、「1÷30×1.000=0.033」となる。そして、述語論理式は「仕訳(法定福利費,普通預金):−摘要(A),member(A,[社会保険料]).」となる。   In addition, since the combination of the fifteenth decision attributes (statutory welfare expenses, savings deposit) is only “summary” as the condition attribute and “social insurance premium” as the element of the first condition attribute value set, it belongs to the upper approximate set. The number of event data having elements is “1”, the number of event data having elements belonging to the lower approximation set is “1”, the number of condition attributes constituting the combination of condition attributes is “1”, and the total number of event data is “30”. Therefore, the approximation accuracy is “1 ÷ 1 = 1” by dividing the number of event data having elements belonging to the upper approximation set by the number of event data having elements belonging to the lower approximation set. Then, since the square root of the total condition attribute number “1” is “1.000”, the corrected approximate accuracy is “1 ÷ 1.000 = 1.000” by dividing the approximation accuracy “1”. Then, the effectiveness evaluation value is obtained by multiplying the approximate accuracy “1.000” by the number of event data having the key belonging to the lower approximate set divided by the total number of event data to obtain “1 ÷ 30 × 1.000 = 0. .033 ". The predicate logical expression becomes “Journal (legal welfare expenses, ordinary deposit):-Summary (A), member (A, [social insurance premium]).”.

そして、図13の会計仕訳ルール作成処理のS61〜S64では、RAM101の述語論理式情報記憶エリア302に記憶されている述語論理式が順次読み込まれ(S61)、すべての述語論理式についての処理が終了していなければ(S62:NO)、その述語論理式の有効性評価値が所定の基準値(例えば、0.01)以上であるか否かの判断が行われる(S63)。所定の基準値以上である場合には(S63:YES)、その述語論理式は有効性が高いので、ハードディスク装置120の述語論理式記憶エリア124に有効性評価値と共に記憶される(S64)。そして、S61へ戻り、次の述語論理式が読み込まれる(S61)。また、有効性評価値が所定の基準値以下である場合には(S63:NO)、その述語論理式は有効性が低いので採用しないため、述語論理式記憶エリア124へは記憶せずにS61へ戻り、次の述語論理式が読み込まれる(S61)。S61〜S64の処理が繰り返されることによりすべての述語論理式について、有効性の評価が終了したら(S62:YES)、述語論理式記憶エリア124に記憶されている述語論理式を有効性評価値の降順にソートされる(S65)。そして、会計仕訳ルール作成処理は終了する。   Then, in S61 to S64 of the accounting journal entry rule creation processing of FIG. 13, the predicate logical expressions stored in the predicate logical expression information storage area 302 of the RAM 101 are sequentially read (S61), and the processing for all the predicate logical expressions is performed. If not completed (S62: NO), it is determined whether or not the validity evaluation value of the predicate logical expression is equal to or greater than a predetermined reference value (for example, 0.01) (S63). If it is equal to or greater than the predetermined reference value (S63: YES), the predicate logical expression is highly effective and is stored in the predicate logical expression storage area 124 of the hard disk device 120 together with the validity evaluation value (S64). Then, returning to S61, the next predicate logical expression is read (S61). If the validity evaluation value is less than or equal to the predetermined reference value (S63: NO), the predicate logical expression is not adopted because it has low validity, and is not stored in the predicate logical expression storage area 124. Then, the next predicate logical expression is read (S61). When the evaluation of the validity is completed for all the predicate logical expressions by repeating the processes of S61 to S64 (S62: YES), the predicate logical expressions stored in the predicate logical expression storage area 124 are converted into the validity evaluation values. Sort in descending order (S65). Then, the accounting journal entry rule creation process ends.

このようにして、作成された述語論理式はその有効性評価値の高い順に述語論理式記憶エリア124に記憶される。   Thus, the created predicate logical expressions are stored in the predicate logical expression storage area 124 in descending order of their effectiveness evaluation values.

次に、条件属性の値が「数型」である場合の例として、述語論理式作成処理のS59で指定された条件属性の組合せが「当座預金出金」のみである場合についての条件属性組合せ処理(図14参照)の説明を、図23乃至図27を用いて行う。   Next, as an example when the value of the condition attribute is “numerical type”, the condition attribute combination in the case where the combination of the condition attributes specified in S59 of the predicate formula creation process is “current account withdrawal” only. The processing (see FIG. 14) will be described with reference to FIGS.

図23は、条件属性「当座預金出金」についての部分決定表211の模式図であり、図24は、条件属性「当座預金出金」についての部分決定表212の模式図であり、図25は、条件属性「当座預金出金」についての部分決定表213の模式図であり、図26は、条件属性「当座預金出金」についての第1クラスター及び第2クラスターの情報を記憶するRAM101のクラスター情報記憶エリア311の模式図であり、図27は、条件属性「当座預金出金」についての集合の情報や述語論理式を記憶するRAM101の述語論理式情報記憶エリア312の模式図である。   FIG. 23 is a schematic diagram of the partial determination table 211 for the condition attribute “current account withdrawal”, and FIG. 24 is a schematic diagram of the partial determination table 212 for the condition attribute “current account withdrawal”. FIG. 26 is a schematic diagram of the partial determination table 213 for the condition attribute “current account withdrawal”, and FIG. 26 is a diagram of the RAM 101 that stores information on the first cluster and the second cluster for the condition attribute “current account withdrawal”. FIG. 27 is a schematic diagram of the cluster information storage area 311. FIG. 27 is a schematic diagram of the predicate logical formula information storage area 312 of the RAM 101 that stores set information and predicate logical formulas for the condition attribute “current account withdrawal”.

まず、条件属性が「当座預金出金」のみの部分決定表211(図23参照)が作成される(S71)。そして、図24に示すように、部分決定表211から条件属性「摘要」に値のないデータ(列)が削除される(S72)。図24に示す例では、部分決定表201の1〜7列目、10列目、13,14列目、20,21列目、23,24列目、27列目、29,30列目のデータが削除され、部分決定表212とされている。   First, the partial determination table 211 (see FIG. 23) having only the condition attribute “current account withdrawal” is created (S71). Then, as shown in FIG. 24, the data (column) having no value for the condition attribute “summary” is deleted from the partial determination table 211 (S72). In the example shown in FIG. 24, the first to seventh columns, the tenth column, the thirteenth column, the fourteenth column, the twenty-first column, the twenty-third column, the twenty-third column, the twenty-seventh column, the 29th column, and the thirty column of the partial determination table 201. The data is deleted and the partial determination table 212 is obtained.

次いで、部分決定表212が決定属性の値でソートされ(S73)、第1クラスター及び第2クラスターが決定される(S74)。図25に示す部分決定表213は、部分決定表212をソートし、決定属性の組合せの番号付けをした部分決定表である。   Next, the partial determination table 212 is sorted by the value of the determination attribute (S73), and the first cluster and the second cluster are determined (S74). The partial determination table 213 shown in FIG. 25 is a partial determination table in which the partial determination table 212 is sorted and the combination of determination attributes is numbered.

図25に示す部分決定表213では、第1の第1クラスターは借方勘定科目が「管理諸費」、貸方勘定科目が「当座預金」であり、条件属性「当座預金出金」の金額が「47500」である1つのデータが属しており、第2の第1クラスターは借方勘定科目が「交際費」、貸方勘定科目が「当座預金」であり、条件属性「当座預金出金」の金額が「120000」,「150000」,「160000」である3つのデータが属しており、第3の第1クラスターは借方勘定科目が「商品仕入高」、貸方勘定科目が「当座預金」であり、条件属性「当座預金出金」の金額が「478155」である1つのデータが属しており、第4の第1クラスターは借方勘定科目が「水道光熱費」、貸方勘定科目が「当座預金」であり、条件属性「当座預金出金」の金額が「20405」である1つのデータが属している。そして、第5の第1クラスターは借方勘定科目が「地代家賃」、貸方勘定科目が「当座預金」であり、条件属性「当座預金出金」の金額が「300000」である1つのデータが属しており、第6の第1クラスターは借方勘定科目が「通信交通費」、貸方勘定科目が「当座預金」であり、条件属性「当座預金出金」の金額が「623」,「1320」,「6074」である3つのデータが属しており、第7の第1クラスターは借方勘定科目が「販売手数料」、貸方勘定科目が「当座預金」であり、条件属性「当座預金出金」の金額が「150000」,「200000」である2つのデータが属しており、第8の第1クラスターは借方勘定科目が「備品・消耗品費」、貸方勘定科目が「当座預金」であり、条件属性「当座預金出金」の金額が「4200」である1つのデータが属している。   In the partial determination table 213 shown in FIG. 25, in the first first cluster, the debit account item is “administrative expenses”, the credit account item is “current account”, and the amount of the condition attribute “current account withdrawal” is “47500”. ”Belongs to the second cluster, the debit account item is“ accounting expense ”, the credit account item is“ current account ”, and the amount of the condition attribute“ current account withdrawal ”is“ Three data of “120,000”, “150,000”, and “160000” belong, and the third first cluster has a debit account item of “product purchase” and a credit account item of “current account”. A single attribute with the attribute “Checking withdrawn” is “478155”, and the fourth first cluster has a debit account of “Utilities” and a credit account of “Checking”. , Condition attribute “Checking The amount of "one of the data is" 20405 "belongs. The fifth first cluster has one data whose debit account item is “rental rent”, credit account item is “current account”, and the condition attribute “current account withdrawal” is “300000”. In the sixth cluster, the debit account item is “communication transportation expenses”, the credit account item is “current account”, and the condition attribute “current account withdrawal” is “623”, “1320”, Three pieces of data “6074” belong to the seventh cluster. The debit account item is “sales fee”, the credit account item is “current account”, and the amount of the condition attribute “current account withdrawal” 2 data of which “150,000” and “200000” belong, the eighth cluster has the debit account item “equipment / consumables expenses”, the credit account item “current account”, and the condition attribute The amount of “withdrawal account withdrawal” is One of the data is part of a 4200 ".

また、S74では、この生成された第1〜第8の第1クラスターについての情報がRAM101のクラスター情報記憶エリア311に記憶される(図26参照)。図26に示す例では、条件属性のデータ型が「数」であるために、第1クラスターと第2クラスターにおいてその「最大値」及び「最小値」と「値」がセットされている。第1クラスターの「値」には、第1クラスターを構成するデータの条件属性(この場合には「当座預金出金」)の値がセットされ、第2クラスターの「値」には、第クラスターを構成するデータの条件属性(「当座預金出金」)の値がセットされる。ここで、第1クラスターの「最小値」以上「最大値」以下の範囲に含まれる数(データ型が整数であれば整数、実数であれば実数)の集合が「第1条件属性値集合」に相当し、第2クラスターの「最小値」以上「最大値」以下の範囲に含まれる数(データ型が整数であれば整数、実数であれば実数)の集合が「第2条件属性値集合」に相当する。   In S74, the generated information about the first to eighth first clusters is stored in the cluster information storage area 311 of the RAM 101 (see FIG. 26). In the example shown in FIG. 26, since the data type of the condition attribute is “number”, the “maximum value”, “minimum value”, and “value” are set in the first cluster and the second cluster. In the “value” of the first cluster, the value of the condition attribute of the data constituting the first cluster (in this case “current account withdrawal”) is set, and in the “value” of the second cluster, the value of the first cluster is set. Is set to the value of the condition attribute (“current account withdrawal”) of the data that constitutes. Here, a set of numbers included in the range from the “minimum value” to the “maximum value” of the first cluster (an integer if the data type is an integer, a real number if the data type is a real number) is a “first condition attribute value set”. The set of numbers included in the range from the “minimum value” to the “maximum value” of the second cluster (integer if the data type is integer, real number if the data type is real) is “second condition attribute value set” Is equivalent to.

図26に示す例では、第3の組合せ(「商品仕入高」,「当座預金」)は、条件属性はデータ型が「整数」の「当座預金出金」であり、第1条件属性値集合(要素をXとする)の範囲はX=478155で、第1クラスターにおける条件属性値(当座預金出金の金額)は[478155]、第2条件属性値集合の範囲(要素をYとする)は623≦Y≦300000で、第2クラスターにおける条件属性値(当座預金出金の金額)は[623,1320,4200,6074,20405,47500,120000,150000,150000,160000,200000,300000]とされている。   In the example shown in FIG. 26, in the third combination (“product purchase amount”, “current account”), the condition attribute is “current account withdrawal” whose data type is “integer”, and the first condition attribute value The range of the set (element is X) is X = 478155, the condition attribute value in the first cluster (current account withdrawal amount) is [478155], and the range of the second condition attribute value set (element is Y) ) Is 623 ≦ Y ≦ 300,000, and the condition attribute value (the amount of current account withdrawal) in the second cluster is [623, 1320, 4200, 6074, 20405, 47500, 120,000, 150000, 150000, 160000, 200000, 300,000] It is said that.

また、第6の組合せ(「通信交通費」,「当座預金」)は、条件属性はデータ型が「整数」の「当座預金出金」であり、第1条件属性値集合の範囲は623≦X≦6074で、第1クラスターにおける条件属性値(当座預金出金の金額)は[623,1320,6074]、第2条件属性値集合の範囲は4200≦Y≦478155で、第2クラスターにおける条件属性値(当座預金出金の金額)は[4200,20405,47500,120000,150000,150000,160000,200000,300000,478155]とされている。そして、第7の組合せ(「販売手数料」,「当座預金」)では、条件属性はデータ型が「整数」の「当座預金出金」であり、第1条件属性値集合の範囲は150000≦X≦200000で、第1クラスターにおける条件属性値(当座預金出金の金額)は[150000,200000]、第2条件属性値集合の範囲は623≦Y≦478155で、第2クラスターにおける条件属性値(当座預金出金の金額)は[623,1320,4200,6074,20405,47500,120000,150000,160000,300000,478155]とされている。尚、第1の組み合わせ、第2の組合せ、第4の組合せ、第5の組合せ、第8の組合せについては省略されている。   In the sixth combination (“communication transportation cost”, “current account”), the condition attribute is “current account withdrawal” whose data type is “integer”, and the range of the first condition attribute value set is 623 ≦ When X ≦ 6074, the condition attribute value (current account withdrawal amount) in the first cluster is [623, 1320, 6074], the range of the second condition attribute value set is 4200 ≦ Y ≦ 478155, and the condition in the second cluster The attribute value (amount of current account withdrawal) is [4200,20405,47500,120,000,150,000,150,000,160000,200000,300,000,478155]. In the seventh combination (“sales commission”, “current account”), the condition attribute is “current account withdrawal” with the data type “integer”, and the range of the first condition attribute value set is 150,000 ≦ X ≦ 200000, the condition attribute value in the first cluster (current account withdrawal amount) is [150,000,200000], the range of the second condition attribute value set is 623 ≦ Y ≦ 478155, and the condition attribute value in the second cluster ( The amount of the current account withdrawal) is [623, 1320, 4200, 6074, 20405, 47500, 120,000, 150000, 160000, 300000, 478155]. The first combination, the second combination, the fourth combination, the fifth combination, and the eighth combination are omitted.

以上のようにして、各決定属性の組合せについて第1クラスター及び第2クラスターが生成され、それに関する情報がクラスター情報記憶エリア311に記憶されたら(S74)、夫々の決定属性の組合せごとに述語論理式が作成され、述語論理式情報記憶エリア312の述語論理式欄に記憶される(S77〜S80)。まず、第1の決定属性の組合せが指定される(S75)。第1の決定属性の組合せでは、まだすべての決定属性の組合せが終了していないので(S76:NO)、上近似集合が作成される(S77)。この上近似集合についての情報は、RAM101の述語論理式情報記憶エリア312(図27参照)に記憶される。   As described above, when the first cluster and the second cluster are generated for each combination of decision attributes, and information about the first cluster and the second cluster are stored in the cluster information storage area 311 (S74), the predicate logic is set for each decision attribute combination. An expression is created and stored in the predicate logical expression column of the predicate logical expression information storage area 312 (S77 to S80). First, the first combination of decision attributes is designated (S75). In the first combination of decision attributes, since all combinations of decision attributes have not yet been completed (S76: NO), an upper approximate set is created (S77). Information about the approximate set is stored in the predicate logical expression information storage area 312 (see FIG. 27) of the RAM 101.

図27に示すように、述語論理式情報記憶エリア312は、クラスター情報記憶エリア311と同様に、決定属性の組合せごとに種々の情報が記憶される。上近似集合は、第1クラスターの「最小値」以上「最大値」以下の範囲に含まれる数(データ型が整数であれば整数、実数であれば実数)の集合(第1条件属性値集合)であるので、クラスター情報記憶エリア311の第1クラスターの「最大値」及び「最小値」がセットされる。   As shown in FIG. 27, in the predicate logical expression information storage area 312, various information is stored for each combination of decision attributes, as in the cluster information storage area 311. The upper approximate set is a set of numbers (the first condition attribute value set that is an integer if the data type is an integer and a real number if the data type is a real number) included in the range from the “minimum value” to the “maximum value” of the first cluster. Therefore, the “maximum value” and “minimum value” of the first cluster in the cluster information storage area 311 are set.

図26,図27に示す例では、指定されている決定属性の組合せが第3の組合せ(「商品仕入高」,「当座預金」)である場合は、X=478155の範囲の集合が上近似集合とされる。また、S75〜S80の処理が繰り返され、第6の組合せ(「通信交通費」,「当座預金」)が指定されていた場合には、623≦X≦6074の範囲の集合が上近似集合とされ、第7の組合せ(「販売手数料」,「当座預金」)が指定されていた場合は、150000≦X≦200000の範囲の集合が上近似集合とされる。尚、図27において、第1の組み合わせ、第2の組合せ、第4の組合せ、第5の組合せ、第8の組合せについては省略されている。   In the example shown in FIG. 26 and FIG. 27, when the combination of the specified decision attributes is the third combination (“product purchase amount”, “current account”), the set in the range of X = 478155 is the top. It is an approximate set. Further, when the processes of S75 to S80 are repeated and the sixth combination (“communication transportation cost”, “current account”) is designated, the set in the range of 623 ≦ X ≦ 6074 is the upper approximate set. When the seventh combination (“sales fee”, “current account”) is designated, the set in the range of 150,000 ≦ X ≦ 200000 is set as the upper approximate set. In FIG. 27, the first combination, the second combination, the fourth combination, the fifth combination, and the eighth combination are omitted.

上近似集合が作成され、述語論理式情報記憶エリア312に記憶されたら(S77)、下近似集合作成処理が行われる(S78,図15参照)。まず、指定されている決定属性の組合せについて第1条件属性値集合と第2条件属性値集合との関係が判断される(S101)。   When the upper approximate set is created and stored in the predicate logical expression information storage area 312 (S77), the lower approximate set creation process is performed (S78, see FIG. 15). First, the relationship between the first condition attribute value set and the second condition attribute value set is determined for the specified combination of decision attributes (S101).

図26,図27に示す例では、第3の組合せ(「商品仕入高」,「当座預金」)では、第1条件属性値集合の範囲は「X=478155」であり、第2条件属性値集合の範囲は「623≦Y≦300000」であるので、その重なりは存在しない。よって、第1関係と判断され「関係」に「1」がセットされ、「重なり」には何もセットされない。また、第6の組合せ(「通信交通費」,「当座預金」)では、第1条件属性値集合の範囲は「623≦X≦6074」であり、第2条件属性値集合の範囲は「4200≦Y≦478155」であるので、その重なりは「4200≦Z≦6074」となり、第2関係と判断される。よって、「関係」に「2」がセットされ、「重なり」の「最小値」に「4200」、「最大値」に「6074」がセットされる。また、第7の組合せ(「販売手数料」,「当座預金」)では、第1条件属性値集合の範囲は「150000≦X≦200000」であり、第2条件属性値集合の範囲は「623≦Y≦478155」であるので、第1条件属性値集合が第2条件属性値集合に含まれるので、第4関係と判断される。よって、「関係」に「4」がセットされ、「重なり」の「最小値」に「150000」、「最大値」に「200000」がセットされる。   In the example shown in FIGS. 26 and 27, in the third combination (“product purchase amount”, “current account”), the range of the first condition attribute value set is “X = 478155”, and the second condition attribute Since the range of the value set is “623 ≦ Y ≦ 300000”, there is no overlap. Therefore, it is determined as the first relationship, “1” is set in “Relation”, and nothing is set in “Overlap”. In the sixth combination (“communication transportation cost”, “current account”), the range of the first condition attribute value set is “623 ≦ X ≦ 6074”, and the range of the second condition attribute value set is “4200”. Since ≦ Y ≦ 478155 ”, the overlap is“ 4200 ≦ Z ≦ 6074 ”, which is determined as the second relationship. Therefore, “2” is set in “Relation”, “4200” is set in “Minimum Value” of “Overlap”, and “6074” is set in “Maximum Value”. In the seventh combination (“sales commission”, “current account”), the range of the first condition attribute value set is “150,000 ≦ X ≦ 200000”, and the range of the second condition attribute value set is “623 ≦ Since Y ≦ 478155 ”, since the first condition attribute value set is included in the second condition attribute value set, it is determined as the fourth relationship. Therefore, “4” is set in “Relation”, “150,000” is set in “Minimum value” of “Overlap”, and “200000” is set in “Maximum value”.

指定されている決定属性の組合せについて第1条件属性値集合と第2条件属性値集合との関係が判断されたら(S101)、その関係にしたがって、下近似集合が作成されて、構成する条件属性の値が述語論理式情報記憶エリア302の「下近似集合」の「最大値」及び「最小値」がセットされる(S102〜S127)。   When the relationship between the first condition attribute value set and the second condition attribute value set is determined for the specified combination of decision attributes (S101), a lower approximate set is created according to the relationship, and the condition attributes to be configured Are set to the “maximum value” and “minimum value” of the “lower approximation set” in the predicate formula information storage area 302 (S102 to S127).

関係が第1関係である場合には(S102:YES)、第1条件属性値集合をそのまま下近似集合とするので、クラスター情報記憶エリア311の第1クラスターの「最大値」及び「最小値」が、述語論理式情報記憶エリア312の「下近似集合」の「最大値」及び「最小値」にセットされる(S105)。第3の組合せ(「商品仕入高」,「当座預金」)を例に挙げると、「最大値」は「478155」、最小値は「478155」となる。尚、ここで、「478155」を条件属性値としているデータは第1クラスターに属するデータであるので「<」でなく「≦」とされ、下近似集合の範囲は「478155≦X≦478155」となる。   When the relationship is the first relationship (S102: YES), the first condition attribute value set is directly used as the lower approximation set, and therefore the “maximum value” and “minimum value” of the first cluster in the cluster information storage area 311 are used. Are set in the “maximum value” and “minimum value” of the “lower approximation set” in the predicate logical expression information storage area 312 (S105). Taking the third combination (“product purchase amount”, “current account”) as an example, the “maximum value” is “478155” and the minimum value is “478155”. Here, since the data having the condition attribute value “478155” belongs to the first cluster, it is set to “≦” instead of “<”, and the range of the lower approximation set is “478155 ≦ X ≦ 478155”. Become.

また、関係が第2関係である場合には(S102:NO,S103:YES)、第1条件属性値集合から重なりを除いた集合が下近似集合とされるので、クラスター情報記憶エリア311の第1クラスターの「最小値」以上「最大値」以下の範囲から述語論理式情報記憶エリア312の「重なり」の「最小値」以上「最大値」以下の範囲を除いた範囲とされる(S106)。第6の組合せ(「通信交通費」,「当座預金」)を例に挙げると、「623≦X≦6074」から「4200≦Z≦6074」を削除して、下近似集合の「最小値」は「623」、「最大値」は「4200」となる。ここで、「623」を条件属性値としているデータは第1クラスターに属するデータであるので「<」でなく「≦」とされ、「4200」を条件属性値としているデータは第2クラスターに属するデータであるので「<」とされるので、下近似集合の範囲は「623≦X<4200」とされる。なお、図27には特に図示していないが、「最大値」及び「最小値」には「<」又は「≦」を示す情報が付随して記憶される。   Further, when the relationship is the second relationship (S102: NO, S103: YES), the set obtained by removing the overlap from the first condition attribute value set is set as the lower approximation set. A range obtained by excluding a range from “minimum value” to “maximum value” of “overlap” in the predicate formula information storage area 312 from a range from “minimum value” to “maximum value” of one cluster (S106). . Taking the sixth combination (“communication transportation cost”, “current account”) as an example, “4200 ≦ Z ≦ 6074” is deleted from “623 ≦ X ≦ 6074” and “minimum value” of the lower approximation set Is “623” and “maximum value” is “4200”. Here, since the data having the condition attribute value “623” belongs to the first cluster, it is set to “≦” instead of “<”, and the data having the condition attribute value “4200” belongs to the second cluster. Since the data is “<”, the range of the lower approximation set is “623 ≦ X <4200”. Although not particularly shown in FIG. 27, information indicating “<” or “≦” is stored in association with “maximum value” and “minimum value”.

また、関係が第3関係である場合には(S102:NO,S103:NO,S104:YES)、条件属性が数型であり文字列型でないので(S110:NO)、図9を参照して前述したように、第1クラスターPの最大値及び最小値が取得され(S111)、第1クラスターPに含まれる第2クラスターQの値(重なり)に含まれる第2条件属性値の値が取得され(S112)、これらの値がソートされて(S113)、大小関係の隣り合う2つの値について、その小さい方の値以上大きい方の値以下の範囲に含まれる第1クラスターPの値の数が算出される(S114)。そして、その数が最も多い隣り合う2つの値に挟まれた範囲が割り出され(S115)、その範囲に含まれる第1クラスターPの要素の集合が下近似集合とされる(S116)。   If the relationship is the third relationship (S102: NO, S103: NO, S104: YES), the condition attribute is a numeric type and not a character string type (S110: NO), so refer to FIG. As described above, the maximum value and the minimum value of the first cluster P are acquired (S111), and the value of the second condition attribute value included in the value (overlap) of the second cluster Q included in the first cluster P is acquired. (S112), these values are sorted (S113), and the number of values of the first cluster P included in the range between the smaller value and the larger value of the two adjacent values in the magnitude relationship. Is calculated (S114). Then, a range between two adjacent values having the largest number is determined (S115), and a set of elements of the first cluster P included in the range is set as a lower approximation set (S116).

また、関係が第4関係である場合には(S102:NO,S103:NO,S104:NO)、図10を参照して前述したように、第1クラスターPが第2クラスターQに含まれてしまう場合(P⊆Q)には(「第4関係」に該当)、第1クラスターPの最大値及び最小値が取得され(S121)、条件属性が数型であり文字列型でないので(S120:NO)、第1クラスターPに含まれる第2クラスターQの値(重なり)に含まれる第2条件属性値の値が取得され(S122)、これらの値がソートされて(S123)、大小関係の隣り合う2つの値について、その小さい方の値以上大きい方の値以下の範囲に含まれる第1クラスターPの値の数が算出される(S124)。そして、その数が最も多い隣り合う2つの値に挟まれた範囲が割り出され(S125)、その範囲に含まれる第1クラスターPの要素の集合が下近似集合とされる(S126)。   If the relationship is the fourth relationship (S102: NO, S103: NO, S104: NO), the first cluster P is included in the second cluster Q as described above with reference to FIG. In the case of (P⊆Q) (corresponding to “fourth relationship”), the maximum value and the minimum value of the first cluster P are acquired (S121), and the condition attribute is numeric and not a character string (S120). : NO), the value of the second condition attribute value included in the value (overlapping) of the second cluster Q included in the first cluster P is acquired (S122), these values are sorted (S123), and the magnitude relationship For the two adjacent values, the number of values of the first cluster P included in the range from the smaller value to the larger value is calculated (S124). Then, the range between the two adjacent values having the largest number is determined (S125), and the set of elements of the first cluster P included in the range is set as the lower approximate set (S126).

図26,図27の第7の組合せ(「販売手数料」,「当座預金」)を例に挙げると、第1クラスターの最大値は「200000」、最小値は「150000」であり(S121)、重なりに含まれる第2クラスターの値は、「150000」,「160000」である(S122)。よって、夫々の関係は「150000=150000<160000<200000」となるので(S123)、隣り合った2つの値ごとに範囲を指定すると、R1(150000≦x≦160000),R2(160000≦x≦200000)の2つの範囲が指定できる。そして、R1の範囲内に条件属性値をもつ第1クラスターのデータは「150000」の1つであり、R2の範囲では「200000」の1つである(S124)。データの個数の多いほうの範囲を選択したいが、同じ1個であるので、どちらを選択しても良い。本実施例では、数値の大きい方の範囲を選択することとし、R2(160000≦x≦200000)を選択する(S125)。尚、数値の大きい方を選択するとしたり、範囲の最も狭いものを選択するとしたりしても良い。また、ここで、「200000」を条件属性値としているデータは第1クラスターに属するデータであるので「<」でなく「≦」とされ、「160000」を条件属性値としているデータは第2クラスターに属するデータであるので「<」とされるので、下近似集合の範囲は、「160000<x≦200000」とされる(S126)。   Taking the seventh combination (“sales commission”, “current account”) in FIGS. 26 and 27 as an example, the maximum value of the first cluster is “200000”, and the minimum value is “150,000” (S121). The values of the second cluster included in the overlap are “150,000” and “160000” (S122). Therefore, since the respective relations are “150,000 = 150,000 <160000 <200000” (S123), if a range is specified for every two adjacent values, R1 (150,000 ≦ x ≦ 160000), R2 (160000 ≦ x ≦ 2 ranges) can be specified. The data of the first cluster having the condition attribute value within the range of R1 is one of “150,000”, and is one of “200000” within the range of R2 (S124). I want to select the range with the larger number of data, but since it is the same one, either can be selected. In this embodiment, the range with the larger numerical value is selected, and R2 (160000 ≦ x ≦ 200000) is selected (S125). Note that the larger numerical value may be selected, or the narrowest range may be selected. Here, since the data having the condition attribute value “200000” belongs to the first cluster, it is set to “≦” instead of “<”, and the data having the condition attribute value “160000” is the second cluster. Since the data belongs to “<”, the range of the lower approximation set is “160000 <x ≦ 200000” (S126).

以上のようにして、下近似集合が作成され、述語論理式情報記憶エリア312の下近似集合欄に記憶されたら(S78)、有効性評価値が算出され、述語論理式情報記憶エリア312の有効性評価値欄に記憶される(S79)。この有効性評価値は数6に示した式で算出される。ここでは、ρ=2、小数点第3位までを有効桁数とし、四捨五入する。   As described above, when the lower approximation set is created and stored in the lower approximation set column of the predicate logical expression information storage area 312 (S78), the validity evaluation value is calculated and the validity of the predicate logical expression information storage area 312 is calculated. It is stored in the sex evaluation value column (S79). This effectiveness evaluation value is calculated by the equation shown in Equation 6. Here, ρ = 2 and the third decimal place are regarded as effective digits and rounded off.

指定されている決定条件の組合せが第3の組合せ(「商品仕入高」,「当座預金」)である場合は、上近似集合に属する要素を持つ事象データ数は「478155」の「1」個、下近似集合に属する要素を持つ事象データ数は「478155」の「1」個、条件属性の組合せを構成する条件属性の数は「当座預金出金」の「1」個、全事象データ数は「30」個であるので、近似精度は、上近似集合に属する要素を持つ事象データ数で下近似集合に属する要素を持つ事象データ数を除して「1÷1=1」となる。そして、修正近似精度は、条件属性の組合せを構成する条件属性の数「1」の平方根が「1」となるので、近似精度「1」を割って、「1÷1=1」となる。そして、有効性評価値は、近似精度「1」に下近似集合に属する要を持つ事象データ数を全事象データ数で割ったものを掛けて、「1×1÷30=0.033」となる。   When the combination of the specified determination conditions is the third combination (“product purchase amount”, “current account”), the number of event data having elements belonging to the upper approximate set is “1” of “478155” The number of event data having elements belonging to the lower approximate set is “1” of “478155”, the number of condition attributes constituting the combination of condition attributes is “1” of “current account withdrawal”, and all event data Since the number is “30”, the approximation accuracy is “1 ÷ 1 = 1” by dividing the number of event data having elements belonging to the lower approximation set by the number of event data having elements belonging to the upper approximation set. . Then, since the square root of the number of condition attributes “1” constituting the combination of condition attributes is “1”, the corrected approximation accuracy is “1 ÷ 1 = 1” by dividing the approximation accuracy “1”. Then, the effectiveness evaluation value is “1 × 1 ÷ 30 = 0.033” obtained by multiplying the approximate accuracy “1” by the number of event data having the key belonging to the lower approximate set divided by the total number of event data. Become.

指定されている決定条件の組合せが第6の組合せ(「通信交通費」,「当座預金」)である場合は、上近似集合に属する要素を持つ事象データ数は「623」、「1320」、「4200」、「6074」の「4」個、下近似集合に属する要素を持つ事象データ数は「623」、「1320」の「2」個、条件属性の組合せを構成する条件属性の数は「当座預金出金」の「1」個、全事象データ数は「30」個であるので、近似精度は、上近似集合に属する要素を持つ事象データ数で下近似集合に属する要素を持つ事象データ数を除して、「2÷4=0.5」となる。そして、修正近似精度は、条件属性の組合せを構成する条件属性の数「1」の平方根が「1」となるので、近似精度「0.5」を割って、「0.5÷1=0.5」となる。そして、有効性評価値は、近似精度「0.5」に下近似集合に属する要を持つ事象データ数を全事象データ数で割ったものを掛けて、「0.5×2÷30=0.033」となる。   When the specified combination of determination conditions is the sixth combination (“communication transportation cost”, “current account”), the number of event data having elements belonging to the upper approximate set is “623”, “1320”, “4200”, “6074” “4”, the number of event data having elements belonging to the lower approximation set is “623”, “1320” “2”, the number of condition attributes constituting the combination of condition attributes is Since “current account withdrawal” is “1” and the total number of event data is “30”, the approximation accuracy is the number of event data having elements belonging to the upper approximation set and events having elements belonging to the lower approximation set. By dividing the number of data, “2 ÷ 4 = 0.5” is obtained. Then, since the square root of the number of condition attributes “1” constituting the combination of condition attributes is “1”, the corrected approximation accuracy is “0.5 ÷ 1 = 0 by dividing the approximation accuracy“ 0.5 ”. .5 ". Then, the effectiveness evaluation value is obtained by multiplying the approximate accuracy “0.5” by the number of event data having the key belonging to the lower approximate set divided by the total number of event data to obtain “0.5 × 2 ÷ 30 = 0. .033 ".

指定されている決定条件の組合せが第7の組合せ(「販売手数料」,「当座預金」)である場合は、上近似集合に属する要素を持つ事象データ数は「150000」、「150000」、「160000」、「200000」の「4」個、下近似集合に属する要素を持つ事象データ数は「20000」の「1」個、条件属性の組合せを構成する条件属性の数は「当座預金出金」の「1」個、全事象データ数は「30」個であるので、近似精度は、上近似集合に属する要素を持つ事象データ数で下近似集合に属する要素を持つ事象データ数を除して、「1÷4=0.25」となる。そして、修正近似精度は、条件属性の組合せを構成する条件属性の数「1」の平方根が「1」となるので、近似精度「1」を割って、「0.25÷1=0.25」となる。そして、有効性評価値は、近似精度「1」に下近似集合に属する要を持つ事象データ数を全事象データ数で割ったものを掛けて、「0.25×1÷30=0.0083」となる。   When the specified combination of determination conditions is the seventh combination (“sales commission”, “current account”), the number of event data having elements belonging to the upper approximation set is “150,000”, “150,000”, “ “40000” of “100000” and “200000”, “1” of event data having elements belonging to the lower approximation set, “1” of “20000”, and the number of condition attributes constituting the combination of condition attributes is “current account withdrawal” "1" and the total number of event data is "30", the approximate accuracy is the number of event data having elements belonging to the upper approximation set and the number of event data having elements belonging to the lower approximation set. Thus, “1 ÷ 4 = 0.25”. The modified approximation accuracy is “0.25” /1=0.25 by dividing the approximation accuracy “1” because the square root of the number of condition attributes “1” constituting the combination of condition attributes is “1”. " Then, the effectiveness evaluation value is obtained by multiplying the approximation accuracy “1” by the number of event data having the key belonging to the lower approximation set, divided by the total number of event data, and “0.25 × 1 ÷ 30 = 0.003”. "

有効性評価値が算出されクラスター情報記憶エリア312の有効性評価値欄に記憶されたら(S79)、述語論理式が作成され、述語論理式情報記憶エリア312の述語論理式欄に記憶される(S80)。左辺は条件属性の値が文字列型の場合と同じで「仕訳(借方勘定科目名,貸方勘定科目名)」とされ、決定属性の組合せが()内にセットされる。右辺には「条件属性1(A),関係式1(A,条件属性の値),関係式2(A,条件属性の値),…」とされる。関係式とは、()内の変数Aと条件属性の値との関係を示す文字列である。本実施例では、「A≧条件属性の値」は「greaterEqual」、「A≦条件属性の値」は「lessEqual」、「A>条件属性の値」は「greaterThan」、「A<条件属性の値」は「lessThan」と表現される。そして、関係式の末尾に条件属性の値が整数型であるか実数型であるかを示す文字列(Int/Float)が付与される。   When the validity evaluation value is calculated and stored in the validity evaluation value column of the cluster information storage area 312 (S79), a predicate logical expression is created and stored in the predicate logical expression column of the predicate logical expression information storage area 312 ( S80). The left side is the same as the case where the value of the condition attribute is a character string type, and is “journal (debit account name, credit account name)”, and the combination of determination attributes is set in parentheses. On the right side, “condition attribute 1 (A), relational expression 1 (A, value of condition attribute), relational expression 2 (A, value of condition attribute),... The relational expression is a character string indicating the relation between the variable A in () and the value of the condition attribute. In this embodiment, “A ≧ condition attribute value” is “greaterQual”, “A ≦ condition attribute value” is “lessEqual”, “A> condition attribute value” is “greaterThan”, “A <condition attribute value”. "Value" is expressed as "lessThan". A character string (Int / Float) indicating whether the value of the condition attribute is an integer type or a real number type is added to the end of the relational expression.

図27に示す例で、第3の決定条件の組合せでは、決定属性は(商品仕入高,当座預金)であり、条件属性は「当座預金出金」のみであるので、述語論理式は「仕訳(商品仕入高,当座預金):−当座預金出金(A),greaterEqualInt(A,478155),lessEqualInt(A,478155).」となる。また、第6の決定条件の組合せでは、決定属性は(通信交通費,当座預金)であり、条件属性は「当座預金出金」のみであるので、述語論理式は「仕訳(通信交通費,当座預金):−当座預金出金(A),greaterEqualInt(A,623),lessEqualInt(A,1320).」となる。また、第7の決定条件の組合せでは、決定属性は(販売手数料,当座預金)であり、条件属性は「当座預金出金」のみであるので、述語論理式は「仕訳(販売手数料,当座預金):−当座預金出金(A),greaterEqualInt(A,160000),lessEqualInt(A,200000).」となる。   In the example shown in FIG. 27, in the third combination of determination conditions, the determination attribute is (product purchase amount, current account), and the condition attribute is only “current account withdrawal”. Journal entries (product purchases, current account):-current account withdrawal (A), greaterEqualInt (A, 478155), lessEqualInt (A, 478155). " In the sixth combination of determination conditions, since the determination attribute is (communication transportation cost, current account) and the condition attribute is only “current account withdrawal”, the predicate logical expression is “journal (communication transportation cost, Current account):-current account withdrawal (A), greaterEqualInt (A, 623), lessEqualInt (A, 1320). " In the seventh combination of decision conditions, the decision attribute is (sales commission, current account) and the condition attribute is only “current account withdrawal”, so the predicate logical expression is “journal (sales commission, current account). ):-Current account withdrawal (A), greaterEqualInt (A, 160000), lessEqualInt (A, 200000).

このようにして、すべての決定属性の組合せについて述語論理式が作成され、クラスター情報記憶エリア312の述語論理式欄に記憶されたら(S77〜S80、S76:YES)、条件属性組合せ処理は終了する。   In this way, when predicate logical expressions are created for all combinations of decision attributes and stored in the predicate logical expression column of the cluster information storage area 312 (S77 to S80, S76: YES), the conditional attribute combination process ends. .

次に、条件属性の組合せの要素が複数の条件属性である場合の例として、「相手先」と「情報提供契約」との組合せである場合の条件属性組合せ処理について、図28乃至図32を用いて説明する。   Next, as an example in the case where the combination element of the condition attribute is a plurality of condition attributes, FIG. 28 to FIG. 32 are shown for the condition attribute combination processing in the case of a combination of “destination” and “information provision contract”. It explains using.

図28は、条件属性「相手先」と「情報提供契約」との組合せについての部分決定表221の模式図であり、図29は、条件属性「相手先」と「情報提供契約」との組合せについての部分決定表222の模式図であり、図30は、条件属性「相手先」と「情報提供契約」との組合せについての部分決定表223の模式図であり、図31は、条件属性「相手先」と「情報提供契約」との組合せについての第1クラスター及び第2クラスターの情報を記憶するRAM101のクラスター情報記憶エリア321の模式図であり、図32は、条件属性「相手先」と「情報提供契約」との組合せについての集合の情報や述語論理式を記憶するRAM101の述語論理式情報記憶エリア322の模式図である。   FIG. 28 is a schematic diagram of the partial determination table 221 for the combination of the condition attributes “destination” and “information provision contract”, and FIG. 29 is a combination of the condition attributes “destination” and “information provision contract”. FIG. 30 is a schematic diagram of the partial decision table 223 for the combination of the condition attributes “destination” and “information provision contract”, and FIG. FIG. 32 is a schematic diagram of the cluster information storage area 321 of the RAM 101 that stores information on the first cluster and the second cluster for the combination of “partner” and “information provision contract”. It is a schematic diagram of a predicate logical formula information storage area 322 of the RAM 101 that stores set information and predicate logical formulas for a combination with an “information provision contract”.

まず、条件属性が「相手先」と「情報提供契約」のみの部分決定表221(図28参照)が作成される(S71)。そして、図29に示すように、部分決定表221から条件属性「相手先」及び「情報提供契約」に値のないデータ(列)が削除される(S72)。図29に示す例では、15行目、22行目、25,26行目、28行目以外のデータは削除され、部分決定表222とされている。   First, the partial determination table 221 (see FIG. 28) having only the condition attributes “partner” and “information provision contract” is created (S71). Then, as shown in FIG. 29, data (columns) having no values for the condition attributes “partner” and “information provision contract” are deleted from the partial determination table 221 (S72). In the example shown in FIG. 29, the data other than the 15th, 22nd, 25th, 26th, and 28th lines are deleted, and the partial determination table 222 is obtained.

次いで、部分決定表222が決定属性の値でソートされ(S73)、第1クラスター及び第2クラスターが決定される(S74)。図30に示す部分決定表223は、部分決定表222をソートし決定属性の組合せの番号付けをした部分決定表である。   Next, the partial determination table 222 is sorted by the value of the determination attribute (S73), and the first cluster and the second cluster are determined (S74). The partial determination table 223 shown in FIG. 30 is a partial determination table in which the partial determination table 222 is sorted and the combinations of determination attributes are numbered.

図30に示す例では、第1の第1クラスターは借方勘定科目が「交際費」、貸方勘定科目が「当座預金」である。そして、条件属性の組合せ値を(相手先,情報提供契約)と示すとすると、(P氏,無し),(Q大学R教授,無し),(S氏,無し)の3つのデータが属している。また、第2の第1クラスターは借方勘定科目が「販売手数料」、貸方勘定科目が「当座預金」であり、条件属性の組合せの値は(M調査会社,有り),(M調査会社,有り)の2つのデータが属している。   In the example shown in FIG. 30, in the first first cluster, the debit account item is “account expense” and the credit account item is “current account”. If the combination value of the condition attribute is indicated as (partner, information provision contract), the three data of (Mr. P, none), (Q University R professor, none), (Mr. S, none) belong. Yes. In the second first cluster, the debit account item is “sales commission” and the credit account item is “current account”, and the combination of condition attributes is (M research company, yes), (M research company, yes) ) Belong to two data.

また、S74では、個の生成された第1と第2の第1クラスターについての情報がRAM101のクラスター情報記憶エリア321に記憶される(図31参照)。図31に示すように、条件属性のデータ型は「相手先」「情報提供契約」共に「文字列」であるために、第1クラスターにおいて条件属性ごとにその「第1条件属性値集合」がセットされ、第2クラスターにおいて、「第2条件属性値集合」がセットされている。   In S74, information about the generated first and second first clusters is stored in the cluster information storage area 321 of the RAM 101 (see FIG. 31). As shown in FIG. 31, since the data type of the condition attribute is “character string” for both “destination” and “information provision contract”, the “first condition attribute value set” is set for each condition attribute in the first cluster. In the second cluster, the “second condition attribute value set” is set.

図31に示す例では、第1の組合せ(交際費,当座預金)では、第1クラスターに属するデータについて、条件属性「相手先」では「P氏」,「Q大学R教授」,「S氏」の3つの値から成る集合が第1条件属性値集合とされ、条件属性「情報提供契約」では「無し」のみを要素とする集合が第1条件属性値集合とされている。また、第2クラスターに属するデータについては、条件属性「相手先」では「M調査会社」のみを要素とする集合が第2条件属性値集合とされ、条件属性「情報提供契約」では「有り」のみを要素とする集合が第2条件属性値集合とされている。   In the example shown in FIG. 31, in the first combination (accounting expense, current account), the data belonging to the first cluster is “Mr. P”, “Professor R at Q University”, “Mr. Is a first condition attribute value set. In the condition attribute “information provision contract”, a set having only “none” as an element is a first condition attribute value set. For data belonging to the second cluster, the condition attribute “destination” includes a set of only “M research company” as an element, and the condition attribute “information provision contract” has “Yes”. The set having only the element as the element is the second condition attribute value set.

また、第2の組合せ(販売手数料,当座預金)では、第1クラスターに属するデータについては、条件属性「相手先」では「M調査会社」のみを要素とする集合が第1条件属性値集合とされ、条件属性「情報提供契約」では「有り」のみを要素とする集合が第1条件属性値集合とされている。また、第2クラスターに属するデータについて、条件属性「相手先」では「P氏」,「Q大学R教授」,「S氏」の3つの値から成る集合が第2条件属性値集合とされ、条件属性「情報提供契約」では「無し」のみを要素とする集合が第2条件属性値集合とされている。   In the second combination (sales commission, current account), for the data belonging to the first cluster, the condition attribute “partner” includes a set having only “M survey company” as the first condition attribute value set. In the condition attribute “information provision contract”, a set having only “present” as an element is set as a first condition attribute value set. For the data belonging to the second cluster, the condition attribute “destination” is a set of three values of “Mr. P”, “Q Professor R” and “Mr. S” as the second condition attribute value set, In the condition attribute “information provision contract”, a set having only “none” as an element is a second condition attribute value set.

以上のようにして、各決定属性の組合せについて第1クラスター及び第2クラスターが決定され、それに関する情報がクラスター情報記憶エリア321に記憶されたら(S74)、第1の決定属性の組合せの述語論理式が作成されて記憶され(S75〜S80)、次いで、第2の決定属性の組合せ述語論理式が作成されて記憶される(S75〜S80)。   As described above, when the first cluster and the second cluster are determined for each combination of determination attributes, and information related thereto is stored in the cluster information storage area 321 (S74), the predicate logic of the first determination attribute combination An expression is created and stored (S75 to S80), and then a combination predicate logical expression of the second decision attribute is created and stored (S75 to S80).

まず、第1の決定属性の組合せが指定されたら(S75)、まだすべての決定属性の組合せは終了していないので(S76:NO)、第1の決定属性の組合せについて上近似集合が決定される(S77)。第1の決定属性の組合せ(交際費,当座預金)では、図32に示すように、条件属性「相手先」に「P氏」,「Q大学R教授」,「S氏」の3つの値、条件属性「情報提供契約」に「無し」がセットされる。   First, when the combination of the first determination attributes is designated (S75), since all the combinations of the determination attributes have not been completed yet (S76: NO), the upper approximate set is determined for the combination of the first determination attributes. (S77). As shown in FIG. 32, in the first combination of decision attributes (interest expense, current account), the condition attribute “partner” has three values “P”, “Q University R Professor”, “M” S. “None” is set in the condition attribute “information provision contract”.

そして、下近似集合作成処理が行われる(S78,図15参照)。第1条件属性値集合と第2条件属性値集合との関係は、条件属性「相手先」、「情報提供契約」共に重なりがなく、独立の関係であるので第1関係とされる(S101)。そして、第1関係であるので(S102:YES)、第1条件属性値集合が下近似集合とされる(S105)。図32に示すように、「下近似集合」の値には、条件属性ごとにそれぞれ、条件属性「相手先」では「P氏」,「Q大学R教授」,「S氏」の3つの値がセットされ、条件属性「情報提供契約」では「無し」のみがセットされている。   Then, a lower approximate set creation process is performed (S78, see FIG. 15). The relationship between the first condition attribute value set and the second condition attribute value set is the first relationship because the condition attributes “destination” and “information provision contract” do not overlap and are independent relationships (S101). . And since it is the 1st relation (S102: YES), the 1st condition attribute value set is made into a lower approximation set (S105). As shown in FIG. 32, the value of the “lower approximation set” includes three values of “Mr. P”, “Professor R at Q University”, and “Mr. S” for each condition attribute. Is set, and in the condition attribute “information provision contract”, only “none” is set.

次いで、第1の決定属性の組合せについて、有効性評価値が算出される(S79)。上近似集合に属する要素を持つ事象データ数は「3」、下近似集合に属する要素を持つ事象データ数は「3」、条件属性の組合せを構成する条件属性の数は「2」、全事象データ数は「30」であるので、近似精度は、上近似集合に属する要素を持つ事象データ数で下近似集合に属する要素を持つ事象データ数を除して、「3÷3=1」となる。そして、修正近似精度は、条件属性の組合せを構成する条件属性の数「2」の平方根が「1.414」となるので、近似精度「1」を割って、「1÷1.414=0.707」となる。そして、有効性評価値は、近似精度「0.707」に下近似集合に属する要を持つ事象データ数を全事象データ数で割ったものを掛けて、「0.707×3÷30=0.071」となる。   Next, an effectiveness evaluation value is calculated for the first combination of decision attributes (S79). The number of event data having elements belonging to the upper approximation set is “3”, the number of event data having elements belonging to the lower approximation set is “3”, the number of condition attributes constituting the combination of condition attributes is “2”, and all events Since the number of data is “30”, the approximation accuracy is “3 ÷ 3 = 1” by dividing the number of event data having elements belonging to the upper approximation set by the number of event data having elements belonging to the lower approximation set. Become. Then, since the square root of the number of condition attributes “2” constituting the combination of condition attributes is “1.414”, the modified approximation accuracy is “1 ÷ 1.414 = 0 by dividing the approximation accuracy“ 1 ”. .707 ". Then, the effectiveness evaluation value is obtained by multiplying the approximate accuracy “0.707” by the number of event data having the key belonging to the lower approximate set divided by the total number of event data to obtain “0.707 × 3 ÷ 30 = 0. .071 ".

次いで、述語論理式が作成され、述語論理式情報記憶エリア322の述語論理式欄に記憶される(S80)。第1の決定属性の組合せは、(交際費,当座預金)であり、条件属性は「相手先」、「情報提供契約」であり、その下近似集合は、条件属性「相手先」では「P氏」,「Q大学R教授」,「S氏」、条件属性「情報提供契約」では「無し」を要素としている。そこで、述語論理式は「仕訳(交際費,当座預金):−相手先(A),member(A,[P氏,Q大学R教授,S氏]),情報提供契約(B),member(B,[無し]).」とされる。   Next, a predicate logical expression is created and stored in the predicate logical expression column of the predicate logical expression information storage area 322 (S80). The combination of the first determination attributes is (accounting expense, current account), the condition attributes are “partner” and “information provision contract”, and the lower approximation set is “P” for the condition attribute “partner”. “Mr.”, “Q University R Professor”, “Mr. S”, and the condition attribute “information provision contract” have “none” as an element. Therefore, the predicate logical expression is “Journaling (accounting expenses, current account):-Partner (A), member (A, [Mr. P, Professor R at Q University, Mr. S]), information provision contract (B), member ( B, [None]).

そして、S75へ戻り、そして、第2の決定属性の組合せ(販売手数料,当座預金)がしていされ(S75)、まだすべての決定属性の組合せは終了していないので(S76:NO)、指定された第2の決定属性の組合せについて、上近似集合が作成される(S77)。図31及び図32に示す例では、条件属性「相手先」に「M調査会社」、「情報提供契約」に「有り」がセットされる。   Then, the process returns to S75, and the second decision attribute combination (sales fee, current account) has been made (S75), and since all the decision attribute combinations have not yet been completed (S76: NO), the designation is made. An upper approximate set is created for the combination of the determined second determination attributes (S77). In the example shown in FIG. 31 and FIG. 32, the condition attribute “partner” is set to “M survey company” and “information provision contract” is set to “present”.

次いで、下近似集合が作成される(S78,図15参照)。図31及び図32に示す例では、第1条件属性値集合と第2条件属性値集合との関係は、条件属性「相手先」、「情報提供契約」共に重なりがなく、独立の関係であるので第1関係とされる(S101)。そして、第1関係であるので(S102:YES)、第1条件属性値集合が下近似集合とされる(S105)。図32に示すように、「下近似集合」の値には、条件属性ごとにそれぞれ、条件属性「相手先」では「M調査会社」がセットされ、条件属性「情報提供契約」では「有り」がセットされている。   Next, a lower approximate set is created (S78, see FIG. 15). In the example shown in FIG. 31 and FIG. 32, the relationship between the first condition attribute value set and the second condition attribute value set is an independent relationship with no overlap between the condition attributes “destination” and “information provision contract”. Therefore, the first relationship is established (S101). And since it is the 1st relation (S102: YES), the 1st condition attribute value set is made into a lower approximation set (S105). As shown in FIG. 32, in the value of “lower approximation set”, “M survey company” is set for the condition attribute “partner” for each condition attribute, and “present” is set for the condition attribute “information provision contract”. Is set.

次いで、第1の決定属性の組合せについて、有効性評価値が算出され、述語論理式情報記憶エリア322の有効性評価値欄に記憶される(S79)。近似精度は、上近似集合に属する要素を持つ事象データ数で下近似集合に属する要素を持つ事象データ数を除して、「2÷2=1」となる。そして、修正近似精度は、条件属性の組合せを構成する条件属性の数「2」の平方根が「1.414」となるので、近似精度「1」を割って、「1÷1.414=0.707」となる。そして、有効性評価値は、近似精度「0.707」に下近似集合に属する要を持つ事象データ数を全事象データ数で割ったものを掛けて、「0.707×2÷30=0.047」となる。   Next, an effectiveness evaluation value is calculated for the first combination of decision attributes, and stored in the effectiveness evaluation value column of the predicate logical expression information storage area 322 (S79). The approximation accuracy is “2 ÷ 2 = 1” by dividing the number of event data having elements belonging to the upper approximation set by the number of event data having elements belonging to the lower approximation set. Then, since the square root of the number of condition attributes “2” constituting the combination of condition attributes is “1.414”, the modified approximation accuracy is “1 ÷ 1.414 = 0 by dividing the approximation accuracy“ 1 ”. .707 ". Then, the effectiveness evaluation value is obtained by multiplying the approximation accuracy “0.707” by the number of event data having key points belonging to the lower approximation set, divided by the total number of event data, to obtain “0.707 × 2 ÷ 30 = 0. .047 ".

次いで、述語論理式が作成され、述語論理式情報記憶エリア322の述語論理式欄に記憶される(S80)。第2の決定属性の組合せは、(販売手数料,当座預金)であり、条件属性は「相手先」、「情報提供契約」であり、その下近似集合は、条件属性「相手先」では「M調査会社」、条件属性「情報提供契約」では「有り」を要素としている。そこで、述語論理式は、「仕訳(販売手数料,当座預金):−相手先(A),member(A,[M調査会社]),情報提供契約(B),member(B,[有り]).」とされる。   Next, a predicate logical expression is created and stored in the predicate logical expression column of the predicate logical expression information storage area 322 (S80). The second combination of decision attributes is (sales commission, current account), the condition attributes are “partner” and “information provision contract”, and the lower approximation set is “M” for the condition attribute “partner”. The “research company” and the condition attribute “information provision contract” have “present” as an element. Therefore, the predicate logical expression is “journal (sales fee, current account):-counterpart (A), member (A, [M research company]), information provision contract (B), member (B, [Yes])) . "

そして、S75へ戻り、次の決定属性の指定がされるが(S75)、すべての決定属性の組合せについての処理が終了しているので(S76:YES)、条件属性組合せ処理は終了し、会計仕訳ルール作成処理へ戻る。   Then, the process returns to S75, and the next decision attribute is specified (S75). However, since the process for all the decision attribute combinations has been completed (S76: YES), the conditional attribute combination process is terminated and the accounting is completed. Return to the journal entry rule creation process.

以上のようにして、条件属性の組合せが「相手先」と「情報提供契約」との場合の述語論理式が作成される。   As described above, the predicate logical expression when the combination of the condition attributes is “partner” and “information provision contract” is created.

次に、このようにして作成された述語論理式を用いて、取引データ35を仕訳する仕訳処理36(図11参照)について、図33に示すフローチャートを参照して説明する。図33は、仕訳処理のフローチャートである。   Next, journalizing processing 36 (see FIG. 11) for journalizing transaction data 35 using the predicate logical expression created in this way will be described with reference to the flowchart shown in FIG. FIG. 33 is a flowchart of the journalizing process.

まず、コンピュータ100のハードディスク装置120の取引データ記憶エリア125に記憶されている取引データから1つの取引データが読み込まれる(S201)。そして、S201において取引データを読み込むことができ、すべての取引データの処理が終了していなければ(202:NO)、述語論理式記憶エリア124に記憶されている述語論理式が1つ読み込まれる(S203)。尚、この述語論理式は有効性評価値の高い順に記憶されており、有効性評価値の高い順に読み出される。そして、述語論理式を読み込むことができ、すべての述語論理式の処理が終了してなければ(S204:NO)、取引データが述語論理式を満たすか否かの判断が行われる(S205)。   First, one transaction data is read from the transaction data stored in the transaction data storage area 125 of the hard disk device 120 of the computer 100 (S201). And transaction data can be read in S201, and if the processing of all transaction data is not completed (202: NO), one predicate logical expression stored in the predicate logical expression storage area 124 is read ( S203). Note that the predicate logical expressions are stored in descending order of effectiveness evaluation values, and are read out in descending order of effectiveness evaluation values. Then, the predicate logical expressions can be read, and if all the predicate logical expressions have not been processed (S204: NO), it is determined whether or not the transaction data satisfies the predicate logical expressions (S205).

例えば、読み込まれた取引データが、「摘要『本日売上』、現金入金『123468』、他の条件属性には値なし」というデータであり、そして、読み込まれた述語論理式が「仕訳(販売手数料,当座預金):−相手先(A),member(A,[M調査会社]),情報提供契約(B),member(B,[有り]).」であったとする。この場合には、条件属性「相手先」にも「情報提供契約」にも値がないため、条件属性「相手先」の値が「M調査会社」でもなく、「情報提供契約」の値が「有り」でもないため、この述語論理式は満たさないことになる。   For example, the read transaction data is “Summary“ Today's Sales ”, Cash Deposit“ 123468 ”, No Value for Other Condition Attributes”, and the read predicate formula is “Journal (Sales Commission) , Checking account):-counterparty (A), member (A, [M research company]), information provision contract (B), member (B, [Yes]). In this case, since there is no value in the condition attribute “partner” or “information provision contract”, the value of the condition attribute “partner” is not “M survey company”, but the value of “information provision contract” is Since it is not “Yes”, this predicate logical expression is not satisfied.

そこで、述語論理式を満たしていないので(S205:NO)、S203へ戻り、次の述語論理式が読み込まれる(S203)。そこでも、述語論理式を満たしていなければ(S205:NO)、再度次の述語論理式が読み込まれる(S203)。そして、繰り返しS203〜205の処理が行われる中で、「仕訳(現金,売上高):−摘要(A),member(A,[本日売上]).」という述語論理式が読み込まれたとすると(S203)。この取引データは条件属性「摘要」が「本日売上」であるので、この述語論理式を満たしている(S205:YES)。そこで、仕訳結果記憶エリア126に当該取引データと、決定属性である「借方勘定科目」に「現金」、「貸方勘定科目」に「売上高」が記憶される(S206)。そして、S201へ戻り、次の取引データの処理が行われる。   Therefore, since the predicate logical expression is not satisfied (S205: NO), the process returns to S203, and the next predicate logical expression is read (S203). Even in this case, if the predicate logical expression is not satisfied (S205: NO), the next predicate logical expression is read again (S203). Then, it is assumed that the predicate logical expression “Journal (cash, sales):-summary (A), member (A, [sales for today])” is read while the processing of S203 to S205 is repeatedly performed ( S203). This transaction data satisfies the predicate logical expression because the condition attribute “Summary” is “Today's sales” (S205: YES). Therefore, the transaction data, “cash” is stored in the “debit account item” as the determination attribute, and “sales” is stored in the “credit account item” in the journal result storage area 126 (S206). Then, the process returns to S201, and the next transaction data is processed.

このようにして、S201〜S206の処理が繰り返されて、すべての取引データの処理が終了したら(S202:YES)、仕訳処理は終了する。尚、全ての述語論理式についてその式を満たすか否かの判断(S205)が行われても、満たす述語論理式がなかった場合には(S204:YES)、「借方勘定科目」及び「貸方勘定科目」には何も記憶されない。   In this way, when the processing of S201 to S206 is repeated and the processing of all transaction data is completed (S202: YES), the journal entry processing is completed. Even if it is determined whether or not all the predicate logical expressions are satisfied (S205), if there is no predicate logical expression to satisfy (S204: YES), “debit account item” and “credit” Nothing is stored in “Account”.

以上のようにして、取引データ記憶エリア125に記憶されている取引データの仕訳結果が仕訳結果記憶エリア126に記憶される。   As described above, the journal result of the transaction data stored in the transaction data storage area 125 is stored in the journal result storage area 126.

したがって、以上のようにして過去の仕訳結果から企業の特性を加味した仕訳ルール(述語論理式)を作成することができるので、企業に存在する細かなルールや判断材料にも応じた仕訳を行うことができる。よって、会計に関する知識を有しない者であっても簡単に仕訳処理を行うことができるようになり、経理処理のコスト削減に貢献できる。   Therefore, as described above, journal rules (predicate formulas) that take into account the characteristics of the company can be created from the past journal results, so that journals according to the detailed rules and judgment materials existing in the company are performed. be able to. Therefore, even those who do not have knowledge about accounting can easily perform journalizing processing, which can contribute to cost reduction of accounting processing.

また、会計知識を有する者の共通ルールを述語論理式作成に反映させることができるので、より効率的に述語論理式を作成することができる。また、企業に存在する細かなルールや特定の取引先とのルール、特定の判断材料を条件属性として付加することができるので、それらの特定ルールを加味したその企業に応じた述語論理式を作成することができる。   In addition, since the common rules of those who have accounting knowledge can be reflected in the predicate formula creation, the predicate formula can be created more efficiently. In addition, detailed rules that exist in a company, rules with specific business partners, and specific judgment materials can be added as conditional attributes, so a predicate logical expression corresponding to the company that takes those specific rules into account is created. can do.

尚、このコンピュータ100が「述語論理式作成装置」、「会計仕訳ルール作成装置」、「会計仕訳装置」に該当する。そして、部分決定表を記憶するRAM101が「事象データ記憶手段」に該当し、条件属性値の組合せを記憶するRAM101が「全条件属性組合せ記憶手段」に該当し、述語論理式記憶エリア124が「述語論理式記憶手段」に該当し、仕訳結果記憶エリア126が「仕訳結果記憶手段」に該当する。   The computer 100 corresponds to a “predicate formula creating device”, an “accounting journal rule creating device”, and an “accounting journal device”. The RAM 101 that stores the partial determination table corresponds to “event data storage unit”, the RAM 101 that stores the combination of condition attribute values corresponds to “all condition attribute combination storage unit”, and the predicate logical expression storage area 124 includes “ The journal result storage area 126 corresponds to “journal result storage means”.

そして、図13の会計仕訳ルール作成処理のS51の処理を行うCPU110が「事象データ入力手段」に相当し、S57の処理を行うCPU110が「全条件属性組合せ作成手段」に相当し、S58〜S60の処理を行うCPU110が「全条件属性組合せ処理手段」に相当し、S63,S64の処理を行うCPU110が「述語論理式作成制御手段」に相当する。そして、図14の条件属性組合せ処理S74の処理を行うCPU110が「クラスター作成手段」,「第1条件属性値集合作成手段」,「第2条件属性値集合作成手段」に相当し、S76の処理を行うCPU110が「関係判断手段」に相当し、S77の処理を行うCPU110が「上近似集合作成手段」に相当し、S78の処理を行うCPU110が「下近似集合決定手段」に相当し、S79の処理を行うCPU110が「近似精度算出手段」に相当し、S79の処理を行うCPU110が「有効性能評価指標算出手段」に相当し、S80の処理を行うCPU110が「述語論理式作成手段」に相当する。   Then, the CPU 110 that performs the processing of S51 of the accounting journal rule creation processing of FIG. 13 corresponds to “event data input means”, and the CPU 110 that performs the processing of S57 corresponds to “all condition attribute combination creation means”, S58 to S60. The CPU 110 that performs the above process corresponds to “all condition attribute combination processing means”, and the CPU 110 that performs the processes of S63 and S64 corresponds to “predicate logical expression creation control means”. The CPU 110 that performs the process of the condition attribute combination process S74 in FIG. 14 corresponds to the “cluster creation unit”, the “first condition attribute value set creation unit”, and the “second condition attribute value set creation unit”. The CPU 110 that performs the processing corresponds to “relationship determination means”, the CPU 110 that performs the processing of S77 corresponds to “upper approximation set creation means”, the CPU 110 that performs the processing of S78 corresponds to “lower approximation set determination means”, and S79 The CPU 110 that performs the process of FIG. 8 corresponds to “approximation accuracy calculation means”, the CPU 110 that performs the process of S79 corresponds to “effective performance evaluation index calculation means”, and the CPU 110 that performs the process of S80 corresponds to “predicate logical expression creation means”. Equivalent to.

そして、図15下近似集合作成処理のS105の処理を行うCPU110が「第1近似集合決定手段」に相当し、S106の処理を行うCPU110が「第2近似集合決定手段」に相当し、S110〜S117の処理を行うCPU110が「第3近似集合決定手段」に相当し、S120,S127の処理を行うCPU110が「不作成手段」に相当し、S126の処理を行うCPU110が「第4近似集合決定手段」に相当する。そして、図33に示す仕訳処理を行うCPU110が「仕訳手段」に相当し、S201の処理を行うCPU110が「取引データ入力手段」に該当する。   The CPU 110 that performs the process of S105 of the lower approximate set creation process in FIG. 15 corresponds to the “first approximate set determining unit”, and the CPU 110 that performs the process of S106 corresponds to the “second approximate set determining unit”. The CPU 110 that performs the process of S117 corresponds to “third approximate set determining means”, the CPU 110 that performs the processes of S120 and S127 corresponds to “non-creating means”, and the CPU 110 that performs the process of S126 corresponds to “fourth approximate set determining means”. It corresponds to “means”. 33 corresponds to the “journaling means”, and the CPU 110 performing the process of S201 corresponds to “transaction data input means”.

そして、図13の会計仕訳ルール作成処理のS51が「事象データ入力ステップ」に該当し、S52が「事象データ記憶ステップ」に該当し、S57が「全条件属性組合せ記憶ステップ」に該当し、S57が「全条件属性組合せ作成ステップ」に該当し、S58〜S60が「全条件属性組合せ処理ステップ」に該当し、S63,S64が「述語論理式作成制御ステップ」に該当し、S64が「述語論理式記憶ステップ」に該当する。そして、図14の条件属性組合せ処理S74が「クラスター作成ステップ」に該当し、「第1条件属性値集合作成ステップ」に該当し、「第2条件属性値集合作成ステップ」に該当し、S76が「関係判断ステップ」に該当し、S77が「上近似集合作成ステップ」に該当し、S78が「下近似集合記憶ステップ」に該当し、S79が「近似精度算出ステップ」に該当し、S79が「有効性能評価指標算出ステップ」に該当し、S80が「述語論理式作成ステップ」に該当する。そして、図15下近似集合作成処理のS105が「第1近似集合決定ステップ」に該当し、S106が「第第2近似集合決定ステップ」に該当し、S110〜S117が「第3近似集合決定ステップ」に該当し、S120,S127が「不作成ステップ」に該当し、S126が「第4近似集合決定ステップ」に該当する。そして、図33の仕訳処理のS201が「取引データ入力ステップ」に該当し、S201〜S06が「仕訳ステップ」に該当し、S206が「仕訳結果記憶ステップ」に該当する。   13 corresponds to the “event data input step”, S52 corresponds to the “event data storage step”, S57 corresponds to the “all condition attribute combination storage step”, and S57. Corresponds to “all condition attribute combination creation step”, S58 to S60 correspond to “all condition attribute combination processing step”, S63 and S64 correspond to “predicate logical expression creation control step”, and S64 corresponds to “predicate logic step”. Corresponds to “formula storage step”. 14 corresponds to the “cluster creation step”, corresponds to the “first condition attribute value set creation step”, corresponds to the “second condition attribute value set creation step”, and S76. This corresponds to the “relationship determination step”, S77 corresponds to the “upper approximation set creation step”, S78 corresponds to the “lower approximation set storage step”, S79 corresponds to the “approximation accuracy calculation step”, and S79 corresponds to “ This corresponds to the “effective performance evaluation index calculation step”, and S80 corresponds to the “predicate formula creation step”. 15 corresponds to the “first approximate set determining step”, S106 corresponds to the “second approximate set determining step”, and S110 to S117 are the “third approximate set determining step”. S120, S127 corresponds to a “non-creation step”, and S126 corresponds to a “fourth approximate set determination step”. 33 corresponds to the “transaction data input step”, S201 to S06 correspond to the “journal step”, and S206 corresponds to the “journal result storage step”.

尚、本発明の述語論理式作成装置、会計仕訳ルール作成装置、会計仕訳装置、述語論理式作成プログラム、会計仕訳ルール作成プログラム、及び、会計仕訳プログラムは、上記した実施の形態に限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変更を加え得ることは勿論である。   The predicate formula creation device, accounting journal rule creation device, accounting journal creation device, predicate formula creation program, accounting journal rule creation program, and accounting journal program of the present invention are limited to the above-described embodiments. However, it goes without saying that various changes can be made without departing from the scope of the present invention.

上記実施の形態では、事象として会計処理における取引を例に挙げて、取引データの仕訳を行うルールを述語論理式で作成し、その述語論理式を用いて取引データを仕訳したが、本発明の述語理式作成装置及び述語論理式作成プログラムにおいて扱われるデータは会計処理の取引データに限るものでない。   In the above embodiment, transactions in accounting processing are taken as examples of events, rules for journalizing transaction data are created with a predicate logical expression, and transaction data is journalized using the predicate logical expression. Data handled in the predicate formula creation device and the predicate formula creation program is not limited to transaction data for accounting processing.

また、上記実施の形態では、コンピュータ100を「述語論理式作成装置」、「会計仕訳ルール作成装置」及び「会計仕訳装置」として機能させたが、「会計仕訳ルール作成装置」と、「会計仕訳装置」とを別々の装置としてもよいことは言うまでもない。例えば、「会計仕訳ルール作成装置」すなわち「述語論理式作成装置」で作成された述語論理式を、フレキシブルディスクやCD等の記憶媒体、LANやインターネット等のネットワークを介して、別の装置である「会計仕訳装置」へ記憶させて、利用しても良い。また、「会計仕訳装置」の「会計仕訳プログラム」において仕訳処理を行うに当たっては、述語論理式は「会計仕訳装置」に記憶されている必要はなく、ネットワークを介して接続したサーバ等の他の装置に記憶されている述語論理式を読み出してもよい。また、ASP(Application Service Provider)の装置に「述語論理式作成プログラム」、「会計仕訳ルール作成プログラム」、「会計仕訳プログラム」、述語論理式を記憶し、利用者はその装置にネットワークを介して接続してサービスの提供を受けるような形態であってもよいことは言うまでもない。   In the above embodiment, the computer 100 functions as a “predicate formula creation device”, an “accounting journal rule creation device”, and an “accounting journalization device”, but the “accounting journal rule creation device” and the “accounting journal entry”. It goes without saying that the “device” may be a separate device. For example, the predicate formula created by the “accounting rule creation device”, that is, the “predicate formula creation device”, is another device via a storage medium such as a flexible disk or CD, or a network such as a LAN or the Internet. It may be stored in the “accounting journal device” and used. In addition, when performing journal processing in the “Accounting Journaling Program” of the “Accounting Journaling Device”, the predicate logical formula does not need to be stored in the “Accounting Journaling Device”, and other servers such as servers connected via the network A predicate logical expression stored in the apparatus may be read. In addition, a predicate formula creation program, an accounting journal rule creation program, an accounting journal program, and a predicate formula are stored in an ASP (Application Service Provider) device. Needless to say, the service may be connected and provided with a service.

また、上記実施の形態では、決定属性の組合せごとに上近似集合を作成し(S77)、下近似集合を作成し(S78)、有効性評価値を算出し(S79)、述語論理式を作成して(S80)、全ての述語論理式が作成された後に(S59:YES)、基準値よりの有効性評価値の低い述語論理式を削除している(S61〜S64)。しかしながら、述語論理式の作成や削除の処理は、この流れに限らず、上近似集合及び下近似集合が作成された後であれば、有効性評価値の作成の後でなくともよい。例えば、有効性評価値を算出する前に述語論理式を作成してもよい。また、決定属性の組合せごとに行う処理は、上近似集合及び下近似集合を作成のみとし、全ての決定属性の組み合わせの上近似集合及び下近似集合が作成された後に、それらの情報を読み出して、述語論理式を作成してもよい。また、有効性評価値を算出した段階で、基準値との比較を行い、基準値よりも低い場合には述語論理式を作成しないようにしてもよい。   In the above embodiment, an upper approximation set is created for each combination of decision attributes (S77), a lower approximation set is created (S78), a validity evaluation value is calculated (S79), and a predicate logical expression is created. Then, after all the predicate logical expressions are created (S59: YES), the predicate logical expressions whose effectiveness evaluation values are lower than the reference value are deleted (S61 to S64). However, the process of creating and deleting the predicate logical expression is not limited to this flow, and may be after the validity evaluation value is created as long as the upper approximate set and the lower approximate set are created. For example, a predicate logical expression may be created before calculating the effectiveness evaluation value. In addition, the processing performed for each combination of decision attributes is only to create an upper approximation set and a lower approximation set, and after the upper approximation set and the lower approximation set of all decision attribute combinations are created, the information is read out. A predicate logical expression may be created. Further, when the effectiveness evaluation value is calculated, a comparison with the reference value is performed, and if it is lower than the reference value, the predicate logical expression may not be created.

尚、上記実施の形態では、仕訳処理36により取引データ35から仕訳結果37を作成するに留めたが、仕訳処理36の終了後や決定属性の決定後にディスプレイ114に仕訳結果を表示させ、操作者に仕訳結果を確認させるようにしてもよい。そして、操作者によりその仕訳結果が妥当であると判断された場合には、その指示をキーボード115やマウス108から入力させ、その指示の入力を受け付けた場合のみ仕訳結果記憶エリア126に仕訳結果を記憶させるようにしてもよい。また、その際に、操作者が妥当でないとの指示をキーボード115やマウス108から入力し、その入力を受け付けた場合には、決定属性(借方勘定科目、貸方勘定科目)を入力させる入力画面をディスプレイ114に表示させ、そこに入力された決定属性を仕訳結果記憶エリア126に記憶させるようにしてもよい。また、操作者が妥当でないとの入力を受け付けた場合には、当該取引データにより満たされる他の述語論理式を引き続き探索し、満たされた述語論理式により決定される決定属性を候補として表示させるようにしてもよい。また、その際には、有効性評価値の高い述語論理式により決定される決定属性から順に表示するようにしてもよい。また、満たされる述語論理式が存在しなかった場合にも、仕訳処理36の終了後や存在しなかったことが判明した後(S204:YES)に決定属性を入力させる画面をディスプレイ114に表示させ、操作者に決定属性を入力させるようにしても良い。また、企業特性ルール33の作成の参考資料として利用できるように、操作者により入力された仕訳結果を別途記憶してもよい。   In the above embodiment, the journal result 37 is generated from the transaction data 35 by the journal process 36. However, the journal result is displayed on the display 114 after the journal process 36 is finished or the decision attribute is determined, You may make it confirm the journal entry result. When the operator determines that the journal result is valid, the instruction is input from the keyboard 115 or the mouse 108, and the journal result is stored in the journal result storage area 126 only when the input of the instruction is accepted. You may make it memorize | store. At that time, an instruction that the operator is not valid is input from the keyboard 115 or the mouse 108, and when the input is accepted, an input screen for inputting a decision attribute (debit account item, credit account item) is displayed. It may be displayed on the display 114 and the decision attribute input thereto may be stored in the journal result storage area 126. If the operator receives an input that is not valid, the operator continues to search for other predicate logical expressions that are satisfied by the transaction data, and displays decision attributes determined by the satisfied predicate logical expressions as candidates. You may do it. In this case, the attributes may be displayed in order from the decision attribute determined by the predicate logical expression having a high effectiveness evaluation value. In addition, even when there is no predicate logical expression that is satisfied, a screen for inputting a decision attribute is displayed on the display 114 after the journalizing process 36 is completed or after it is determined that it does not exist (S204: YES). The operator may be allowed to input a determination attribute. In addition, the journal result input by the operator may be stored separately so that it can be used as reference data for creating the company characteristic rule 33.

本発明の述語論理式作成装置及び述語論理式作成プログラムは、種々の属性を有する事象を分類する際に有効である。   The predicate logical expression creation device and the predicate logical expression creation program of the present invention are effective in classifying events having various attributes.

述語論理式を用いたデータ分類の概念を示す模式図である。It is a schematic diagram which shows the concept of the data classification using predicate logic. ラフ集合論で用いられる決定表20の模式図である。It is a schematic diagram of the decision table 20 used by rough set theory. ルール作成の概略フローチャートである。It is a schematic flowchart of rule creation. 決定表20の条件属性aについての部分決定表21の模式図である。It is a schematic diagram of the partial determination table 21 for the condition attribute a of the determination table 20. 部分決定表21から生成されるクラスターのイメージ図である。It is an image figure of the cluster produced | generated from the partial determination table 21. FIG. 条件属性が文字列をとる場合の下近似集合のイメージ図である。It is an image figure of a lower approximation set when a condition attribute takes a character string. 条件属性が文字列をとる場合の下近似集合のイメージ図である。It is an image figure of a lower approximation set when a condition attribute takes a character string. 条件属性が数値をとる場合の下近似集合のイメージ図である。It is an image figure of a lower approximation set when a condition attribute takes a numerical value. 条件属性が数値をとる場合の下近似集合のイメージ図である。It is an image figure of a lower approximation set when a condition attribute takes a numerical value. 条件属性が数値をとる場合の下近似集合のイメージ図である。It is an image figure of a lower approximation set when a condition attribute takes a numerical value. データと処理の関連図である。It is a related figure of data and processing. コンピュータ100の電気的構成を示すブロック図である。2 is a block diagram showing an electrical configuration of a computer 100. FIG. 会計仕訳ルール作成処理のフローチャートである。It is a flowchart of an accounting journal rule creation process. 会計仕訳ルール作成処理の属性組合せ処理のフローチャートである。It is a flowchart of the attribute combination process of an accounting journal rule creation process. 属性組合せ処理の下近似集合作成処理のフローチャートである。It is a flowchart of lower approximation set creation processing of attribute combination processing. 過去仕訳結果記憶エリア121に記憶されている過去仕訳結果31に基づいて作成された決定表501の模式図である。It is a schematic diagram of the determination table 501 created based on the past journal result 31 memorize | stored in the past journal result storage area 121. FIG. 共通ルール32及び企業特性ルール33を加味した後の決定表502の模式図である。It is a schematic diagram of the determination table 502 after adding the common rule 32 and the company characteristic rule 33. 条件属性「摘要」についての部分決定表201の模式図である。It is a schematic diagram of the partial determination table 201 about the condition attribute "summary". 条件属性「摘要」についての部分決定表202の模式図である。It is a schematic diagram of the partial determination table 202 about the condition attribute "summary". 条件属性「摘要」についての部分決定表203の模式図である。It is a schematic diagram of the partial determination table 203 about the condition attribute "summary". 条件属性「摘要」についてのクラスター情報記憶エリア301の模式図である。It is a schematic diagram of the cluster information storage area 301 about the condition attribute “summary”. 条件属性「摘要」についての述語論理式情報記憶エリア302の模式図である。It is a schematic diagram of the predicate logical formula information storage area 302 for the condition attribute “summary”. 条件属性「当座預金出金」についての部分決定表211の模式図である。It is a schematic diagram of the partial determination table 211 about the condition attribute "current account withdrawal". 条件属性「当座預金出金」についての部分決定表212の模式図である。It is a schematic diagram of the partial determination table 212 for the condition attribute “current account withdrawal”. 条件属性「当座預金出金」についての部分決定表213の模式図である。It is a schematic diagram of the partial determination table 213 about the condition attribute "current account withdrawal". 条件属性「当座預金出金」についてのクラスター情報記憶エリア311の模式図である。It is a schematic diagram of the cluster information storage area 311 for the condition attribute “current account withdrawal”. 条件属性「当座預金出金」についての述語論理式情報記憶エリア312の模式図である。It is a schematic diagram of the predicate logical expression information storage area 312 for the condition attribute “current account withdrawal”. 条件属性「相手先」と「情報提供契約」との組合せについての部分決定表221の模式図である。It is a schematic diagram of the partial determination table 221 about the combination of condition attribute "destination" and "information provision contract". 条件属性「相手先」と「情報提供契約」との組合せについての部分決定表222の模式図である。It is a schematic diagram of the partial determination table 222 about the combination of condition attribute "destination" and "information provision contract". 条件属性「相手先」と「情報提供契約」との組合せについての部分決定表223の模式図である。It is a schematic diagram of the partial determination table 223 about the combination of condition attribute "destination" and "information provision contract". 条件属性「相手先」と「情報提供契約」との組合せについてのクラスター情報記憶エリア321の模式図である。It is a schematic diagram of the cluster information storage area 321 for the combination of the condition attributes “partner” and “information provision contract”. 条件属性「相手先」と「情報提供契約」との組合せについての述語論理式情報記憶エリア322の模式図である。FIG. 14 is a schematic diagram of a predicate logical expression information storage area 322 for a combination of condition attributes “partner” and “information provision contract”. 仕訳処理のフローチャートである。It is a flowchart of a journal entry process.

符号の説明Explanation of symbols

1 事象データ
2 事象データ
3 事象データ
4 事象データ
5 事象データ
6 事象データ
7 事象データ
10 事象
12 ルール
13 事象データ
20 決定表
21 部分決定表
30 会計仕訳ルール作成処理
31 過去仕訳結果
32 共通ルール
33 企業特性ルール
34 述語論理式
35 取引データ
36 仕訳処理
37 仕訳結果
100 コンピュータ
101 RAM
110 CPU
120 ハードディスク装置
121 過去仕訳結果記憶エリア
122 共通ルール記憶エリア
123 企業特性ルール記憶エリア
124 述語論理式記憶エリア
125 取引データ記憶エリア
126 仕訳結果記憶エリア
127 プログラム記憶エリア
201 部分決定表
202 部分決定表
203 部分決定表
211 部分決定表
212 部分決定表
213 部分決定表
221 部分決定表
222 部分決定表
223 部分決定表
301 クラスター情報記憶エリア
302 述語論理式情報記憶エリア
311 クラスター情報記憶エリア
312 述語論理式情報記憶エリア
321 クラスター情報記憶エリア
501 決定表
502 決定表
P クラスター
Q クラスター
1 Event data 2 Event data 3 Event data 4 Event data 5 Event data 6 Event data 7 Event data 10 Event 12 Rule 13 Event data 20 Decision table 21 Partial decision table 30 Accounting journal rule creation process 31 Past journal result 32 Common rule 33 Company Characteristic rule 34 Predicate formula 35 Transaction data 36 Journal processing 37 Journal result 100 Computer 101 RAM
110 CPU
120 Hard disk device 121 Past journal result storage area 122 Common rule storage area 123 Enterprise characteristic rule storage area 124 Predicate logical expression storage area 125 Transaction data storage area 126 Journal result storage area 127 Program storage area 201 Partial determination table 202 Partial determination table 203 Part Decision table 211 Partial decision table 212 Partial decision table 213 Partial decision table 221 Partial decision table 222 Partial decision table 223 Partial decision table 301 Cluster information storage area 302 Predicate logical expression information storage area 311 Cluster information storage area 312 Predicate logical expression information storage area 321 Cluster information storage area 501 Decision table 502 Decision table P Cluster Q Cluster

Claims (14)

複数の属性を有する事象に関して、所定の属性に基づいて各事象についてのデータを分類するためのルールである述語論理式を作成する述語論理式作成装置において、
少なくとも、分類の基準となる属性である決定属性と当該決定属性以外の属性である条件属性をデータ項目に有する、各事象についての個々のデータである事象データを入力する事象データ入力手段と、
当該事象データ入力手段により入力された複数の前記事象データを記憶する事象データ記憶手段と、
当該事象データ記憶手段に記憶されている前記事象データの所定の前記条件属性に対して、当該事象データを前記決定属性の値が同一である前記事象データの少なくとも一部のデータのまとまりの集合である第1クラスターと当該クラスターに含まれない前記事象データの少なくとも一部のデータのまとまりの集合である第2クラスターとに分類するクラスター作成手段と、
当該クラスター作成手段により作成された前記第1クラスターに含まれる前記事象データの前記所定の条件属性の値が数値である場合には、前記事象データ記憶手段に記憶されているすべての前記事象データの当該条件属性の値の最小値以上最大値以下の値を要素とする集合を第1条件属性値集合とし、当該所定の条件属性の値が文字列である場合には各前記所定の条件属性の値を要素とする集合を第1条件属性値集合とする第1条件属性値集合作成手段と、
前記クラスター作成手段により作成された前記第2クラスターに含まれる前記事象データの前記所定の条件属性の値が数値である場合には、前記事象データ記憶手段に記憶されているすべての前記事象データの当該条件属性の値の最小値以上最大値以下の値を要素とする集合を第2条件属性値集合とし、当該所定の条件属性の値が文字列である場合には各前記所定の条件属性の値を要素とする集合を第2条件属性値集合とする第2条件属性値集合作成手段と、
前記第1条件属性値集合の要素と前記第2条件属性値集合の要素とを比較し、第1条件属性値集合と前記第2条件属性値集合との要素の関係を判断する関係判断手段と、
前記関係判断手段での判断結果に基づいて前記第1条件属性値集合の所定の部分集合を下近似集合とするか、又は、下近似集合を作成せずに述語論理式を作成しないとする下近似集合決定手段と、
前記下近似集合決定手段により決定された前記下近似集合を記憶する下近似集合記憶手段と、
前記下近似集合記憶手段に記憶されている前記下近似集合について、当該下近似集合を構成する前記事象データの前記所定の条件属性の種類、前記所定の条件属性の値及び前記決定属性の値に基づいて、前記所定の条件属性が所定の値を取る際に前記決定属性がどの値を取るのかを示す述語論理式を作成する述語論理式作成手段と、
当該述語論理式作成手段により作成された前記述語論理式を記憶する述語論理式記憶手段と
を備えたことを特徴とする述語論理式作成装置。
In a predicate logical expression creation device that creates a predicate logical expression that is a rule for classifying data for each event based on a predetermined attribute for an event having a plurality of attributes,
Event data input means for inputting event data, which is individual data for each event, having at least a determination attribute that is an attribute serving as a reference for classification and a condition attribute that is an attribute other than the determination attribute in a data item;
Event data storage means for storing a plurality of the event data input by the event data input means;
For the predetermined condition attribute of the event data stored in the event data storage means, the event data is a group of at least part of the event data having the same value of the determination attribute Cluster creation means for classifying the first cluster that is a set and the second cluster that is a set of at least part of the event data not included in the cluster;
When the value of the predetermined condition attribute of the event data included in the first cluster created by the cluster creation unit is a numerical value, all the events stored in the event data storage unit are stored. A set of elements having values not less than the minimum value and not more than the maximum value of the condition attribute value of the elephant data as a first condition attribute value set, and when the value of the predetermined condition attribute is a character string, A first condition attribute value set creating means that uses a set having condition attribute values as elements as a first condition attribute value set;
When the value of the predetermined condition attribute of the event data included in the second cluster created by the cluster creation means is a numerical value, all the events stored in the event data storage means A set of elements having values not less than the minimum value and not more than the maximum value of the condition attribute values of the image data as a second condition attribute value set, and when the value of the predetermined condition attribute is a character string, A second condition attribute value set creating means that uses a set having condition attribute values as elements as a second condition attribute value set;
A relationship determining means for comparing an element of the first condition attribute value set with an element of the second condition attribute value set and determining a relationship between the elements of the first condition attribute value set and the second condition attribute value set; ,
A predetermined subset of the first condition attribute value set is set as a lower approximate set based on a determination result by the relationship determining means, or a predicate logical expression is not generated without generating a lower approximate set. An approximate set determining means;
Lower approximation set storage means for storing the lower approximation set determined by the lower approximation set determination means;
For the lower approximation set stored in the lower approximation set storage means, the type of the predetermined condition attribute of the event data constituting the lower approximation set, the value of the predetermined condition attribute, and the value of the decision attribute A predicate logical expression creating means for creating a predicate logical expression indicating which value the decision attribute takes when the predetermined condition attribute takes a predetermined value;
A predicate logical expression creation device comprising: a predicate logical expression storage means for storing a predescription logical expression created by the predicate logical expression creation means.
前記関係判断手段は、前記第1条件属性値集合の要素と前記第2条件属性値集合の要素とを比較し、前記第1条件属性値集合と前記第2条件属性値集合との要素の関係が、前記第1条件属性値集合と前記第2条件属性値集合とが重なりを有しない第1関係、前記第1条件属性値集合と前記第2条件属性値集合とが重なりを有し互いに含まれない第2関係、前記第2条件属性値集合が前記第1条件属性値集合に含まれる第3関係、又は、前記第1条件属性値集合が前記第2条件属性値集合に含まれる第4関係のいずれかであるかを判断し、
前記近似集合決定手段は、
前記関係判断手段において前記第1関係であると判断された場合に、前記第1条件属性値集合を下近似集合とする第1近似集合決定手段と、
前記関係判断手段において前記第2関係であると判断された場合に、前記重なりに含まれる要素を前記第1条件属性値集合から除いた集合を下近似集合とする第2近似集合決定手段と、
前記関係判断手段において前記第3関係であると判断された場合に、前記所定の条件属性の値が文字列である場合には、前記第1条件属性値集合から前記第2条件属性値集合を除いた集合を下近似集合とし、前記所定の条件属性の値が数値である場合には、前記第1条件属性値集合の最大値及び最小値と、前記第1条件属性値集合に含まれている前記第2条件属性値集合の値とにおいて、すべての大小関係の隣り合う2つの値についてその小さい方の値と大きい方の値とで示される範囲に含まれる前記第1条件属性値集合の要素の数を算出し、その数が最も多い隣り合う2つの値により指定される範囲に含まれる数の集合を下近似集合とする第3近似集合決定手段と、
前記関係判断手段において前記第4関係であると判断された場合に、前記所定の条件属性の値が数値である場合には、前記第1条件属性値集合の最大値及び最小値と、前記重なりに含まれる前記第2条件属性値集合の値とにおいて、すべての大小関係の隣り合う2つの値についてその小さい方の値と大きい方の値とで示される範囲に含まれる前記第1条件属性値集合の要素の数を算出し、その数が最も多い隣り合う2つの値により指定される範囲に含まれる数の集合を下近似集合とする第4近似集合決定手段と、
前記関係判断手段において前記第4関係であると判断された場合に、前記所定の条件属性の値が文字列である場合には、述語論理式を作成しないものとする不作成手段と
を備えたことを特徴とする請求項1に記載の述語論理式作成装置。
The relationship determination means compares the elements of the first condition attribute value set with the elements of the second condition attribute value set, and the relationship between the elements of the first condition attribute value set and the second condition attribute value set The first condition attribute value set and the second condition attribute value set do not overlap each other, the first condition attribute value set and the second condition attribute value set overlap each other and are included in each other A second relationship that is not included, a third relationship in which the second condition attribute value set is included in the first condition attribute value set, or a fourth relationship in which the first condition attribute value set is included in the second condition attribute value set. Determine if it ’s a relationship,
The approximate set determining means includes:
A first approximate set determining unit that uses the first condition attribute value set as a lower approximate set when the relationship determining unit determines that the first relationship is established;
A second approximate set determining unit that sets a set obtained by removing elements included in the overlap from the first condition attribute value set as a lower approximate set when the relationship determining unit determines that the second relationship is established;
When it is determined by the relationship determining means that the third relationship is established, and the value of the predetermined condition attribute is a character string, the second condition attribute value set is extracted from the first condition attribute value set. When the excluded set is a lower approximation set, and the value of the predetermined condition attribute is a numerical value, the maximum value and the minimum value of the first condition attribute value set and the first condition attribute value set are included. Of the first condition attribute value set included in a range indicated by a smaller value and a larger value of two adjacent values of all magnitude relations A third approximation set determining unit that calculates the number of elements and sets a set of numbers included in a range specified by two adjacent values having the largest number as a lower approximation set;
When it is determined by the relationship determining means that the relationship is the fourth relationship, if the value of the predetermined condition attribute is a numerical value, the maximum value and the minimum value of the first condition attribute value set and the overlap Among the values of the second condition attribute value set included in the first condition attribute value included in a range indicated by a smaller value and a larger value of two adjacent values of all magnitude relationships A fourth approximate set determining unit that calculates the number of elements of the set and sets a set of numbers included in a range specified by two adjacent values having the largest number as a lower approximate set;
A non-creating unit that does not create a predicate logical expression when the value of the predetermined condition attribute is a character string when the relationship determining unit determines that the fourth relationship is the fourth relationship; The predicate logical expression creation device according to claim 1.
前記条件属性は複数存在し、
当該事象データ記憶手段に記憶されている前記事象データの前記条件属性のすべての組合せを作成する全条件属性組合せ作成手段と、
当該全条件属性組合せ作成手段により作成された組合せを記憶する全条件属性組合せ記憶手段と、
当該全条件属性組合せ記憶手段に記憶されているすべての組合せに対して、夫々前記クラスター作成手段、前記第1条件属性値集合作成手段、前記第2条件属性値集合作成手段、前記関係判断手段、前記下近似集合決定手段及び前記述語論理式作成手段を実施する全条件属性組合せ処理手段と
を備えたことを特徴とする請求項1又は2に記載の述語論理式作成装置。
There are a plurality of the condition attributes,
All condition attribute combination creating means for creating all combinations of the condition attributes of the event data stored in the event data storage means;
All condition attribute combination storage means for storing the combination created by the all condition attribute combination creation means;
For all combinations stored in the all condition attribute combination storage means, the cluster creation means, the first condition attribute value set creation means, the second condition attribute value set creation means, the relationship determination means, 3. The predicate logical expression creation device according to claim 1, further comprising: all condition attribute combination processing means for executing the lower approximate set determination means and the previous description word logical expression creation means.
前記第1条件属性値集合を上近似集合とする上近似集合作成手段と、
当該近似集合記憶手段に記憶されている前記上近似集合に前記所定の条件属性の値が含まれる前記事象データの数である上近似事象データ数、及び、前記下近似集合に前記所定の条件属性の値が含まれる前記事象データの数である下近似事象データ数を算出し、前記下近似事象データ数を前記上近似事象データ数で割った値である近似精度を算出する近似精度算出手段と、
前記組合せ毎に、当該組合せの前記下近似事象データ数と、前記近似精度算出手段により算出された前記近似精度と、前記事象データ記憶手段に記憶されている前記事象データの数とに基づいて有効性能評価指標を算出する有効性能評価指標算出手段と、
当該有効性能評価算出手段により算出された前記有効性能評価指標の値が所定の値以下であった前記組合せについては、前記述語論理式作成手段において前記述語論理式を作成しないようにする述語論理式作成制御手段と
を備えたことを特徴とする請求項1乃至3のいずれかに記載の述語論理式作成装置。
An upper approximation set creating means having the first condition attribute value set as an upper approximation set;
The upper approximate event data number that is the number of the event data in which the value of the predetermined condition attribute is included in the upper approximate set stored in the approximate set storage means, and the predetermined condition in the lower approximate set Approximate accuracy calculation that calculates the number of lower approximate event data, which is the number of event data including attribute values, and calculates the approximate accuracy that is the value obtained by dividing the number of lower approximate event data by the number of upper approximate event data Means,
For each combination, based on the number of lower approximate event data of the combination, the approximate accuracy calculated by the approximate accuracy calculation means, and the number of event data stored in the event data storage means An effective performance evaluation index calculating means for calculating an effective performance evaluation index,
A predicate that prevents the pre-description logical formula creation means from creating a pre-description logical formula for the combination in which the value of the effective performance evaluation index calculated by the effective performance evaluation calculation means is less than or equal to a predetermined value The predicate logical expression creation device according to claim 1, further comprising: logical expression creation control means.
前記事象データ記憶手段に記憶されている前記事象データにおいて、前記所定の条件属性の値が記憶されていない場合には、前記クラスター作成手段、前記第1条件属性値集合作成手段、前記第2条件属性値集合作成手段、前記関係判断手段、前記下近似集合決定手段及び前記述語論理式作成手段を動作させないことを特徴とする請求項1乃至4のいずれかに記載の述語論理式作成装置。   In the event data stored in the event data storage means, when the value of the predetermined condition attribute is not stored, the cluster creation means, the first condition attribute value set creation means, the first 5. The predicate logical expression creation according to claim 1, wherein the two-condition attribute value set creation means, the relation determination means, the lower approximation set determination means, and the previous description word logical expression creation means are not operated. apparatus. 請求項1乃至5のいずれかに記載の述語論理式作成装置であって、
前記事象は会計処理における取引であり、
前記事象データは会計処理において発生する個々の取引に関する取引データであり、
前記決定属性の種類は借方及び貸方であり、その要素は勘定科目であり、
前記条件属性は会計取引に関する種々の関連項目であり、その要素は関連項目に関する内容であって、
所定の条件属性が所定の値を取る際に、前記決定属性である前記借方及び貸方がどの勘定科目となるのかを決定する述語論理式を作成することを特徴とする会計仕訳ルール作成装置。
The predicate logical expression creation device according to any one of claims 1 to 5,
The event is a transaction in accounting;
The event data is transaction data relating to individual transactions that occur in the accounting process,
The types of decision attributes are debits and credits, the elements of which are account items,
The condition attribute is various related items related to the accounting transaction, and its elements are contents related to the related items,
An accounting journal rule creation device for creating a predicate logical formula for determining which account item the debit and credit as the determination attributes are when a predetermined condition attribute takes a predetermined value.
会計処理において発生する個々の取引に関する取引データを入力する取引データ入力手段と、
当該取引データ入力手段により入力された前記取引データを請求項6に記載の会計仕訳ルール作成装置の前記述語論理式作成手段により作成された前記述語論理式にしたがって、前記決定属性である借方及び貸方の勘定科目を決定する仕訳手段と、
当該仕訳手段により決定された前記決定属性である借方及び貸方の勘定科目を当該取引データに関連付けて記憶する仕訳結果記憶手段と
を備えたことを特徴とする会計仕訳装置。
Transaction data input means for inputting transaction data relating to individual transactions that occur in accounting processing;
The debit of the transaction data input by the transaction data input means is the determination attribute according to the previous description word logical expression created by the previous description word logical expression creation means of the accounting journal rule creation device according to claim 6. And journalizing means to determine the credit account,
An accounting journalizing apparatus comprising: a journal result storage unit that stores the debit and credit account items, which are the determined attributes determined by the journalizing unit, in association with the transaction data.
複数の属性を有する事象に関して、所定の属性に基づいて各事象についてのデータを分類するためのルールである述語論理式を作成させる動作をコンピュータに実行させるための述語論理式作成プログラムであって、
少なくとも、分類の基準となる属性である決定属性と当該決定属性以外の属性である条件属性をデータ項目に有する、各事象についての個々のデータである事象データを入力する事象データ入力ステップと、
当該事象データ入力ステップにより入力された複数の前記事象データを事象データ記憶手段に記憶する事象データ記憶ステップと、
前記事象データ記憶手段に記憶されている前記事象データの所定の前記条件属性に対して、当該事象データを前記決定属性の値が同一である前記事象データの少なくとも一部のデータのまとまりの集合である第1クラスターと当該クラスターに含まれない前記事象データの少なくとも一部のデータのまとまりの集合である第2クラスターとに分類するクラスター作成ステップと、
当該クラスター作成ステップにより作成された前記第1クラスターに含まれる前記事象データの前記所定の条件属性の値が数値である場合には、前記事象データ記憶手段に記憶されているすべての前記事象データの当該条件属性の値の最小値以上最大値以下の値を要素とする集合を第1条件属性値集合とし、当該所定の条件属性の値が文字列である場合には各前記所定の条件属性の値を要素とする集合を第1条件属性値集合とする第1条件属性値集合作成ステップと、
前記クラスター作成ステップにより作成された前記第2クラスターに含まれる前記事象データの前記所定の条件属性の値が数値である場合には、前記事象データ記憶手段に記憶されているすべての前記事象データの当該条件属性の値の最小値以上最大値以下の値を要素とする集合を第2条件属性値集合とし、当該所定の条件属性の値が文字列である場合には各前記所定の条件属性の値を要素とする集合を第2条件属性値集合とする第2条件属性値集合作成ステップと、
前記第1条件属性値集合の要素と前記第2条件属性値集合の要素とを比較し、第1条件属性値集合と前記第2条件属性値集合との要素の関係を判断する関係判断ステップと、
前記関係判断ステップでの判断結果に基づいて前記第1条件属性値集合の所定の部分集合を下近似集合とするか、又は、下近似集合を作成せずに述語論理式を作成しないとする下近似集合決定ステップと、
前記下近似集合決定ステップにより決定された前記下近似集合を下近似集合記憶手段に記憶する下近似集合記憶ステップと、
前記下近似集合記憶手段に記憶されている前記下近似集合について、当該下近似集合を構成する前記事象データの前記所定の条件属性の種類、前記所定の条件属性の値及び前記決定属性の値に基づいて、前記所定の条件属性が所定の値を取る際に前記決定属性がどの値を取るのかを示す述語論理式を作成する述語論理式作成ステップと、
当該述語論理式作成ステップにより作成された前記述語論理式を述語論理式記憶手段に記憶する述語論理式記憶ステップと
をコンピュータに実行させることを特徴とする述語論理式作成プログラム。
A predicate formula creation program for causing a computer to execute an operation for creating a predicate formula, which is a rule for classifying data for each event based on a predetermined attribute, for an event having a plurality of attributes,
An event data input step for inputting event data, which is individual data for each event, having at least a determination attribute that is an attribute serving as a classification criterion and a condition attribute that is an attribute other than the determination attribute in a data item;
An event data storage step of storing a plurality of the event data input in the event data input step in an event data storage means;
For the predetermined condition attribute of the event data stored in the event data storage means, the event data is a collection of at least part of the event data having the same value of the determination attribute A cluster creation step of classifying the first cluster that is a set of the first cluster and the second cluster that is a set of at least part of the event data not included in the cluster;
If the value of the predetermined condition attribute of the event data included in the first cluster created by the cluster creation step is a numerical value, all the events stored in the event data storage means are stored. A set of elements having values not less than the minimum value and not more than the maximum value of the condition attribute value of the elephant data as a first condition attribute value set, and when the value of the predetermined condition attribute is a character string, A first condition attribute value set creation step in which a set having condition attribute values as elements is a first condition attribute value set;
When the value of the predetermined condition attribute of the event data included in the second cluster created by the cluster creation step is a numerical value, all the events stored in the event data storage means are stored. A set of elements having values not less than the minimum value and not more than the maximum value of the condition attribute values of the image data as a second condition attribute value set, and when the value of the predetermined condition attribute is a character string, A second condition attribute value set creation step in which a set having condition attribute values as elements is a second condition attribute value set;
A relationship determining step of comparing an element of the first condition attribute value set with an element of the second condition attribute value set and determining a relationship between the elements of the first condition attribute value set and the second condition attribute value set; ,
Based on the determination result in the relationship determination step, a predetermined subset of the first condition attribute value set is set as a lower approximate set, or a predicate logical expression is not generated without generating a lower approximate set. An approximate set determination step;
A lower approximation set storage step for storing the lower approximation set determined in the lower approximation set determination step in a lower approximation set storage means;
For the lower approximation set stored in the lower approximation set storage means, the type of the predetermined condition attribute of the event data constituting the lower approximation set, the value of the predetermined condition attribute, and the value of the decision attribute A predicate logical expression creating step for creating a predicate logical expression indicating which value the decision attribute takes when the predetermined condition attribute takes a predetermined value;
A predicate logical expression creation program for causing a computer to execute a predicate logical expression storage step of storing in a predicate logical expression storage means the predicate logical expression created by the predicate logical expression creation step.
前記関係判断ステップは、コンピュータに、前記第1条件属性値集合の要素と前記第2条件属性値集合の要素とを比較させ、第1条件属性値集合と前記第2条件属性値集合との要素の関係が、前記第1条件属性値集合と前記第2条件属性値集合とが重なりを有しない第1関係、前記第1条件属性値集合と前記第2条件属性値集合とが重なりを有し互いに含まれない第2関係、前記第2条件属性値集合が前記第1条件属性値集合に含まれる第3関係、又は、前記第1条件属性値集合が前記第2条件属性値集合に含まれる第4関係のいずれかであるかを判断させ、
前記近似集合決定ステップは、
前記関係判断ステップにおいて前記第1関係であると判断された場合に、前記第1条件属性値集合を下近似集合とする第1近似集合決定ステップと、
前記関係判断ステップにおいて前記第2関係であると判断された場合に、前記重なりに含まれる要素を前記第1条件属性値集合から除いた集合を下近似集合とする第2近似集合決定ステップと、
前記関係判断ステップにおいて前記第3関係であると判断された場合に、前記所定の条件属性の値が文字列である場合には、前記第1条件属性値集合から前記第2条件属性値集合を除いた集合を下近似集合とし、前記所定の条件属性の値が数値である場合には、前記第1条件属性値集合の最大値及び最小値と、前記第1条件属性値集合に含まれている前記第2条件属性値集合の値とにおいて、すべての大小関係の隣り合う2つの値についてその小さい方の値と大きい方の値とで示される範囲に含まれる前記第1条件属性値集合の要素の数を算出し、その数が最も多い隣り合う2つの値により指定される範囲に含まれる数の集合を下近似集合とする第3近似集合決定ステップと、
前記関係判断ステップにおいて前記第4関係であると判断された場合に、前記所定の条件属性の値が数値である場合には、前記第1条件属性値集合の最大値及び最小値と、前記重なりに含まれる前記第2条件属性値集合の値とにおいて、すべての大小関係の隣り合う2つの値についてその小さい方の値と大きい方の値とで示される範囲に含まれる前記第1条件属性値集合の要素の数を算出し、その数が最も多い隣り合う2つの値により指定される範囲に含まれる数の集合を下近似集合とする第4近似集合決定ステップと、
前記関係判断ステップにおいて前記第4関係であると判断された場合に、前記所定の条件属性の値が文字列である場合には、述語論理式を作成しないものとする不作成ステップと
をコンピュータに実行させることを特徴とする請求項8に記載の述語論理式作成プログラム。
The relationship determining step causes the computer to compare an element of the first condition attribute value set with an element of the second condition attribute value set, and to determine an element between the first condition attribute value set and the second condition attribute value set. The first condition attribute value set and the second condition attribute value set have no overlap, and the first condition attribute value set and the second condition attribute value set have an overlap. Second relation not included in each other, third relation in which the second condition attribute value set is included in the first condition attribute value set, or the first condition attribute value set is included in the second condition attribute value set To determine if it is any of the fourth relationships,
The approximate set determination step includes:
A first approximate set determining step in which the first condition attribute value set is a lower approximate set when it is determined in the relationship determining step that the first relationship is;
A second approximate set determining step in which a set obtained by removing elements included in the overlap from the first condition attribute value set as a lower approximate set when it is determined that the second relationship is determined in the relationship determining step;
If it is determined in the relationship determination step that the third relationship is established, and the value of the predetermined condition attribute is a character string, the second condition attribute value set is extracted from the first condition attribute value set. When the excluded set is a lower approximation set, and the value of the predetermined condition attribute is a numerical value, the maximum value and the minimum value of the first condition attribute value set and the first condition attribute value set are included. Of the first condition attribute value set included in a range indicated by a smaller value and a larger value of two adjacent values of all magnitude relations Calculating a number of elements, and a third approximation set determining step in which a set of numbers included in a range specified by two adjacent values having the largest number is set as a lower approximation set;
If it is determined in the relationship determination step that the relationship is the fourth relationship, and the value of the predetermined condition attribute is a numerical value, the maximum value and the minimum value of the first condition attribute value set and the overlap Among the values of the second condition attribute value set included in the first condition attribute value included in a range indicated by a smaller value and a larger value of two adjacent values of all magnitude relationships Calculating the number of elements of the set, and a fourth approximate set determining step in which the set of numbers included in the range specified by two adjacent values having the largest number is the lower approximate set;
When it is determined that the relationship is the fourth relationship in the relationship determination step, if the value of the predetermined condition attribute is a character string, a non-creation step that does not create a predicate logical expression is 9. The predicate logical expression creation program according to claim 8, wherein the predicate logical expression creation program is executed.
前記条件属性は複数存在し、
当該事象データ記憶手段に記憶されている前記事象データの前記条件属性のすべての組合せを作成する全条件属性組合せ作成ステップと、
当該全条件属性組合せ作成ステップにより作成された組合せを全条件属性組合せ記憶手段に記憶する全条件属性組合せ記憶ステップと、
当該全条件属性組合せ記憶手段に記憶されているすべての組合せに対して、夫々前記クラスター作成ステップ、前記第1条件属性値集合作成ステップ、前記第2条件属性値集合作成ステップ、前記関係判断ステップ、前記下近似集合決定ステップ及び前記述語論理式作成ステップを実施する全条件属性組合せ処理ステップと
をコンピュータに実行させることを特徴とする請求項8又は9に記載の述語論理式作成プログラム。
There are a plurality of the condition attributes,
An all condition attribute combination creating step for creating all combinations of the condition attributes of the event data stored in the event data storage means;
An all-condition attribute combination storage step for storing the combination created by the all-condition attribute combination creating step in the all-condition attribute combination storage means;
For all combinations stored in the all condition attribute combination storage unit, the cluster creation step, the first condition attribute value set creation step, the second condition attribute value set creation step, the relationship determination step, 10. The predicate formula creation program according to claim 8 or 9, causing a computer to execute the lower approximate set determination step and the precondition word formula creation step.
前記第1条件属性値集合を上近似集合とする上近似集合作成ステップと、
当該近似集合記憶手段に記憶されている前記上近似集合に前記所定の条件属性の値が含まれる前記事象データの数である上近似事象データ数、及び、前記下近似集合に前記所定の条件属性の値が含まれる前記事象データの数である下近似事象データ数を算出し、前記下近似事象データ数を前記上近似事象データ数で割った値である近似精度を算出する近似精度算出ステップと、
前記組合せ毎に、当該組合せの前記下近似事象データ数と、前記近似精度算出ステップにより算出された前記近似精度と、前記事象データ記憶手段に記憶されている前記事象データの数とに基づいて有効性能評価指標を算出する有効性能評価指標算出ステップと、
当該有効性能評価算出ステップにより算出された前記有効性能評価指標の値が所定の値以下であった前記組合せについては、前記述語論理式作成ステップにおいて前記述語論理式を作成しないようにする述語論理式作成制御ステップと
をコンピュータに実行させることを特徴とする請求項8乃至10のいずれかに記載の述語論理式作成プログラム。
An upper approximation set creating step in which the first condition attribute value set is an upper approximation set;
The upper approximate event data number that is the number of the event data in which the value of the predetermined condition attribute is included in the upper approximate set stored in the approximate set storage means, and the predetermined condition in the lower approximate set Approximate accuracy calculation that calculates the number of lower approximate event data, which is the number of event data including attribute values, and calculates the approximate accuracy that is the value obtained by dividing the number of lower approximate event data by the number of upper approximate event data Steps,
For each combination, based on the number of lower approximate event data of the combination, the approximate accuracy calculated by the approximate accuracy calculation step, and the number of event data stored in the event data storage means An effective performance evaluation index calculating step for calculating an effective performance evaluation index,
A predicate that does not create a pre-description logical formula in the pre-description logical formula creation step for the combination in which the value of the effective performance evaluation index calculated by the effective performance evaluation calculation step is less than or equal to a predetermined value The predicate logical expression creation program according to any one of claims 8 to 10, wherein the computer executes the logical expression creation control step.
前記事象データ記憶手段に記憶されている前記事象データにおいて、前記所定の条件属性の値が記憶されていない場合には、前記クラスター作成ステップ、前記第1条件属性値集合作成ステップ、前記第2条件属性値集合作成ステップ、前記関係判断ステップ、前記下近似集合決定ステップ及び前記述語論理式作成ステップをコンピュータに実施させないことを特徴とする請求項8乃至11のいずれかに記載の述語論理式作成プログラム。   In the event data stored in the event data storage means, when the value of the predetermined condition attribute is not stored, the cluster creation step, the first condition attribute value set creation step, the first The predicate logic according to any one of claims 8 to 11, wherein the computer does not execute a two-condition attribute value set creation step, the relation determination step, the lower approximation set determination step, and the previous description word logical expression creation step. Formula creation program. 請求項8乃至12のいずれかに記載の述語論理式作成プログラムにおいて、
前記事象は会計処理における取引であり、
前記事象データは会計処理において発生する個々の取引に関する取引データであり、
前記決定属性の種類は借方及び貸方であり、その要素は勘定科目であり、
前記条件属性は会計取引に関する種々の関連項目であり、その要素は関連項目に関する内容であって、
所定の条件属性が所定の値を取る際に、前記決定属性である前記借方及び貸方がどの勘定科目となるのかを決定する述語論理式の作成をコンピュータに実行させることを特徴とする会計仕訳ルール作成プログラム。
In the predicate logical expression creation program according to any one of claims 8 to 12,
The event is a transaction in accounting;
The event data is transaction data relating to individual transactions that occur in the accounting process,
The types of decision attributes are debits and credits, the elements of which are account items,
The condition attribute is various related items related to the accounting transaction, and its elements are contents related to the related items,
Accounting journal rule characterized in that when a predetermined condition attribute takes a predetermined value, the computer executes creation of a predicate logical expression that determines which account item the debit and credit as the determination attributes are Creation program.
会計処理において発生する個々の取引に関する取引データを入力する取引データ入力ステップと、
当該取引データ入力ステップにより入力された前記取引データを請求項13に記載の会計仕訳ルール作成プログラムの前記述語論理式作成ステップにより作成された前記述語論理式にしたがって、前記決定属性である借方及び貸方の勘定科目を決定する仕訳ステップと、
当該仕訳ステップにより決定された前記決定属性である借方及び貸方の勘定科目を当該取引データに関連付けて記憶する仕訳結果記憶ステップと
をコンピュータに実行させることを特徴とする会計仕訳プログラム。
A transaction data entry step for entering transaction data for individual transactions that occur in accounting;
The debit which is the decision attribute is the transaction data input in the transaction data input step according to the predescription word formula created by the predescription word formula creation step of the accounting journal entry rule creation program according to claim 13. Journal steps to determine the credit and credit accounts;
An accounting journal program that causes a computer to execute a journal result storage step of storing the debit and credit account items that are the determined attributes determined in the journal step in association with the transaction data.
JP2004378628A 2004-12-28 2004-12-28 Predicate formula creation device, accounting journal rule creation device, accounting journal device, predicate formula creation program, accounting journal rule creation program, and accounting journal program Expired - Fee Related JP4709543B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004378628A JP4709543B2 (en) 2004-12-28 2004-12-28 Predicate formula creation device, accounting journal rule creation device, accounting journal device, predicate formula creation program, accounting journal rule creation program, and accounting journal program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004378628A JP4709543B2 (en) 2004-12-28 2004-12-28 Predicate formula creation device, accounting journal rule creation device, accounting journal device, predicate formula creation program, accounting journal rule creation program, and accounting journal program

Publications (2)

Publication Number Publication Date
JP2006185219A true JP2006185219A (en) 2006-07-13
JP4709543B2 JP4709543B2 (en) 2011-06-22

Family

ID=36738285

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004378628A Expired - Fee Related JP4709543B2 (en) 2004-12-28 2004-12-28 Predicate formula creation device, accounting journal rule creation device, accounting journal device, predicate formula creation program, accounting journal rule creation program, and accounting journal program

Country Status (1)

Country Link
JP (1) JP4709543B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008102829A (en) * 2006-10-20 2008-05-01 Yoshizo Hashimoto Accounting data input system and program for accounting data input
JP2024178845A (en) * 2023-06-13 2024-12-25 株式会社オービック Business support device, business support method, and business support program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06175994A (en) * 1992-07-20 1994-06-24 Nec Corp Sorting device using probability logic in disjunctive normal form
JP2000194721A (en) * 1998-12-24 2000-07-14 Ricoh Co Ltd Document group classification device and document group classification method
JP2001101199A (en) * 1999-09-29 2001-04-13 Fuji Xerox Co Ltd Document processor
JP2004021350A (en) * 2002-06-12 2004-01-22 Alliance Group Inc Data latent rule extraction device, data latent rule extraction method and data latent rule extraction program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06175994A (en) * 1992-07-20 1994-06-24 Nec Corp Sorting device using probability logic in disjunctive normal form
JP2000194721A (en) * 1998-12-24 2000-07-14 Ricoh Co Ltd Document group classification device and document group classification method
JP2001101199A (en) * 1999-09-29 2001-04-13 Fuji Xerox Co Ltd Document processor
JP2004021350A (en) * 2002-06-12 2004-01-22 Alliance Group Inc Data latent rule extraction device, data latent rule extraction method and data latent rule extraction program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008102829A (en) * 2006-10-20 2008-05-01 Yoshizo Hashimoto Accounting data input system and program for accounting data input
JP2024178845A (en) * 2023-06-13 2024-12-25 株式会社オービック Business support device, business support method, and business support program
JP7712979B2 (en) 2023-06-13 2025-07-24 株式会社オービック Business support device, business support method, and business support program

Also Published As

Publication number Publication date
JP4709543B2 (en) 2011-06-22

Similar Documents

Publication Publication Date Title
US7940899B2 (en) Fraud detection, risk analysis and compliance assessment
Muûls et al. Imports and Exports at the Level of the Firm: Evidence from Belgium
Srinivasan et al. CGX: An expert support system for credit granting
JP6049799B2 (en) Management support program
JP2020035440A (en) Business card related information providing method, enterprise value determination method, business card information providing method, business card value determination method, business card related information providing device, enterprise value determination device, business card information providing device, business card value determination device and computer program
Aryanezhad et al. A BSC-DEA approach to measure the relative efficiency of service industry: A case study of banking sector
Amin et al. Application of optimistic and pessimistic OWA and DEA methods in stock selection
JP3143974U (en) Accounting information system
JP6528074B1 (en) Accounting processor, accounting method, accounting program
JP2008033643A (en) Checking and matching method and checking and matching support system
Zandi et al. TOWARDS CRISES PREVENTION: FACTORS AFFECTING LENDING BEHAVIOUR.
US11941064B1 (en) Machine learning comparison of receipts and invoices
JP4709543B2 (en) Predicate formula creation device, accounting journal rule creation device, accounting journal device, predicate formula creation program, accounting journal rule creation program, and accounting journal program
Trần et al. Impact of bank credit on exports to Association of South East Asian Nations countries: Empirical study of Vietnam
Mints et al. Hierarchical fuzzy method of comparing bank products with complex tariff packages
JP6402397B1 (en) Accounting device, accounting method, accounting program
JP2003108598A (en) Law database browsing method and system, data recording medium and program
CN102147879A (en) Method for generating accounting vouchers from accounting events through computer programs
JP4870910B2 (en) Linkage management information generation system, link management information generation method, and link management information generation program
JP2009134375A (en) Financing examination support system and its method
Wang [Retracted] Analysis and Application of Quality Indicators in Hospital Administrative Management Based on a Fuzzy Hierarchical Model
KR20200034857A (en) An apparatus and method for managing transaction information providing automatic matching between accounts receivables and deposit information
US20190035017A1 (en) Generating payables and receivables netting proposals based on historical information
JP4722381B2 (en) Financial analysis apparatus, financial analysis method, and financial analysis program
Pearson et al. International countertrade: has purchasing's role really changed?

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071005

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20080212

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100817

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101014

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110315

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110318

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees