PROVIDING DATA FROM A DIRECTED GRAPH TO A LANGUAGE MODEL
Abstract:
A method, a system and a computer program for providing data from a directed graph to a language model are provided. The method comprises defining a plurality of conditions and a plurality of patterns, wherein each of the conditions has at least one corresponding pattern. The method further comprises receiving a subset of the directed graph, wherein the subset of the directed graph includes a plurality of statements, wherein each of the statements includes a subject, an object and a predicate relating the subject to the object. The method further comprises for each of the statements in the subset of the directed graph, performing the following: when one of the conditions matches a respective statement and the pattern corresponding to the condition can be applied to the respective statement, computing a string from the respective statement using the pattern.
Information query
Patent Agency Ranking
0/0