STRUCTURED TEXT PROCESSING APPARATUS, STRUCTURED TEXT PROCESSING METHOD AND PROGRAM
A structured text processing apparatus includes one or more computers each including a memory and a processor configured to analyze a tree structure of a structured text; specify, for each leaf node in the tree structure, a path from the leaf node to a root node; and generate a converted text including text data in which strings associated with respective nodes from the root node to the leaf node of each path are connected to each other.
1 . A structured text processing apparatus comprising:
one or more computers each including a memory and a processor configured to:
analyze a tree structure of a structured text;
specify, for each leaf node in the tree structure, a path from the leaf node to a root node; and
generate a converted text including text data in which strings associated with respective nodes from the root node to the leaf node of each path are connected to each other.
2 . The structured text processing apparatus according to claim 1 ,
wherein the memory and the processor are further configured to
process the converted text using a trained neural network that has learned, in advance, predetermined processing related to a text.
3 . The structured text processing apparatus according to claim 1 ,
wherein the memory and the processor are further configured to
convert a meta string representing the tree structure, from among strings included in the generated converted text, to a common string indicating that the meta string has been present.
4 . The structured text processing apparatus according to claim 2 ,
wherein the memory and the processor are further configured to
convert a meta string representing the tree structure, from among strings included in the generated converted text, to a common string indicating that the meta string has been present,
wherein the trained neural network is a neural network that has been trained in advance using, as input, the generated converted text or the converted text, in which the meta string was converted to the common string, and correct answer information for performing the predetermined processing for the converted text.
5 . The structured text processing apparatus according to claim 2 ,
wherein the trained neural network is a neural network that has performed multi-task learning of information retrieval and machine reading comprehension.
6 . A structured text processing method executed by a computer including a memory and a processor, the method comprising:
analyzing a tree structure of a structured text;
specifying, for each leaf node in the tree structure, a path from the leaf node to a root node; and
generating a converted text including text data in which strings associated with respective nodes from the root node to the leaf node of each path are connected to each other.
7 . A non-transitory computer-readable recording medium having computer-readable instructions stored thereon, which when executed, cause a computer including a memory and a processor to execute respective operations in the structured text processing apparatus according to claim 1 .