Representation of deep case meanings using labeled Petri nets
Petri-net-based Knowledge Transitive Networks convert natural language into structured databases, addressing inefficiencies in existing systems by accurately representing deep meanings and enabling context-aware logical inference.
Patent Information
- Application Number
- JP2020011215
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-01-09
- Publication Date
- 2024-09-12
- Estimated Expiration
- 2040-01-09
AI Technical Summary
Existing natural language processing systems struggle to accurately convert deep meanings from natural language into structured databases for logical inference, leading to inefficiencies and errors in knowledge representation and reasoning.
The use of Petri-net-based Knowledge Transitive Networks (pKTN) to convert natural language sentences into a structured database, utilizing deep cases and logical structures to represent meaning, enabling accurate logical inference and context-aware reasoning.
Enables the extraction of deep meanings from natural language and facilitates efficient, context-aware logical inference, reducing errors and improving the accuracy of knowledge representation.
Smart Images

Figure 0007549760000006 
Figure 0007549760000007 
Figure 0007549760000008
Abstract
Description
[Technical field]
[0001] In general, an inference system is composed of a knowledge base that is the premise of inference and an inference engine that extracts answers from the knowledge base. The present invention relates to an inference system based on natural language, that is, an inference system in which both the knowledge base and the query language are composed of natural language. [Background technology]
[0002] Since its birth in the 1950s, research into artificial intelligence (AI) has focused on the "symbol processing approach," which attempts to handle human-controlled words and symbols on a computer. This approach was most actively studied in the 1980s, when AI experienced its second boom. Expert systems (Non-Patent Document 1), which attracted the attention of researchers at the time, expressed expert knowledge as if-then rules, making it possible to perform logical inference by combining a large number of rules. Expert systems use formal knowledge expressed in words to deal with problems that require deep inference and are difficult to describe using existing algorithms, and can be said to be the first AI system to combine language and inference.
[0003] However, this expert system has several implementation problems. The first problem is the problem of describing the rules. The knowledge (rules) of an expert system are expressed in a formal if-then language (text), which is far removed from the natural language used by humans. Building the knowledge that an expert system handles requires a great deal of effort from experts with programming skills, and it has been impossible to avoid the so-called "knowledge acquisition bottleneck problem." The second problem is the efficiency of inference. In the forward inference carried out by expert systems, facts are explosively generated in the working memory. When the inference is deep, this creates serious implementation problems. For these reasons, expert systems did not bear much fruit in terms of social implementation, and research into them gradually fell out of favor.
[0004] In their attempts to overcome the problems mentioned above, subsequent AI researchers have taken paths that can be broadly divided into two, based on differences in methodology. The first approach is to manually create a knowledge base from natural language. The knowledge base referred to here is not in a flat text format like those used in expert systems. It is a database that is "structured" in the same way as the cellular networks that represent knowledge in the human brain, and with the aim of building such a network-style knowledge base, text sentences are tagged with pointers (links) that represent the relationships between words and concepts in a human-wave manner. This has also been actively researched as a means of structuring web knowledge on the Internet, which has been in widespread use since around 2000, and continues to this day. This research is summarized in Table 1. In the table, the superiority or inferiority of each method in each category is indicated with ◎ (very superior), ○ (superior), △ (no superiority), and × (inferior).
[0005] [Table 1]
[0006] The pioneering research of this approach is Semantic Networks (SN) (Non-Patent Documents 1, 3). SN constructs a network in a relatively simple and naive way, connecting concept nodes with edges that represent relationships such as 'is' and 'has'. Although the expressive power of SN is equivalent to that of first-order predicate logic (FOL), the construction of SN is ad-hoc and difficult to predict, and inference is limited to a simple process of structure matching between a knowledge graph and a query graph. The "Conceptual Graph" (CG) (Non-Patent Document 4) proposed by Sowa is a more sophisticated version of SN, and succeeded in eliminating edge labels by providing two types of nodes: concept nodes and conceptual relation nodes representing case. This improved the homogeneity of the graph and clarified the correspondence with FOL, but it has problems such as the need for graph structuring (nesting) to express implication. However, the method of describing clauses by conjunctions of (1) argument predicates (concepts) and (2) argument predicates (concept relations) introduced in CG became a standard for converting natural language to FOL. CG is also the root of Google's recent "Knowledge Graph" (Non-Patent Document 8).
[0007] As an extension of this research, today, several projects (DBpedia, Freebase, UMBEL, etc.) are running to build knowledge bases based on text information on the Web. The main description tools used in these projects, Resource Description Framework (RDF) and Web Ontology Language (OWL), set simple logical units such as `SVO triples' as the units of expression in order to construct graphs, and therefore take the position that they do not extract `deep' meanings from texts. Also, Description Logic (DL) (Non-Patent Documents 2, 7), which provides the theoretical foundation of OWL, limits the description target to a part of first-order predicate logic (FOL), that is, logic that does not include predicates with three or more arguments or function symbols, while providing a rich symbol library to increase user friendliness. In that sense, today's approach to building natural language knowledge bases by human wave tactics sacrifices some logical expression ability, but takes a method of describing a structured (graphed) database in a simple and easy-to-understand way.
[0008] The second way to solve the bottleneck of knowledge acquisition in expert systems is research into "natural language processing," which aims to automatically process natural language using computers. So-called "natural language understanding" has attracted attention since the early days of AI research, and prototypes have been created that can converse with humans in certain limited situations, but it is only relatively recently that natural language processing has attracted significant social attention as a feasible technology. This approach does not necessarily involve building a structured database from natural language, but instead converts natural language sentences into a unique expression format that is appropriate to the method. The flow of this research is summarized in Table 2.
[0009] [Table 2]
[0010] In natural language processing based on "shallow semantic representation," statistical information about words and keywords is extracted from natural language sentences and analyzed (Ji jkoun & Ri jke 2005, among many others). This is largely due to the "connectionism approach," which has been attempted separately from the "symbol processing approach," and its extensions, such as machine learning (Non-Patent Document 1) and deep learning. Text written in natural language is converted into mathematical expressions such as word frequency vectors and feature vectors, and statistical analysis is performed using tools such as R. Commercial text mining tools that implement this technology are highly robust in extracting information, but the black-box knowledge is not explicit and the deeper meaning of the text cannot be understood. These tools are excellent at analyzing free-form text such as reviews, questionnaires, and word-of-mouth, and roughly grasping the contents and trends contained therein, and there are many examples of their application.
[0011] Meanwhile, "Watson" developed by IBM is based on shallow semantic representation, but also incorporates semantic correction and learning functions, and is able to provide answers to questions with priorities set by answer parameters based on document information provided by the customer. However, from the perspective of social implementation, many technical issues remain, such as the large amount of resources and time required for adjusting machine learning parameters and building a teaching corpus, as well as the high frequency of incorrect answers, and in actual applications, it is only used for knowledge discovery and extraction from large amounts of reported documents such as papers and patent documents.
[0012] At the other extreme, natural language processing based on "deep semantic representation" (CCG + Montague semantics) has the ability to express deep logic using higher-order logic such as intensional logic and typed dynamic logic as a way to express the meaning of language, but sequential inference processing based on lambda expressions lacks robustness (Montague 1974, Toji 2006, "Can a Robot Get into Tokyo University?" Project Mathematics Department Team 2011, etc.). In addition, lambda expressions used for semantic representation are not structured. As described above, "shallow semantic representation" and "deep semantic representation" have advantages and disadvantages in terms of expressive ability and inference, but there is a different approach, which can be called "simplified semantic representation", called Concept Dependency Theory (Schank 1975, etc.). In this theory, the meaning of a sentence can be expressed independent of the language type by graphing the meaning contained in natural language using only 11 basic verbs. Although the data format of Concept Dependency Theory is graph-structured, it cannot express logically deep meaning, and the inference rules are also limited. [Prior art documents] [Non-patent literature]
[0013] [Non-Patent Document 1] Ichiro Kobayashi: Fundamentals of Artificial Intelligence. Science Press (2008) [Non-Patent Document 2] Baader, F., Horrocks, I., Sattler, U.: Chapter 3 Description Logics. In: van Harmelen, F., Lifschitz, V., Porter, B. (eds.): Handbook of Knowledge Representation. Elsevier (2007) [Non-Patent Document 3] Randal, DM: Semantic Networks. In: Ringland, GA, Duce, DA (Eds.): Knowledge Representation-An Introduction. Research Studies Press, Ltd. (1988) Chapter 3, pp. 45-80 [Non-Patent Document 4] Sowa, JF: Conceptual Structures: Information Processing in Mind and Machine. Addison-Wesley: Reading, MA. (1984) [Non-Patent Document 5] Suzuki, H., Yoshida, M., Sawai, H.: A network representation of first-order logic that uses token evolution for inference. Journal of Information Science and Engineering (JISE) 30(3) (2014) 669-686 [Non-Patent Document 6] Hideaki Suzuki: A Petri Net-Based Inference Model for Representing Logic and Language Commonly. Proceedings of the Society of Instrument and Control Engineers, Systems and Information Division, Academic Conference (SSI-2014). (2014) GS11-6, pp.254-260 [Non-Patent Document 7] Akama Seiki: Introduction to the Semantic Web. Cut Systems (2011) [Non-Patent Document 8] Zhang, L.: Knowledge graph theory and structural parsing. Thesis, Twente University Press (2002) [Non-Patent Document 9] Minoru Harada: “Semantic Analysis Opens the World of Natural Language Processing”, NICT-EDR Symposium, 8, National Institute of Information and Communications Technology (NICT) (April 2007). [Non-Patent Document 10] Hideaki Suzuki: Logical Networks Representing FOL: An Attempt at Transformation from Dependency Structures. Proceedings of the 21st Annual Conference of the Association for Natural Language Processing (2015) 976-979 [Non-Patent Document 11] Kenji Yoshimura: Fundamentals of Natural Language Processing. Science Press (2000) Summary of the Invention [Problem to be solved by the invention]
[0014] Representing natural language in a graph-structured database has two major advantages: ease of viewing and parallel distribution. A graph structure is an ideal tool for describing semantic connections between words or concepts, and all processing on a graph structure can be decomposed into local operations on nodes and arcs, which can be carried out in a parallel and distributed manner. The natural language processing approaches we have seen so far have been developed without necessarily focusing on this graph structure, and therefore have problems such as knowledge not being explicit and deep inference not being possible (shallow semantic representation), and inference being sequential and vulnerable to errors (deep semantic representation). If we could automatically convert natural language into some kind of structured database and then perform logical inference on it, we could create a system that solves both the non-explicitness of knowledge and the vulnerability of inference.
[0015] When trying to graph the meaning of natural language and create a structured database, the first method that comes to mind is the generation of a tree graph using deep cases (Non-Patent Document 11). Harada et al. have proposed a method that converts natural language sentences into a semantic graph that includes relationships between words, taking into account not only simple dependency structures but also deep cases, and also considers vocabulary from a large-scale dictionary and the similarity of deep cases between words in addition to comparing structures based on graph structure matching for inference (Non-Patent Document 9). However, these methods do not reduce the deep meaning of language to logic, but are merely auxiliary tools for advancing inference by structure matching by visualizing case relationships in a graph. Methods that perform inference by matching cannot handle deep logical inference, and have problems in that they cannot perform deductive inference, such as combining multiple pieces of universal knowledge to derive an answer.
[0016] On the other hand, the inventors have recently proposed a description format called pKTN (Petri-net-based Knowledge Transitive Network) as a graph representation of Horn clause sets, which are part of first-order predicate logic (FOL) (Non-Patent Documents 5, 6). pKTN is a Petri net in which constants, variables, function symbols, and predicates of FOL are expressed as places, and deduction (backward inference) on it can be formulated as a search of a subgraph in a Petri net expanded from pKTN and consistency (unification) between constraints. As an algorithm for solving this, the inventors have also proposed a method called ELISE (ELiminating Inconsistency by SElection) that uses local parallel propagation of tokens on the network to find a unified solution along with the reliability (performing a kind of ambiguous inference) (Non-Patent Document 5). It has been reported that when there is no redundancy in the network, ELISE converges in a time approximately proportional to the number of variables.
[0017] In pKTN, a graph equivalent to the clauses of predicate logic is constructed around the predicate verbs of natural language sentences, so it is considered to have a high affinity with the dependency structure of natural language. Non-Patent Document 10 takes advantage of this and shows a simple example of converting a dependency structure graph (a dependency network with a verb predicate as the root and other words as the leaves and branches) extracted from a natural language sentence into a homogeneous pKTN without a nested structure. However, this has not yet accurately extracted the deep meaning (deep case) of natural language and converted all natural language sentences into a network. In addition, the problem of spelling variations in various languages has not been taken into consideration, and it has not been a method that absorbs the differences in various ways of expressing the same meaning and concisely extracts logic equivalent to FOL. The present invention has been made to solve the problems described above, and its purpose is to provide a method for constructing a structured database that expresses the deeper meaning of natural language sentences in the form of deep cases by automatically processing natural language sentences using a computer, and then performing logical inference on that database. [Means for solving the problem]
[0018] In one aspect of this invention, the goal is to create a database of all knowledge expressed in natural language sentences, and knowledge is described using a Petri net that corresponds one-to-one with natural sentences, but expresses meaning in deep cases rather than surface cases of natural sentences. Deep cases such as subject, verb, object, locative case, and temporal case are given to clauses based on information such as surface cases, parts of speech, destinations, and aspects, and the meaning of the sentence is expressed in detail using a pKTN graph that describes the relationship between them. By creating a semantic graph using deep cases, the logical structure becomes clear, and it becomes possible to deal with paraphrasing of natural sentences using conversion rules. Inference from structure matching or sentence dependency cannot be made when the expressions are different even if the same meaning is expressed, but on a pKTN constructed using deep cases, judgments can be made based on logical inference, and it is not affected by differences in the expressions of the sentences. Furthermore, by ranking and graphing not only a single sentence but also the document structure, inference taking into account the context may be possible. Effect of the Invention
[0019] According to this invention, logic expressing deeper meanings is extracted from sentences written in natural language that contain a mixture of mathematical formulas, tables, and bullet points, and is stored in a network-type database labeled with deep cases. Furthermore, according to the present invention, it is possible to carry out deduction and calculations on the constructed database, thereby obtaining a desired answer to a question. [Brief description of the drawings]
[0020] [Figure 1] FIG. 1 is a block diagram showing the configuration of a calculation processing device 100 according to an embodiment of the present invention. [Diagram 2] FIG. 1 is a block diagram showing the functional configuration of a calculation processing device 100 according to an embodiment of the present invention. [Diagram 3] FIG. 13 is a diagram showing a list of labels prepared in a predicate word place as aspects. [Figure 4] A diagram showing a list of labels prepared for arcs as deep cases. "Corresponding function" is the meaning of the function symbol used in the implicit Petri net that represents a tautological formula. [Diagram 5] This is a diagram showing FOL formula / logic program (1) expressed in pKTN. [Figure 6] This is a diagram showing FOL formula / logic program (2) expressed in pKTN. [Figure 7] This is a diagram showing the FOL formula / logic program (3) expressed in pKTN. [Figure 8] This is a diagram showing the FOL formula / logic program (4) expressed in pKTN. [Figure 9] FIG. 13 is a diagram showing an example of dividing a sentence into phrases and converting the surface cases contained in the phrases into deep cases. [Figure 10] FIG. 13 is a diagram showing an example of converting a surface case into a deep case based on target information. [Figure 11] This is a diagram showing the process of storing natural language sentences as knowledge in the pKTN database. [Figure 12] This is a diagram showing how pKTN links are established during inference. [Figure 13] This is a diagram of pKTN in which the question sentence pKTN and the knowledge sentence pKTN are connected by a link. [Figure 14] This is a diagram of a stretched pKTN in which a question sentence pKTN and a knowledge sentence pKTN are connected by a link and oriented. [Figure 15] This is a diagram of a stretched pKTN in which a question sentence pKTN and a knowledge sentence pKTN are connected by a link and oriented. [Figure 16] FIG. 1 is a diagram showing an example of a fact default (an implicit Petri net representing a tautology). [Figure 17] This is a diagram of pKTN in which the question sentence pKTN and the knowledge sentence pKTN are linked to the fact default by links. [Figure 18] FIG. 13 is a diagram illustrating an example of rule defaults. [Figure 19] This is a diagram of pKTN in which a question sentence pKTN is linked to a knowledge sentence pKTN via a rule default. [Figure 20] This is a diagram of pKTN in which a knowledge sentence pKTN and a question sentence pKTN are connected by a link, expressed using the outer relative case. [Figure 21] This is a diagram of pKTN, which shows the temporal order within a compound sentence by connecting the temporal cases of the compound sentence through inequality predicates. [Figure 22] FIG. 1 is a diagram showing the structure of a noun ontology. [Diagram 23] This is a diagram of pKTN in which constant places in the knowledge sentence pKTN are linked to the ontology graph so that they can be matched with superordinate terms in the question sentence pKTN. [Figure 24] FIG. 1 illustrates a document structure ontology. [Diagram 25] This is a diagram showing one of the pKTNs derived from a sentence with a conjunction expressing OR. Hanako is the negated condition. [Figure 26] This is a diagram showing one of the pKTNs derived from a sentence with a conjunction expressing OR. Taro is the negated condition. [Figure 27] This is a diagram of pKTN, which makes inferences by comparing the conditions of the knowledge sentence pKTN connected to the question sentence pKTN with other knowledge. [Figure 28] This is a diagram of pKTN in which the phrase "A's B" is expressed in the "desu" aspect, treating "no" as a function. [Figure 29] FIG. 13 is a diagram showing an example of an implicit Petri net for expressing the abbreviated meaning of the phrase "A's B." [Diagram 30] This is a diagram of a pKTN showing an example in which a question sentence pKTN, which asks about the meaning implied in the phrase "A's B," can be answered by linking it to a knowledge sentence pKTN or an implicit Petri net. [Diagram 31] This is a diagram of pKTN in which a knowledge sentence pKTN in which units are expressed by functions and a question sentence pKTN are linked together. [Diagram 32] This is a diagram showing the basic concept of a data flow graph. [Diagram 33] This is a diagram showing an example in which calculations can be performed in pKTN by assigning arithmetic functions to operators and numerical values to arguments. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0021] In the following, with reference to the drawings, a method for converting various expressions into pKTN / FOL will be described using Japanese natural language as an example, as a typical embodiment of the present invention. EXAMPLES
[0022] ·phase Modalities are what support the meaning of natural language at the very base. Modalities are equivalent to auxiliary verbs in English, and in Japanese, they usually appear at the end of a sentence to affirm / negate / modify the meaning of the sentence. Figure 3 shows an example of modalities prepared as pKTN. In this embodiment, modalities are prepared as predicates that express truth or falsehood.
[0023] ·Deep case Like predicates in ordinary first-order logic, modal predicates have one or more arguments, all of which are given deep cases. Figure 4 shows an example of a deep case. Deep cases are broadly divided into predicative cases and rhetorical cases. Predicative cases express elements such as subject, object, and action that express the meaning of a sentence, while rhetorical cases express additional information equivalent to prepositions in English.
[0024] We will show an example of converting the meaning of a Japanese sentence into a FOL formula / logic program using the above modalities and deep cases. (1) "do" ([Sb] "Taro", [V] "go", [Plc] "sea"). (Taro goes to the sea.) (2) "can" ([Sb] "Taro", [V] "make", [Od] "hat"). (Taro can make a hat.) (3) “Taro is a man.” (Taro is a man.) (4) "should" (Taro, protect, family). (Taro should protect his family.) These are also simultaneously represented as Petri net type KTNs (pKTNs).
[0025] The same example is converted to pKTN in Figures 5 to 8. In the figures, ○ indicates an argument place, and ◇ indicates a predicate place. The inference described later is performed on this pKTN.
[0026] Natural Language Analysis In order to convert Japanese natural sentences into pKTN, this embodiment assumes that the results of morphological analysis and dependency structure analysis of the natural sentences have been obtained. In a typical example, the natural sentences are divided into phrases by morphological analysis, and the morphemes in the phrases are tagged with parts of speech (nouns, verbs, ...), attributes (numbers, times, place names, ...), and surface cases (ga case, ni case, ...). In addition, dependency relationships between phrases are extracted by dependency structure analysis. Figure 9 shows the result of morphological analysis of the sentence "Taro meets Hanako at 9 o'clock." As shown in this example, by preparing appropriate conversion rules, it is possible to recognize deep cases from parts of speech, attributes, and surface cases, and the deep cases obtained in this way are shown after the second arrow in each line of Figure 9. It is noteworthy that the two dyadic phrases "at 9 o'clock" and "to Hanako" are converted to Tim and Oi cases, respectively, but these can only be clearly distinguished by taking into account not only the surface cases but also additional information such as parts of speech and attributes.
[0027] As an example of deep case recognition only possible with the addition of dependency structure analysis results, we will next take up the example of passive sentence conversion. The active sentence "Hanako confessed to Taro" and the passive sentence "Taro was confessed to by Hanako" both express the same meaning, so it is desirable to convert these into the same pKTN if possible. For this reason, in this embodiment, the passive modal "sareru" is not included in the modal list (Figure 3), and when a passive sentence is read, the active sentence of that sentence is inferred and the deep case therein is recognized by the conversion rules. Figure 10 shows an example of doing so. In this example, the target of the ga-case "Taro wa" is "confessed" ("he confessed"), which is in the passive voice, so the deep case of the ga-case is recognized as the Oi-case. Also, the target of the ni-case "Hanako ni" is "confessed" ("he confessed"), which is in the passive voice, so the ni-case is recognized as the Sb-case. This example shows that the ga-case / ni-case do not simply become Sb-case / Oi-case, but can be recognized as different deep cases depending on the attributes of the target.
[0028] As can be seen from this example, when attempting to accurately extract meaning from natural language sentences and apply it to logic in the present invention, it is essential to prepare detailed conversion rules that include various exception handling procedures.
[0029] FIG. 11 shows a typical implementation for doing this. Detailed conversion rules are not written directly into the conversion program, but the conversion program reads a separately prepared conversion rule base to perform exception processing based on case distinctions. By manually preparing a set of conversion rules using an appropriate interface, the network generation unit can extract logic accurately.
[0030] Links for inference To use pKTN for inference, first, pKTNs for the knowledge sentence and question sentence must be created. All pKTNs created at this stage are undirected. The question sentence pKTN is created by determining the deep case of the interrogative word from morphological analysis, dependency structure analysis, and rules, and putting "_q" as the question variable in the deep case argument. Next, a link is created between the predicate places of the created question sentence pKTN and the corresponding knowledge sentence pKTN. To select the corresponding knowledge sentence pKTN, we refer to the cases that take constant arguments in the question sentence pKTN, and select the knowledge sentence pKTN whose modality and deep case arguments match. At this time, we do not require that the number of deep cases match.
[0031] Figure 12 shows the pKTN for the question "What did Taro buy?" In the question pKTN, "what" is an interrogative + wo case, so "_q" is inserted into the Od case, "Taro" is placed in the Sb case, and "buy" is placed in the V case. The condition for the knowledge sentence to be linked is that the modal aspect, Sb case, and V case match. Figure 13 shows the link to the knowledge sentence pKTN for this condition. The knowledge sentence here is "Taro gives the ring he bought to Hanako."
[0032] Directed and Undirected Petri Nets In one aspect of the present invention, logical reasoning on pKTN is backward reasoning starting from a question, which is formulated as a breadth-first search on an AND / OR tree rooted at the question pKTN. The tree is oriented from the root to the leaves, so to make reasoning on pKTN, it is necessary to change all the arcs of the linked question and knowledge sentences pKTN to directed ones. Examples are shown in Figures 14 and 15. In Figures 14 and 15, the knowledge sentence pKTN corresponding to the compound sentence (a sentence having multiple verbs / predicates) "Taro gives the ring he bought to Hanako" is oriented in the opposite direction when it is connected to the different question sentences pKTN, "What did Taro buy?" and "What did Taro give?" As shown here, in the present invention, a compound sentence in a natural language, which generally has an unclear condition-consequence relationship, is made into a knowledge sentence pKrN as an undirected Petri net, and is made oriented after being connected to the question sentence pKTN by a link.
[0033] ·Factual default Backward inference in first-order predicate logic / Horn clause logic cannot be completed without a fact clause that makes the atoms in the body of the rule clause true. In the real world that natural language sentences target, there are many common senses and assumptions that are not explicitly stated in the natural language. By preparing fact clauses and rule clauses that represent them as implicit Petri nets (default), pKTN inference can be completed for the first time.
[0034] Figure 16 is an example of a default prepared for this purpose. This expresses the meaning "x does y to [object for which x does y]", and holds true no matter what words that fit the deep case are placed in the variables x and y (always true). By connecting this default to Figure 14, the pKTN in Figure 17 is generated, and an inference that starts with "_q" on this is completed with the knowledge proven to be correct by default. The answer obtained is "q=ring" or "q=object ([Sb]Taro,[V]give) (it is what Taro gave)".
[0035] · Rule Default In natural language sentences, by making some verbs antonyms and swapping the deep cases, the meaning of the sentence becomes the same as before the swap. For example, if the sentence "Taro gives Hanako a ring" is converted into a FOL / logic program, "to do" ([Sb] "Taro", [V] "to give", [Od] "ring", [Oi] "Hanako"). However, you can change the V-case of the deep case from "give" to "receive" and switch it to "Oi → Sb" and "Sb → Src". "to do" ([Sb] "Hanako", [V] "to receive", [Od] "ring", [Src] "Taro"). means "Hanako receives a ring from Taro," and the meaning of the sentence remains the same as before it was changed. A situation in which such a rephrasing is necessary occurs, for example, when the knowledge "Taro gives Hanako a ring" is used and the question "What did Hanako receive from Taro?" is asked. In this case, simply connecting the knowledge sentence pKTN and the question sentence pKTN will not be enough to answer the question because the deep cases will not match. Therefore, in order to execute this deep case exchange, we prepare an implicit Petri net (rule default) that represents a paraphrase of "y gives z to x ⇔ x receives z from y" as shown in Figure 18.
[0036] By inserting the default in Figure 18 between the question sentence pKTN and the knowledge sentence pKTN as in Figure 19, the pKTN inference becomes complete.
[0037] - Expression of compound sentences using the "external relative case" Natural language contains many compound sentences. “Taro gives the ring he bought to Hanako.” shown in Figure 12 is an example of a compound sentence. In this case, the pKTNs corresponding to the two predicates “buy” and “give” are connected via the variable x, which is connected to the concept of “ring”, and are expressed as a single pKTN. However, there are many compound sentences that do not share a common word. For example, the sentence "Taro hears that Hanako is getting married" does not share a common word. In cases like this example, by using the "outer relative case", it is possible to express the compound sentence in a logic program without losing its meaning. The "outer relative case" (Out case) has the function of grouping together all of the predicates that have it. Therefore, a compound sentence can be expressed by preparing an Out case for the sub-sentences that make up the compound sentence, and a case that receives it in the main sentence, and connecting them with a common variable. In the above example, by setting an Out case for the sub-sentence "Hanako is getting married" and receiving it with the objective case of "Taro listens", the FOL formula / logic program becomes: "to do" ([Sb] "Taro", [V] "listen", [Od]_x1), "to do" ([Sb] "Hanako", [V] "get married", [Out]_x1). This is expressed as: Figure 20 shows how the pKTN representing this is connected to the question pKTN "What will Taro ask?"
[0038] The external relative case can be combined with various rhetorical cases such as time, place, means, condition, cause, and purpose in addition to the Od case, and can express various semantic connections between the subject and subordinate clauses. For example, if the two clauses are connected by the conjunction "if", a conditional case can be used, and if the two clauses are connected by "therefore", a complex sentence can be expressed by connecting the causal case and the external relative case. There are also compound sentences that express a time order. When expressing a time order, a pKTN is created by combining an inequality predicate with an Rg case and an Lf case. For example, in the sentence "Taro drinks beer before going to bed," a pKTN is created as shown in Figure 21. By connecting the Tim cases of each verb with an inequality sign, the order of the actions can be expressed. Here, "_t1" and "_t2" are examples of variable places that represent numbers.
[0039] About Ontology In the previous examples, words such as "Taro," "ring," and "buy" were written directly in the constant places of pKTN. However, if the knowledge sentence "Taro has a car" is asked "Does Taro have a car?" and the answer cannot be given because the words do not match, this is inconvenient. Similar problems occur not only between synonyms such as "car" and "car," but also between hypernyms and hyponyms. For example, when the knowledge sentence "Taro drives an electric car" is asked "Does Taro drive a car?", it is problematic that the answer cannot be given because "electric car" and "car" are not recognized as being related. In this invention, this problem is solved by treating the terms that fit into the constant places of pKTN as concepts, and preparing a synonym list that represents the correspondence between concepts and words, and an ontology that represents the hierarchical / subordinate relationships of concepts. An example of an ontology (represented here as words for simplicity) is shown in Figure 22.
[0040] As can be seen in Figure 22, "automobile" is a hyponym of "car," and "electric car" is a hyponym of "automobile," so we can see that "electric car" is a member of the "car" family. As a method for using this ontology in pKTN inference, this embodiment shows a method in which a network database representing the ontology is prepared separately and inference is carried out while referring to it. Figure 23 shows the pKTN when the question "What kind of car did Taro drive?" is asked for the knowledge sentence "Taro drove an electric car." Although "car" and "electric car" are not the same word, when tracing back to the ontology of "electric car," "car" exists. Therefore, it is clear that "electric car" is a member of the "car" family, and the question can be answered with "driving an electric car."
[0041] Furthermore, when referencing an ontology, you always trace back to the top on the knowledge sentence side. This is because tracing back will result in an incorrect inference. For example, consider the case where the knowledge sentence is "Taro drove a car," and you ask the question "Did Taro drive an electric car?" If you trace back from "electric car" to the higher level "car" on the question side, you will get the incorrect answer "drew."
[0042] · Title In the case of various knowledge sentences pKTN created by reading documents, if it is possible to retain information about which document pKTN was created from, it is possible to specify the range of knowledge sentences and make inferences. According to this invention, for structured documents such as document titles, chapters, paragraphs, lists, and tables, a special case called a title case is added to the deep case, making it possible to provide information about which sentence the knowledge sentence pKTN was generated from.
[0043] The title case can be used for range searches by specifying documents or paragraphs, and is also effective for displaying the title, paragraph, or sentence that is the source of the knowledge when providing an answer. The document structure referenced by the title case is expressed as a tree-structured graph like that shown in Figure 24, just like an ontology. The place where the title case argument of each knowledge sentence pKTN goes points to the terminal leaf in Figure 24, and where it is included in the document hierarchical structure can be identified by tracing the tree in Figure 24 upwards. The method of referencing the document structure ontology for the title case is the same as that for the concept ontology. When matching the title case arguments of the question sentence pKTN with those of the knowledge sentence pKTN, it does not simply match symbols, but searches for a match by tracing the document structure ontology upwards on the knowledge sentence side. This makes it possible to search for knowledge sentences in a wide range specified from the question sentence side.
[0044] ·Logical AND / OR Natural language contains logical expressions such as negation, AND, and OR. In this embodiment, negation is expressed in the predicate place by including it in the modality as shown in Figure 3, while AND and OR are expressed as multiple Horn clauses that are equivalently converted into logical expressions. First, consider the case where nouns and verbs are connected by a logical relationship.
[0045] In the nominative case: "A and B run" = "A runs" ∧ "B runs." "A or B runs" = "A runs" ∨ "B runs." As a verb: "Taro does A and also does B" = "Taro does A" ∧ "Taro does B". "Taro does A or does B" = "Taro does A" ∨ "Taro does B". For time cases: "Taro eats at A and B" = "Taro eats at A" ∧ "Taro eats at B." "Taro eats at A o'clock or B o'clock" = "Taro eats at A o'clock" or "Taro eats at B o'clock." As shown in the above examples, when a deep case argument has words connected with logical relations ∧ and ∨, those logical relations can be externalized and the meaning of the sentence can be described as a logical formula connecting multiple propositions. Then, Using equivalence relations such as TIFF0007549760000004.tif7582, it can be converted into multiple Horn clauses. The expression shown after the ⇒ is written in the same way as Prolog programs, with the clauses to be prepared separated by "." (periods).
[0046] Figures 25 and 26 show pKTNs derived from the natural sentence "Taro or Hanako is in charge." In this example, it is converted into two knowledge sentences pKTNs that express the meanings "If Hanako is not in charge, Taro is in charge" and "If Taro is not in charge, Hanako is in charge." In these pKTNs, Horn clause rules are created by connecting "conditional cases" using "outer relative cases."
[0047] If, in addition to this knowledge, there exists the knowledge that "Hanako is not in charge," and the question "Who will be in charge?" is asked, the graph in Figure 27 will be generated, making it possible to answer the question. As an example of conversion to multiple Horn clauses, the conversion formula for a compound sentence containing condition-consequence relations expressed by conjunctions / conjunction particles and containing logical products / logical expressions is shown below. TIFF0007549760000005.tif56143Using these formulas, for example, the sentence "A runs when B or C dies" is converted into a pKTN representing two compound knowledge sentences, "A runs when B dies" and "A runs when C dies."
[0048] A of B The phrase "A's B" that frequently appears in Japanese natural text is a significant abbreviation. For example, the phrase "Taro's hat" implies the meaning "Taro owns a hat." In the present invention, as a means of generating a network from "A's B," in order to explicitly express the previously implied meaning, a special implicit Petri net (default) is also generated in addition to the knowledge sentence Petri net. In the following embodiment, "Taro's hat" is taken as an example. If this phrase is found in a given knowledge sentence, it is interpreted as "The hat is Taro's.", and "no" is treated as a function to create a pKTN as shown in Figure 28. Here, the dotted circle represents the function symbol place. Meanwhile, an implicit Petri net (Figure 29) is generated that expresses the equivalence of two sentences containing arbitrary variables x and y, "x is y's" and "y owns x," and these are used for inference.
[0049] Figure 30 shows the pKTN that is referenced when the question "What does Taro own?" is asked for the knowledge sentence "Hanako made Taro's hat." In Figure 30, the question sentence pKTN is connected to the knowledge sentence pKTN via an implicit Petri net that represents a paraphrase, and further to an implicit Petri net that represents a tautology, which allows the answer "What Hanako made, the hat."
[0050] Units, suffixes In natural language, frequently used units and suffixes can be more accurately extracted logically if they are treated separately from the word base. In this invention, by treating units and suffixes as functions with the word base as an argument, "word base + unit" is considered as an argument and one argument place is assigned to it. Figure 31 shows an example of a knowledge sentence pKTN corresponding to "Sulfuric acid is acidic" created in this way, connected to a question sentence pKTN corresponding to "What nature is sulfuric acid?" In the case of this question sentence, by interpreting "what nature" separately as "what + nature", a contradiction occurs with other knowledge sentences pKTN, such as "sulfuric acid is a toxic substance," and they cannot be connected.
[0051] ·Mathematical expressions In order to integrate pKTN reasoning and formulaic computation, this invention introduces the idea of a data flow graph to represent formulas and algorithms into pKTN. Figure 32 shows an example of a data flow graph. A data flow graph is a graph in which any mathematical expression or algorithm can be expressed by assigning values to the edges and operators to the nodes. In Figure 32, the calculation result 6 × ((3 + 9) - 7) = 30 can be obtained by flowing values through the graph. Another notable feature of dataflow graphs is that they allow the solution of numerical equations to be found by flowing data backwards, with local inverse calculations being performed at each operator node.
[0052] In the example of Figure 32, for example, by flowing numerical values from left to right, it is possible to find the solution x=9 that satisfies the equation 6 x ((3 + x) - 7) = 30. Something similar can be done in pKTN as well. To achieve this, in this invention, function symbols corresponding to mathematical symbols such as + and - are prepared, and the transitions that bring these together are given the function of numerical calculation. Figure 33 shows the pKTN when the question "How many years before 2017 did Taro live in Yokohama?" is asked, given the knowledge "Taro lived in Yokohama until 2000." The equation x=2017-q is embedded in the lower left part of Figure 33, and by performing the reverse calculation q=2017-x during inference, the transition can answer the above question with "q=17 (until 17 years ago)." [Industrial Applicability]
[0053] Examples of applications of the logical inference system according to the present invention are as follows. (1) A system that assists in and acts as an agent for transactions and settlements in the financial and securities fields. Based on the documents used (manuals of each institution, laws, etc.), a huge amount of manual text is written about a certain transaction. By querying the system, the content of work can be checked quickly and accurately without manual checking of documents. Confirmation information is available. Even an inexperienced operator can accurately retrieve all manual information. This is expected to reduce human error and alleviate labor shortages. (2) An inquiry and information provision system based on know-how books, manuals, etc. at factories and production sites. has accumulated a huge amount of manual documents covering everything from research and development to production, sales, distribution, and maintenance. By creating a database that can be queried and organized, it is possible to utilize documents more effectively and eliminate human error. It is possible. (3) By incorporating it as an inference engine for a chatbot with voice IF, it can handle inquiries at call centers. (4) "Integration of medical information" throughout the local community through logical database organization of medical information (electronic medical records, test and diagnosis information, etc.). (5) Labor savings and improved service quality achieved by acting as a delegation to customer service functions at local government offices and commercial facilities.
Claims
1. A logical inference system for performing inference based on knowledge expressed in natural language or mathematical expressions, The logic and algorithms extracted from the knowledge A Petri net in predicate logic form, The system comprises a plurality of places, a plurality of transitions, and a plurality of arcs respectively connecting between the places and the transitions, The plurality of places include a predicate place corresponding to the truth or falsity of the natural language sentence, a term place corresponding to various concepts and quantities of the natural language, and a function symbol place corresponding to various connections between concepts of the natural language, numerical operations, and units; the plurality of arcs have labels corresponding to deep cases expressing deep meanings of the natural language; The description word place includes modal places corresponding to various modalities and negations of the natural language, and concept places corresponding to various concepts, The term places include constant places corresponding to various concepts and quantities in the natural language, and variable places corresponding to various pronouns, indefinite articles, and variables in the mathematical formula. A logical inference system expressed using knowledge Petri nets.
2. A logical inference system for performing inference based on knowledge expressed in natural language or mathematical expressions, comprising: The logic and algorithms extracted from the knowledge A Petri net in predicate logic form, The system comprises a plurality of places, a plurality of transitions, and a plurality of arcs respectively connecting between the places and the transitions, The plurality of places include a predicate place corresponding to the truth or falsity of the natural language sentence, a term place corresponding to various concepts and quantities of the natural language, and a function symbol place corresponding to various connections between concepts of the natural language, numerical operations, and units; a logical inference system expressed using a knowledge Petri net, in which the plurality of arcs have labels corresponding to deep cases that represent deep meanings of the natural language, A rule for determining modality and deep case from morphological analysis and dependency structure analysis of a natural language sentence, Using rules for determining aspects and deep cases by referring to attribute information including parts of speech, particles, destinations, and time and place for each clause of the natural language sentence, a network creation unit that converts the natural language sentence into the knowledge Petri net; Logical inference system.
3. A method for resolving conflicts and performing numerical calculations based on local symbol contradictions on the knowledge Petri net; By performing a breadth-first search on a virtual AND / OR graph created by expanding the knowledge Petri net, 3. The logical inference system according to claim 1, further comprising an inference execution unit for performing backward inference on the logic extracted from said knowledge.
4. As part of the knowledge Petri net, A network creation part converts complex sentences in natural language, in which the premise-conclusion relationship is unclear, into undirected Petri nets, in which the arcs have no direction; a network extraction unit for receiving a question, extracting related sub-Petri nets from the knowledge Petri net, and providing a direction to the extracted sub-Petri nets; The logical inference system of claim 3.
5. A Petri net representing a tautology in predicate logic, Generates implicit Petri nets that correspond to assumptions and common knowledge implicit in natural language sentences, A network creation unit for connecting the implicit Petri net with the knowledge Petri net is further provided. The logical inference system of claim 3.
6. As part of the knowledge Petri net, Various complex sentences in natural language expressed with conjunctions, conjunctions, and relative pronouns, The outer relative case, which is a special deep case, A deep case expressing an object, time, place, scope, actor, means, partner, opponent, condition, supposition, premise, cause, reason, purpose, topic, source, position, metaphor, quantity, frequency, or description, or A network creation unit converts the network into an undirected Petri net including a predicate place for comparing quantities. The logical inference system of claim 3.
7. As part of the knowledge Petri net, Natural language sentences in documents structured by chapters, paragraphs, lists, and tables, A network creation unit is further provided for converting the Petri net into a Petri net including a case for the title specially prepared as a deep case. The logical inference system of claim 3.
8. As part of the knowledge Petri net, a network creation unit that performs logical conversion of a natural language sentence including a logical OR relation and converts the sentence into a Petri net corresponding to a plurality of Horn clauses; The logical inference system of claim 3.
9. As part of the knowledge Petri net, Generate an implicit Petri net corresponding to the implicit knowledge contained in the abbreviated natural language expression "A's B"; A network creation unit for connecting the implicit Petri net with the knowledge Petri net is further provided. The logical inference system of claim 3.
10. A logical inference method for performing inference based on knowledge expressed in natural language or mathematical expressions, comprising: The logic and algorithms extracted from the knowledge A Petri net in predicate logic form, The system comprises a plurality of places, a plurality of transitions, and a plurality of arcs respectively connecting between the places and the transitions, The plurality of places include a predicate place corresponding to the truth or falsity of the natural language sentence, an argument place corresponding to various concepts and quantities of the natural language, and a function symbol place corresponding to various connections and units between concepts of the natural language, the plurality of arcs have labels corresponding to deep cases expressing deep meanings of the natural language; The description word place includes modal places corresponding to various modalities and negations of the natural language, and concept places corresponding to various concepts, The term places include constant places corresponding to various concepts and quantities in the natural language, and variable places corresponding to various pronouns, indefinite articles, and variables in the mathematical formula. A logical inference method expressed using Petri nets.
11. A logical inference method for performing inference based on knowledge expressed in natural language or mathematical expressions, comprising: The logic and algorithms extracted from the knowledge A Petri net in predicate logic form, The system comprises a plurality of places, a plurality of transitions, and a plurality of arcs respectively connecting between the places and the transitions, The plurality of places include a predicate place corresponding to the truth or falsity of the natural language sentence, a term place corresponding to various concepts and quantities of the natural language, and a function symbol place corresponding to various connections between concepts of the natural language, numerical operations, and units; A logical inference method for expressing the plurality of arcs using a knowledge Petri net, the arcs having labels corresponding to deep cases expressing deep meanings of the natural language, comprising: A rule for determining modality and deep case from morphological analysis and dependency structure analysis of a natural language sentence, Using rules for determining aspects and deep cases by referring to attribute information including parts of speech, particles, destinations, and time and place for each clause of the natural language sentence, a network creation unit that converts the natural language sentence into the knowledge Petri net; Logical reasoning methods.
Citation Information
Patent Citations
Logic inference system, computation learning apparatus, and logic inference method
JP2013008221A
Search device, search method and program
JP2013206130A
Assisted input of rules into a knowledge base
US20150331851A1
