Method and apparatus for generating text corpus by using knowledge graph
AssigneeAlipay (Hangzhou) Information Technology Co., Ltd.
InventorsDeng ZHAO, Bin HU, Lei SHI, Jianshan HE
Life of this patent
Estimating the term…
Loading patent…
AssigneeAlipay (Hangzhou) Information Technology Co., Ltd.
InventorsDeng ZHAO, Bin HU, Lei SHI, Jianshan HE
Estimating the term…
Embodiments of this specification provide a method and an apparatus for generating a text corpus by using a knowledge graph. Graph elements of the knowledge graph include a node representing an entity and a connecting edge representing a relationship between nodes. Privacy data can be organized into structured data by using the knowledge graph. The graph data includes several triplets including graph elements in the subgraph, and the ontology information includes at least a type of each graph element in the subgraph. Several sentences are generated based on several pre-constructed sentence templates, the graph data, and the ontology information. The several sentences are classified into a generated sentence set, and at least one of the several sentence templates is constructed based on the ontology information. A text corpus corresponding to the subgraph is determined based on the generated sentence set. The text corpus is used to train a language model.
A method for generating a text corpus by using a knowledge graph, wherein graph elements of the knowledge graph comprise a node representing an entity and a connecting edge representing a relationship between nodes, and the method comprises:
A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores a computer program, which when executed by a processor causes the processor to:
A computing device, comprising a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the computing device is caused to:
Dependencies are inferred from the claim text.