WO1999021104A1 - Automatically recognizing the discourse structure of a body of text - Google Patents
Automatically recognizing the discourse structure of a body of text Download PDFInfo
- Publication number
- WO1999021104A1 WO1999021104A1 PCT/US1998/021565 US9821565W WO9921104A1 WO 1999021104 A1 WO1999021104 A1 WO 1999021104A1 US 9821565 W US9821565 W US 9821565W WO 9921104 A1 WO9921104 A1 WO 9921104A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- clauses
- input text
- discourse
- facility
- natural language
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/253—Grammatical analysis; Style critique
Definitions
- the invention relates generally to the field of computational linguistics, and, more specifically, to the field of discourse processing.
- Discourse theory is an approach to understanding the content and significance of natural language documents and other units of natural language. According to discourse theory, each natural language document has a "discourse structure" that reflects the purposes of the document's author in authoring the document. Discerning the discourse structure of a natural language document is commonly regarded as an important component of understanding the document.
- discourse structure of documents is frequently modeled using hierarchical "discourse structure trees,” or simply “trees,” such as the “rhetorical structure theory trees” (“RST trees”) proposed by Mann and Thompson, “Relational Propositions in Discourse,” Discourse Processes 9:57-90 (1986).
- RST trees rhetorical structure theory trees
- Such discourse structure trees characterize the relative significance of the constituent segments of the documents, called “propositions.” These propositions are generally clauses or phrases.
- a discourse structure tree identifies the relationships, or "discourse relations,” that exist between propositions in the document.
- Discourse structure trees are typically generated manually, at significant cost, by experts trained as linguists. Because the manual generation of discourse structure trees is expensive, they remain a largely a theoretical tool used to study discourse in general. An automated approach to inexpensively generating discourse structure trees representing the discourse structure of natural language documents, however, would permit the application of discourse theory to the analysis of arbitrary documents.
- the invention is directed to automatically recognizing the discourse structure of a body of text or other natural language expression.
- the discourse structure exhibited by a body of text is the organization, or "structure,” of the multiple-word textual elements, or "propositions,” from which the body of text is constructed. Recognizing the discourse structure of a body of text helps to facilitate the discovery of the author's goals in writing the body of text, and thus helps in some senses to identify the central meaning of the body of text.
- a discourse structure tree is a data structure representing the discourse structure of an input text.
- the input text is generally devisable into a series of clauses. While the discourse structure trees generated by the facility for the input text, strictly speaking, characterize the discourse structure between the propositions that are the logical representation of these clauses, the facility generates the discourse structure trees based upon the content of the clauses, rather than on the basis of any rigorous logical representations of the clauses that might be properly termed propositions. Thus, the facility's generation of discourse structure trees is not reliant upon the generation of rigorous logical propositions from the clauses of the input text.
- the facility receives the input text, as well as data produced by performing a rigorous syntactic parse of the input text.
- This data preferably includes one or more syntactic parse graphs representing the syntactic structure of the input text, and corresponding logical forms, which provide a normalized view of this syntactic structure including semantic information.
- the facility uses the logical forms to divide the input text into clauses. These clauses are ultimately arranged in a discourse structure tree, where they are connected by discourse relations in a particular configuration indicating the discourse structure of the input text.
- the facility After identifying the clauses in the input text, the facility considers these clauses in pairs. It is important to note that the facility attempts to hypothesize discourse relations between every pair of clauses, not merely between adjacent clauses. For each pair of clauses, the facility uses a set of cues to identify the discourse relations that might reasonably relate the clauses of the pair. These identified relations are said to be "hypothesized" between the clauses of the pair.
- the cues used specify one or more levels of conditions that must be satisfied by the clauses of the pair, or by the contents of the logical form or syntactic parse relative to clauses of the pair, in order for a particular relation to be hypothesized between the pair.
- the cues further each specify a quantitative score indicating the relative likelihood that the relation hypothesized between the pair is correct where the cue's conditions are satisfied.
- the scores specified by those cues are added to yield the score for the hypothesized relation.
- the facility groups the hypothesized relations in "bags" each containing all of the hypothesized relations between a given pair of clauses. Hypothesized relations are ordered in each bag in decreasing order of their scores. The bags themselves are, in turn, ordered in decreasing order of the scores of their first hypothesized relation, i.e., the highest single score in the bag.
- the facility then proceeds to construct one or more discourse structure trees in a bottom-up manner from terminal nodes corresponding to the clauses by attempting to apply the hypothesized relations to the terminal nodes in a manner that iterates first through the first hypothesized relation in each bag, then through successive hypothesized relations in each bag.
- the construction algorithm utilizes backtracking in its traversal of the bags in order to prune from consideration groups of trees that would not be well-formed.
- the new node has a score equal to the score of the hypothesized relation, plus the scores, if any, of the nodes that are combined.
- every tree constructed in this manner has a score, associated with its root node, that reflects the relative likelihood that the tree is the correct one for the input text.
- Each tree constructed in this manner is a binary-branching tree, in which each non-terminal node has exactly two children.
- ⁇ -ary-branching discourse structure trees are considered, in some respects, to be more useful than binary-branching discourse structure trees, the facility preferably "flattens" the constructed binary- branching trees to form n-ary-branching trees.
- the facility may further generate from any of the trees constructed in this manner a synopsis of the input text reflecting the primary goals pursued by the author. To do so, the facility performs a breadth-first traversal of the tree from its head to a specified depth, concatenating to the summary the text of the clause represented by each visited node.
- the facility of the present invention preferably hypothesizes discourse relations between clauses on the basis of the text of the clauses, without relying upon manually-generated propositional representations of the input text, utilizing robust cues that test syntactic and semantic characteristics of the text of the clauses; applies hypothesized discourse relations to generate discourse relation trees in an order based upon their segregation into bags and utilizing backtracking; flattens binary-branching discourse structure trees into «-ary-branching discourse structure trees; and generates from generated discourse structure trees a synopsis of the input text.
- Figure 1 is a high-level block diagram of the general-purpose computer system upon which the facility preferably executes.
- Figure 2 is a high-level flow diagram showing an overview of the steps performed by the facility in order to generate one or more discourse structure trees for an input text and generate a synopsis of the input text.
- Figure 3 is a parse tree diagram showing the parse tree produced for the first sentence of the sample input text.
- Figure 4 is a logical form diagram showing the logical form graph generated for the first sentence of the sample input text.
- Figure 5 is a parse tree diagram showing the parse tree generated for the second sentence of the sample input text.
- Figure 6 is a logical form diagram showing the logical form graph generated by the facility for the second sentence of the sample input text.
- Figure 7 is a parse tree diagram showing the parse tree generated for the third sentence of the sample input text.
- Figure 8 is a logical form diagram showing the logical form graph generated by the facility for the third sentence of the sample input text.
- Figure 9 is a parse tree diagram showing the parse tree generated for the fourth sentence of the sample input text.
- Figure 10 is a logical form diagram showing the logical form graph generated by the facility for the fourth sentence of the sample input text.
- Figure 11 is a flow diagram showing the steps preferably performed by the facility in order to hypothesize discourse relations between the clauses identified in the input text.
- Figure 12 is a flow diagram showing the steps preferably performed by the facility in order to generate discourse structure trees for the input text.
- Figure 13 is a discourse structure tree diagram showing the addition of terminal nodes to the tree.
- Figure 14 is a discourse structure tree diagram showing the addition of a new node covering clauses 2-3.
- Figure 15 is a discourse structure tree diagram showing the addition of a new node covering clauses 4 and 5.
- Figure 16 is a discourse structure tree diagram showing the addition of a new node covering clauses 1-3.
- Figure 17 is a discourse structure tree diagram showing the facility backtracking from the tree shown in Figure 16 to the tree shown in Figure 15, then adding a new node covering clauses 3-5.
- Figure 18 is a discourse structure tree diagram showing the first complete discourse structure tree generated by the facility.
- Figure 19 is a flow diagram showing the steps preferably performed by the facility in order to convert a binary-branching discourse structure tree into an n-ary- branching discourse structure tree.
- Figure 20 is a discourse structure tree diagram showing a sample binary branching discourse structure tree.
- Figure 21 is a discourse structure tree diagram showing an n-ary branching discourse structure tree constructed by the facility using the steps shown in Figure 20 from the binary branching discourse structure tree shown in Figure 21.
- Figure 22 is a flow diagram showing the steps preferably performed by the facility in order to generate a synopsis of the input text based on the highest-scoring discourse structure tree generated by the facility.
- the invention is directed to automatically recognizing the discourse structure of a body of text or other natural language expression.
- the discourse structure exhibited by a body of text is the organization, or "structure,” of the multiple-word textual elements, or "propositions,” from which the body of text is constructed. Recognizing the discourse structure of a body of text helps to facilitate the discovery of the author's goals in writing the body of text, and thus helps in some senses to identify the central meaning of the body of text.
- a discourse structure tree is a data structure representing the discourse structure of an input text.
- the input text is generally devisable into a series of clauses. While the discourse structure trees generated by the facility for the input text, strictly speaking, characterize the discourse structure between the propositions that are the logical representation of these clauses, the facility generates the discourse structure trees based upon the content of the clauses, rather than on the basis of any rigorous logical representations of the clauses that might be properly termed propositions. Thus, the facility's generation of discourse structure trees is not reliant upon the generation of rigorous logical propositions from the clauses of the input text.
- a sample discourse structure tree is shown in Figure 18.
- a discourse structure tree contains a number of nodes arranged in a tree. Each node represents, or “covers,” a contiguous set, or “span” of clauses. Each node further identifies the most important nodes, called “projections,” among the clauses that it covers.
- the leaves, or “terminal nodes,” of a discourse structure tree each correspond to a single clause.
- the non-terminal nodes of a discourse structure tree correspond to multiple clauses combined, or "related,” by one or more discourse relations.
- One non-terminal node, called “root node” covers all of the clauses, and has all of the terminal nodes among its descendants.
- a number of different types of discourse relations are used to represent the kinds of relationships that can occur between clauses (or between groups of clauses). These discourse relation types are divided into two categories: asymmetric discourse relation types and symmetric discourse relation types.
- Asymmetric discourse relations relate clauses in a way that demonstrates that the author regards the clauses as having different levels of importance within the input text.
- the clauses related by an asymmetric discourse relation thus (1) include a more important, "nucleus,” clause and a less important, "satellite,” clause, and (2) have as their list of their projections only the projections of their nucleus child.
- clauses A and B below are related by an ELABORATION relation describing two clauses, the satellite of which elaborates on the nucleus, in which the node representing clause A is the nucleus and the node representing clause and B is the satellite:
- Binoculars enable their users to view scenes at a distance.
- Figure 18 shows representations of three asymmetric relations: an ASYMMETRIC CONTRAST relation represented in node 1812 having node 1804 as its nucleus and node 1805 as its satellite; an ELABORATION relation represented in node 1814 having node 1803 as its nucleus and node 1812 as its satellite; and an ELABORATION relation represented in node 1815 having node 1801 as its node as its nucleus and node 1811 as its satellite.
- Symmetric discourse relations relate clauses in a way that demonstrates that the author regards the clauses as having similar importance within the input text.
- nodes representing symmetric discourse relations (1) have only nuclei as children, and (2) have as their list of projections the union of the projections of their children.
- clauses C and D below are related by a SEQUENCE relation describing an ordered succession of clauses, in which nodes representing clauses C and D are both nucleus children:
- Figure 18 shows a representation of one symmetric relation: a
- a valid, or "well-formed,” discourse structure tree exhibits four characteristics: (1) “completeness,” i.e., the discourse structure tree covers the entire input text; (2) “connectedness,” i.e., the discourse structure tree contains a terminal node for each clause of the input text; (3) “uniqueness,” i.e., each node in the discourse structure tree has a single parent; and (4) "adjacency,” i.e., only adjacent spans may be grouped together node to form larger spans — that is, non-terminal nodes in the discourse structure tree must cover only contiguous spans.
- the facility receives as its input the input text, as well as data produced by performing a rigorous syntactic parse of the input text.
- This data preferably includes one or more syntactic parse graphs representing the syntactic structure of the input text, and corresponding logical forms, which provide a normalized view of this syntactic structure including semantic information.
- the facility uses the logical forms to divide the input text into clauses. These clauses are ultimately arranged in a discourse structure tree, where they are connected by discourse relations in a particular configuration indicating the discourse structure of the input text.
- the facility After identifying the clauses in the input text, the facility considers these clauses in pairs. It is important to note that the facility attempts to hypothesize discourse relations between every pair of clauses, not merely between adjacent clauses. For each pair of clauses, the facility uses a set of cues to identify the discourse relations that might reasonably relate the clauses of the pair. These identified relations are said to be "hypothesized" between the clauses of the pair.
- the cues used specify one or more levels of conditions that must be satisfied by the clauses of the pair, or by the contents of the logical form or syntactic parse relative to clauses of the pair, in order for a particular relation to be hypothesized between the pair.
- the cues further each specify a quantitative score indicating the relative likelihood that the relation hypothesized between the pair is correct where the cue's conditions are satisfied.
- the scores specified by those cues are added to yield the score for the hypothesized relation.
- the facility groups the hypothesized relations in "bags" each containing all of the hypothesized relations between a given pair of clauses. Hypothesized relations are ordered in each bag in decreasing order of their scores. The bags themselves are, in turn, ordered in decreasing order of the scores of their first hypothesized relation, i.e., the highest single score in the bag.
- the facility then proceeds to construct one or more discourse structure trees in a bottom-up manner from terminal nodes corresponding to the clauses by attempting to apply the hypothesized relations to the terminal nodes in a manner that iterates first through the first hypothesized relation in each bag, then through successive hypothesized relations in each bag.
- the construction algorithm utilizes backtracking in its traversal of the bags in order to prune from consideration groups of trees that would not be well-formed.
- the new node has a score equal to the score of the hypothesized relation, plus the scores, if any, of the nodes that are combined.
- every tree constructed in this manner has a score, associated with its head node, that reflects the relative likelihood that the tree is the correct one for the input text.
- Each tree constructed in this manner is a binary-branching tree, in which each non-terminal node has exactly two children.
- «-ary-branching discourse structure trees are considered, in some respects, to be more useful than binary-branching discourse structure trees, the facility preferably "flattens" the constructed binary- branching trees to form n-ary-branching trees.
- the facility may further generate from any of the trees constructed in this manner a synopsis of the input text reflecting the primary goals pursued by the author. To do so, the facility performs a breadth-first traversal of the tree from its head to a specified depth, concatenating to the summary the text of the clause represented by each visited node.
- FIG. 1 is a high-level block diagram of the general-purpose computer system upon which the facility preferably executes.
- the computer system 100 contains a central processing unit (CPU) 110, input/output devices 120, and a computer memory (memory) 130.
- CPU central processing unit
- input/output devices is a storage device 121, such as a hard disk drive, and a computer-readable media drive 122, which can be used to install software products, including the facility, which are provided on a computer-readable medium, such as a CD-ROM.
- the memory 130 preferably contains the discourse structure recognition facility (“facility”) 131 ; a lexical knowledge base 132 containing lexical and semantic information relating to the natural language in which the input text is expressed; a parser 133 for deriving from the input text morphological, syntactic, and semantic information inherent therein, including logical forms; a discourse relation hypothesizing data structure 134 used in order to hypothesize discourse relations that may relate pairs of clauses within the input text; and a hypothesized discourse relation data structure 135 used by the facility to represent the set of discourse relations hypothesized between the clauses of the input text and to construct discourse structure trees representing the discourse structure of the input text.
- the discourse structure recognition facility (“facility") 131
- a lexical knowledge base 132 containing lexical and semantic information relating to the natural language in which the input text is expressed
- a parser 133 for deriving from the input text morphological, syntactic, and semantic information inherent therein, including logical forms
- the parser 133 and the facility 131 can together identify the morphological, syntactic, semantic, and discourse structure of the input text
- the parser and facility are collectively known as a natural language processing system for identifying the morphological, syntactic, semantic, and discourse structure of a natural language input text. While the facility is preferably implemented on a computer system configured as described above, those skilled in the art will recognize that it may also be implemented on computer systems having different configurations.
- Figure 2 is a high-level flow diagram showing an overview of the steps performed by the facility in order to generate one or more discourse structure trees for an input text and generate a synopsis of the input text.
- the facility parses the input text and produces a parse tree and logical forms.
- parsing natural language input text refer to U.S. Patent Application No. 08/265,845, entitled “METHOD AND SYSTEM FOR BOOTSTRAPPING STATISTICAL PROCESSING INTO A RULE-BASED NATURAL LANGUAGE PARSER.”
- For a detailed description of generating logical forms from natural language input text refer to U.S. Patent Application No. 08/674,610, entitled “METHOD AND SYSTEM FOR COMPUTING SEMANTIC LOGICAL FORMS FROM SYNTAX TREES.”
- step 202 the facility uses the logical forms generated in step 201 to identify the clauses within the input text.
- step 203 the facility uses a set of cues to hypothesize possible discourse relations between pairs of the clauses identified in step 202.
- step 204 the facility applies the relations hypothesized in step 203 in order to construct one or more discourse structure trees for the input text. A score is generated for each discourse structure tree indicating the relative likelihood that that discourse structure tree correctly models the discourse structure of the input text.
- step 205 the facility "flattens" the binary-branching discourse structure trees constructed in step 204 to transform them into the more common ⁇ -ary-branching trees.
- step 206 the facility generates from the highest-weighted discourse structure tree a synopsis of the sample input text containing the most important clauses of the input text. After step 206, these steps conclude. In order to describe the facility more completely, its operation is described in detail hereinafter with reference to a simple example.
- the sample input text for the example is shown in Text Block 1.
- the aardwolf is classified as Proteles cristatus. It is usually placed in the hyena family, Hyaenidae. Some experts, however, place the aardwolf in a separate family, Protelidae, because of certain anatomical differences between the aardwolf and the hyena. For example, the aardwolf has five toes on its forefeet, whereas the hyena has four.
- Text Block 1 Sample Input Text
- the facility first parses each sentence of the sample input text, generating for each sentence both a parse tree and a logical form.
- Figures 3-10 show the parse trees and logical forms for the four sentences of the sample input text.
- Figure 3 is a parse tree diagram showing the parse tree produced for the first sentence of the sample input text.
- the parse tree 300 characterizes the syntactic structure of the sentence as a whole. Branches of the parse tree attached to the head node 301 describe different components of the sentence.
- a noun phrase branch 310 describes the noun phrase "the aardwolf.”
- An auxiliary phrase branch 320 describes the verb "is.”
- a verb branch 330 describes the verb "classified.”
- a prepositional phrase branch 340 describes the prepositional phrase "as Proteles cristatus.”
- a punctuation branch 350 describes the period that ends the sentence.
- Figure 4 is a logical form diagram showing the logical form graph generated for the first sentence of the sample input text.
- the logical form 400 describes the syntactic organization of the sentence in a more abstract way than the parse tree.
- a logical form is based on a relatively small number of syntactic-semantic relations via which a verb may be modified by other words in a sentence. Several of the labels used to identify these relations are described in Table 1. Additional such labels are described in U.S. Patent Application No. 08/674,610.
- the logical forms generated by parsing the input text are used by the facility (l) to determine how to divide the input text into clauses, and (2) to test the conditions of the cues when hypothesizing discourse relations between clauses.
- Figures 5, 7, and 9 are parse tree diagrams showing the parse trees generated for the second, third, and fourth sentences of the sample input text, respectively.
- Figures 6, 8, and 10 are logical form diagrams showing the logical form graphs generated by the facility for the second, third, and fourth sentences of the sample input text, respectively.
- the facility After the facility has parsed the sentences of the input text in accordance with step 201, the facility proceeds to identify the clauses occurring in the input text in accordance with step 202.
- the criteria used by the facility to identify clauses are shown in Table 2.
- Tables 2 and 4 For additional discussion of such terminology, the reader is directed to Finegan, Edward, Language: Its Structure and Use, Harcourt Brace Jovanovich, San Diego, 1989, and Fromkin, Victoria, and Robert Rodman, An Introduction to Language, Holt, Rinehart, and Winston, New York, 1988.
- the facility exhaustively traverses the nodes of the generated logical forms, applying the criteria shown in Table 2 to each logical form node. For each logical form node satisfying all of the criteria, the facility identifies a separate clause.
- the facility applies the criteria shown in Table 2 to the logical forms shown in Figures 4, 6, 8 and 10 to divide the sample input text into clauses as shown in Table 3.
- FIG 11 is a flow diagram showing the steps preferably performed by the facility in order to hypothesize discourse relations between the clauses identified in the input text.
- these steps evaluate the conditions associated with each cue for every pair of clauses to determine whether to hypothesize the relation associated with the cue for that pair of clauses.
- discourse relations are directional, for a given pair of clauses, the facility applies the conditions of the cues once to consider hypothesizing the relations in the forward direction, and again to consider hypothesizing the relations in the backward direction. This is shown in the flow diagram as looping through all of the ordered pairs of clauses, rather than merely looping through only the unordered pairs of clauses.
- the facility loops through each ordered pair of identified clauses.
- the facility loops through each of the different discourse relation types.
- the facility loops through each discourse relation cue provided for the current discourse relation type.
- Table 4 shows a list of discourse relation cues preferably used by the facility. Each cue is an individual basis for asserting a particular discourse relation between an ordered pair of clauses. The cue has a relation name identifying the relation to be hypothesized if the cue can be successfully applied to the pair of clauses. Each cue further has a cue number used to refer to the cue.
- Each cue further has an ordered set of conditions, each of which must be satisfied by the clauses, identified as “Clause ] ,” and “Clause 2 ,” in order to hypothesize the identified relation based upon the cue.
- the conditions are ordered in that a first condition is tested and must be satisfied before a second condition is tested.
- the condition that precedes it in the order must be evaluated and satisfied before the next condition is evaluated.
- each cue has a score indicating the relative likelihood that the identified relation correctly relates the two clauses of the ordered pair given the satisfaction of the ordered set of conditions.
- step 1106 if the current relation has already been hypothesized, i.e., the relation occurs on a list of hypothesized relations, then the facility continues in step 1108, else the facility continues in step 1107.
- step 1106 if the current relation has already been hypothesized, i.e., the relation occurs on a list of hypothesized relations, then the facility continues in step 1108, else the facility continues in step 1107.
- step 1107 the facility adds the relation to the list of hypothesized relations. After step 1107, the facility continues in step 1108. In step 1108, the facility adds the score of the current cue to the total score for the current relation. After step 1108, the facility continues in step 1109. In step 1109, the facility loops back to step 1103 to process the next cue for the current relation. After all of the cues have been processed, the facility continues in step 1110. In step 1110, the facility loops back to step 1102 to process the next relation type for the current ordered pair of clauses. After all of the relation types have been processed, the facility continues in step 1111. In step 1111 , the facility loops back to step 1101 to process the next ordered pair of clauses. After all of the ordered pairs of clauses have been processed, these step conclude.
- Table 5 shows the relation type of the hypothesized relation, the ordered pair of clauses between which the relation is hypothesized, the cues whose condition sets were satisfied, and the total score for each hypothesized relation obtained by summing the scores of the cues whose condition sets were satisfied.
- FIG. 12 is a flow diagram showing the steps preferably performed by the facility in order to generate discourse structure trees for the sample input text.
- the facility segregates the hypothesized relations into "bags" to organize them for application. After the segregation, each bag contains all of the hypothesized relations that relate, in either direction, a particular pair of clauses. Thus, a bag is created for each "unordered pair" of clauses that is related by one or more hypothesized relations.
- hypothesized relations in each bag are sorted in decreasing order of their scores, and the bags themselves are sorted in decreasing order of their highest scores.
- This segregation process streamlines the application of the hypothesized relations in several respects.
- segregating the hypothesized relations that relate to a particular pair of propositions into a single bag enables the facility straightforwardly to ensure that each discourse structure tree formed by the application of the hypothesized relations contains no more than one node relating any pair of propositions.
- sorting the bags and the hypothesized relations within the bags in accordance with their scores and applying the hypothesized relations in this order enables the facility to produce discourse structure trees in decreasing order of likelihood of correctness. In this way, the facility is able to generate quickly the trees most likely to be correct.
- steps 1201-1205 the facility loops through each hypothesized relation. For each hypothesized relation, in step 1202, if a bag exists for the unordered pair of clauses between which the relation is hypothesized, then the facility continues in step 1204, else the facility continues in step 1203. In step 1203, the facility creates a bag for the unordered pair of clauses between which the relation is hypothesized. After step 1203, the facility continues in step 1204. In step 1204, the facility adds the current hypothesized relation to the bag for the unordered pair of clauses between which the relation is hypothesized. In step 1205, the facility loops back to step 1201 to process the next hypothesized relation. After all of the hypothesized relations have been processed, the facility continues in step 1206.
- step 1206 the facility sorts the hypothesized relations in each bag in decreasing order of their scores.
- step 1207 the facility sorts the bags in decreasing order of the scores of the first hypothesized relation in each bag, i.e., in decreasing order of the largest score among the hypothesized relations in each bag.
- the sorted bags for the example are shown in Table 6.
- Bag 5 containing hypothesized relations 2 and 3, is for clauses 1 and 3. It can be seen that the hypothesized relations in bag 5 decline from a score of 25 for hypothesized relation 2 to a score of 20 for hypothesized relation 3. It can further be seen that the maximum scores of the bags decline from a score of 35 for hypothesized relation 4 in bag 1 to a score of 25 for hypothesized relation 2 in bag 5.
- step 1208 the facility creates an empty discourse structure tree.
- step 1209 the facility adds to this empty tree a terminal node for each clause in the input text. These terminal nodes form the basis for each tree generated for the input text.
- Figure 13 is a discourse structure tree diagram showing the addition of terminal nodes to the tree.
- the tree 1300 contains terminal nodes 1301-1305.
- the first line of text in each node identifies the set of clauses covered by the node.
- Each of the terminal nodes by definition covers only a single clause. For example, terminal node 1301 covers only clause 1.
- Each node further indicates the clauses among its covered clauses that are "projected from,” or are the most important among, its covered clauses. Again, each terminal node projects its only clause. For example, terminal node 1301 projects its only covered clause, clause 1.
- step 1210 the facility calls a recursive subroutine entitled ConstructTree in order to construct the desired number of discourse structure tree for the input text.
- ConstructTree A pseudocode definition of the ConstructTree recursive subroutine is shown in Code Block 1.
- ConstructTree would create all possible well-formed discourse structure trees that are compatible with the hypothesized discourse relations. As actually implemented, however, the researcher specifies a desired number of trees — usually ten or twenty. ConstructTree then produces either the stipulated number of trees or all possible trees, whichever is the smaller number.
- ConstructTree prevents the construction of a great number of ill-formed trees. For example, consider an imaginary set of five hypotheses, R x ... R 5 , where applying R 2 after R. results in an invalid tree. Rather than attempting to construct hypotheses by testing all permutations of these five hypotheses and then examining the trees only to discover that trees formed by applying ⁇ R, R 2 R 3 R 4 R 5 ⁇ or ⁇ R j R 2 R 3 R 5 R 4 ⁇ and so on were invalid, ConstructTree applies R ] , then R 2 .
- the trees produced by ConstructTree are stored in a list.
- the Value attribute of the root node of each tree can be used to evaluate a tree — since the Value attribute is determined by adding the heuristic scores of the relations used to construct the tree, a tree constructed by using relations with high heuristic scores will have a greater Value than a tree constructed by using relations with low heuristic scores.
- ConstructTree ought to produce highly ranked trees produced before low ranked ones. Unfortunately, ConstructTree occasionally produces trees out of sequence.
- the list of trees produced by ConstructTree is sorted according to the Value attribute of the root node of each tree, to ensure that a tree judged by a discourse analyst to be the preferred analysis for the text occurs as the top ranked tree, with alternative plausible analyses also occurring near the top of the sorted list.
- the facility begins with bag 1, .and attempts to apply the first hypothesized relation, relation 4.
- This relation specifies a CONTRAST relation between clauses 2 and 3.
- the facility searches the current nodes of the tree, "TREENODES,” for a node whose projections include clause 2 and a node whose projections include clause 3.
- the facility finds these two nodes.
- the facility removes the nodes from TREENODES, and combines them to form a new node covering clauses 2 and 3, and adds this new node back into TREENODES.
- TREENODES contains the elements given in Figure 14.
- the facility then permutes the other bags, i.e., bags 2, 3, 4, 5.
- the first bag is bag 2.
- the facility attempts to apply the first hypothesized relation in bag 2, hypothesis 5, which specifies an ELABORATION relation with clause 3 as the nucleus and clause 4 as the satellite.
- the facility searches in TREENODES for a node whose projections include clause 3 and a node whose projections include clause 4. Nodes with these projections are found in TREENODES.
- the facility can attach clause 4 as a satellite of this node only if the original list of hypothesized relations, "ORIGINALHYPOTHS," includes an ELABORATION relation with clause 2 as a nucleus and clause 4 as a satellite. Since no such relation was hypothesized, it does not occur in ORIGINALHYPOTHS. The facility is therefore unable to attach clause 4 as a satellite of this node. If bag 2 contained more hypothesized relations, the facility would at this stage move on to consider them. Since bag 2 only contains a single relation, the facility has completed processing of the current bag and moves on to bag 3.
- relation 6 specifies an ASYMMETRICCONTRAST relation, with clause 4 as the nucleus and clause 5 as the satellite.
- the facility finds nodes whose projections include these two clauses and creates a new node covering clauses 4 and 5, as illustrated in Figure 15.
- the facility then permutes the other bags, i.e., bags 2, 4, 5.
- the first bag is bag 2.
- bag 2 contains a single hypothesized relation that cannot be applied, despite the presence of the projections specified by the relation.
- the facility therefore proceeds to bag 4, applying relation 1.
- Relation 1 specifies an ELABORATION relation with clause 1 as the nucleus and clause 2 as the satellite. Nodes with the requisite projections are found.
- Clause 2 occurs in a node with another projection, clause 3. Since ORIGINALHYPOTHS contains an ELABORATION relation, having clause 1 as the nucleus and clause 3 as the satellite, the facility constructs a new node covering clauses 1 through 3, as shown in Figure 16.
- the facility then permutes the other bags, i.e., bags 2 and 5.
- the first bag is bag 2.
- the facility is unable to find the two projections that the hypothesized relations in bag 2 cover, namely clauses 3 and 4.
- the facility therefore prunes all nodes in the search space that follows from the current permutation by removing bag 2 from further consideration.
- bag 2 contains a single hypothesis and the removal of bag 2 leaves only a single bag, bag 5.
- pruning the search space in this manner frequently yields substantial gains in efficiency. Measurements of the facility's execution indicate that pruning the search space reduces the number of passes through the loop that moves from one bag to the next by approximately one third.
- TREENODES contains the two nodes illustrated in Figure 17.
- the facility attempts to apply hypothesized relation 1 from bag 4.
- This relation specifies an ELABORATION relation with clause 1 as the head and clause 2 as a satellite. Both clause 1 and clause 2 are available in the projections of nodes in TREENODES.
- Clause 2 occurs as the projection of a node whose projections also include clause 3. Because ORIGINALHYPOTHS also includes an ELABORATION relation with clause 1 as the nucleus and clause 3 as the satellite, the facility joins clause 1 and the CONTRAST node that covers clauses 2 through 5.
- TREENODES now contains a single node covering clauses 1 through 5, as illustrated in Figure 18. This node is the head of a discourse structure tree representing the sample input text.
- the discourse structure trees generated by the facility in step 204 using the ConstructTree subroutine are binary branching trees in which each non-terminal node has two children. For non-terminal nodes representing symmetric relations, these two children are both nuclei. On the other hand, for non-terminal nodes representing asymmetric relations, one of the two child nodes is a more-important nucleus, while the other is a less-important satellite.
- Non-ary branching discourse structure trees constitute complete representations of the discourse structure of the input text for which they are generated
- some users of discourse structure trees prefer that discourse structure trees be presented as n-avy branching trees.
- a nonterminal node may have an unlimited number of children.
- Non-te ⁇ ninal nodes representing symmetric relations may have any number of nucleus children.
- non-terminal nodes representing asymmetric relations have one nucleus child, and may have any number of satellite children.
- Figure 19 is a flow diagram showing the steps preferably performed by the facility in order to convert a binary-branching discourse structure tree into an «-ary- branching discourse structure tree.
- steps 1901 -1907 the facility loops through each terminal node in the binary branching discourse structure tree, in a bottom-up traversal of the discourse structure tree. For each non-terminal node, if the non-terminal node has a parent, then the facility continues in step 1903, else the facility continues in step 1907. In step 1903, if the non-terminal node represents a symmetric relation, then the facility continues in step 1904, else the non-terminal node represents an asymmetric relation and the facility continues in step 1905.
- step 1904 while the current nonterminal node represents a symmetric relation, if the parent of the current non-terminal node represents the same relation type as the current non-terminal node, then the facility continues in step 1906 to merge the current non-terminal node into its parent node, else the facility continues in step 1907.
- step 1905 where the current non-terminal node represents an asymmetric relation, if the parent node represents any asymmetric relation, then the facility continues in step 1906 to merge the current non-terminal node into its parent node, else the facility continues in step 1907. After merging the non- terminal node into the parent in step 1906, the facility continues in step 1907.
- step 1907 the facility loops back to step 1901 to process the next non-terminal node of the discourse structure tree. After all of the non-terminal nodes of the discourse structure tree have been processed, the binary branching tree has been converted into an n-ar ⁇ branching tree and these steps conclude.
- Figures 20 and 21 illustrate the conversion of a binary branching discourse structure tree into an n-ary branching discourse structure tree.
- Figure 20 is a discourse structure tree diagram showing a sample binary branching discourse structure tree.
- the binary branching discourse structure tree 2000 contains terminal nodes 2001- 2007.
- Non-terminal node 2011 represents a RESULT relation having node 2003 as its nucleus and node 2004 as its satellite.
- Non-terminal node 2012 represents a MEANS relation having node 2011 as its nucleus and node 2005 as its satellite.
- Non-terminal node 2013 represents an ELABORATION relation having node 2012 as its nucleus and node 2002 as its satellite.
- Non-terminal node 2014 represents a CIRCUMSTANCE relation having node 2013 as its nucleus and node 2001 as its satellite.
- Node 2015 represents a SEQUENCE relation having nodes 2014 and 2006 as its nuclei.
- non-terminal node 2016 represents a SEQUENCE relation having nodes 2015 and 2007 as its nuclei.
- this discourse structure tree is a binary branching discourse structure tree, as each non-terminal node has exactly two children.
- Figure 21 is a discourse structure tree diagram showing an n-ary branching discourse structure tree constructed by the facility using the steps shown in Figure 19 from the binary branching discourse structure tree shown in Figure 20. It can be seen in Figure 21 that, in the discourse structure tree 2100, non-terminal nodes 2011- 2013 shown in Figure 20 have been combined into node 2014 to form node 2114.
- non-terminal node 2014 represents the RESULT relation having node 2103 as its nucleus and node 2104 as its satellite; the MEANS relation having node 2103 as its nucleus and node 2105 as its satellite; the ELABORATION relation having node 2103 as its nucleus and node 2102 as its satellite; and the CIRCUMSTANCE relation having node 2103 as its nucleus and node 2101 as its satellite.
- non-terminal node 2015 shown in Figure 20 has been combined into node 2016 to form non-terminal node 2016.
- non-terminal node 2116 represents a SEQUENCE relation having as its nuclei nodes 2114, 2106, and 2107.
- the facility is able to transform any binary branching discourse structure tree into an equivalent n-ary branching discourse structure tree.
- the facility proceeds to generate a synopsis from the highest-scoring discourse structure tree in accordance with step 206.
- Figure 22 is a flow diagram showing the steps preferably performed by the facility in order to generate a synopsis of the input text based on the highest-scoring discourse structure tree generated by the facility. These steps use an integer value, called a "cutoff depth,” to determine the level of detail included in the synopsis. The smaller the cutoff depth, the less detailed information is included in the synopsis.
- steps 2201-2205 the facility loops through each node in the highest-scoring discourse structure tree in the order of a depth-first traversal. For each node, if the node is at least as shallow in the discourse structure tree at the cutoff depth, then the facility continues in step 2203, else the facility continues in step 2205.
- the depth of each node is defined to be the number of satellite arcs that separate the node from the head of the discourse structure tree.
- step 2203 if the current node is a terminal node in the discourse structure tree, then the facility continues in step 2204, else the facility continues in step 2203.
- step 2204 the facility concatenates to the synopsis the text of the clause that is represented by the current node.
- step 2205 the facility loops back to step 2201 to process the next node in the depth-first traversal.
- the synopsis is complete, and these steps conclude.
- the level of detail included in the generated synopsis is controlled by the selection of the cutoff depth, which is preferably configurable by the user.
- Table 7 shows the synopsis generated for the sample input text for each possible cutoff depth. It can be seen from Table 7 that synopses generated with shallower cutoff depths more concisely summarize the input text, while synopses with deeper cutoff depths contain additional levels of detail about the input text.
- the facility may be used to determine the discourse structure within a sample input text where the text of a terminal node is either larger or smaller than the clauses discussed herein.
- the facility may be used to determine the discourse structure within forms of natural language expression other than text, such as speech and visual signing, or of "written" natural language that is expressed in a non-textual form, such as a list of references into a lexical knowledge base.
- the facility may be straightforwardly adapted to use syntactic and semantic information about the input text obtained from sources other than a parser, such as syntactic and semantic information obtained from a precompiled lexical knowledge base.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Machine Translation (AREA)
Abstract
The present invention is directed to recognizing a discourse structure of a body of text. In a preferred embodiment, a discourse structure recognition facility utilizes syntactic information associated with the body of text to generate a discourse structure tree that characterizes the discourse structure of the body of text. The facility first identifies in the body of text a number of clauses. The facility then determines, for each distinct pair of clauses, which of a number of possible discourse relations should be hypothesized between the pair of clauses, based on the syntactic structure and semantic of the body of text relative to the pair of clauses. The facility then applies the hypothesized relations to the clauses in order to produce a discourse structure tree characterizing the discourse structure of the body of text. In certain embodiments, the facility further generates from the produced discourse structure tree a synopsis of the body of text reflecting the primary goals pursued by its author.
Description
AUTOMATICALLY RECOGNIZING THE DISCOURSE STRUCTURE OF A BODY OF TEXT
TECHNICAL FIELD
The invention relates generally to the field of computational linguistics, and, more specifically, to the field of discourse processing.
BACKGROUND OF THE INVENTION
Discourse theory is an approach to understanding the content and significance of natural language documents and other units of natural language. According to discourse theory, each natural language document has a "discourse structure" that reflects the purposes of the document's author in authoring the document. Discerning the discourse structure of a natural language document is commonly regarded as an important component of understanding the document.
The discourse structure of documents is frequently modeled using hierarchical "discourse structure trees," or simply "trees," such as the "rhetorical structure theory trees" ("RST trees") proposed by Mann and Thompson, "Relational Propositions in Discourse," Discourse Processes 9:57-90 (1986). Such discourse structure trees characterize the relative significance of the constituent segments of the documents, called "propositions." These propositions are generally clauses or phrases. A discourse structure tree identifies the relationships, or "discourse relations," that exist between propositions in the document.
Discourse structure trees are typically generated manually, at significant cost, by experts trained as linguists. Because the manual generation of discourse structure trees is expensive, they remain a largely a theoretical tool used to study discourse in general. An automated approach to inexpensively generating discourse structure trees representing the discourse structure of natural language documents, however, would permit the application of discourse theory to the analysis of arbitrary documents.
SUMMARY OF THE INVENTION
The invention is directed to automatically recognizing the discourse structure of a body of text or other natural language expression. The discourse structure exhibited by a body of text is the organization, or "structure," of the multiple-word textual elements, or "propositions," from which the body of text is constructed. Recognizing the discourse structure of a body of text helps to facilitate the discovery of the author's goals in writing the body of text, and thus helps in some senses to identify the central meaning of the body of text.
In order to recognize the discourse structure of an input text, the facility generates one or more discourse structure trees. As discussed herein, a discourse structure tree is a data structure representing the discourse structure of an input text. The input text is generally devisable into a series of clauses. While the discourse structure trees generated by the facility for the input text, strictly speaking, characterize the discourse structure between the propositions that are the logical representation of these clauses, the facility generates the discourse structure trees based upon the content of the clauses, rather than on the basis of any rigorous logical representations of the clauses that might be properly termed propositions. Thus, the facility's generation of discourse structure trees is not reliant upon the generation of rigorous logical propositions from the clauses of the input text. In accordance with the invention, the facility receives the input text, as well as data produced by performing a rigorous syntactic parse of the input text. This data preferably includes one or more syntactic parse graphs representing the syntactic structure of the input text, and corresponding logical forms, which provide a normalized view of this syntactic structure including semantic information. The facility uses the logical forms to divide the input text into clauses. These clauses are ultimately arranged in a discourse structure tree, where they are connected by discourse relations in a particular configuration indicating the discourse structure of the input text.
After identifying the clauses in the input text, the facility considers these clauses in pairs. It is important to note that the facility attempts to hypothesize discourse relations between every pair of clauses, not merely between adjacent clauses.
For each pair of clauses, the facility uses a set of cues to identify the discourse relations that might reasonably relate the clauses of the pair. These identified relations are said to be "hypothesized" between the clauses of the pair. The cues used specify one or more levels of conditions that must be satisfied by the clauses of the pair, or by the contents of the logical form or syntactic parse relative to clauses of the pair, in order for a particular relation to be hypothesized between the pair. The cues further each specify a quantitative score indicating the relative likelihood that the relation hypothesized between the pair is correct where the cue's conditions are satisfied. When several cues for the same relation are satisfied for the same pair of clauses, the scores specified by those cues are added to yield the score for the hypothesized relation.
After the facility has hypothesized relations between each pair of clauses, the facility groups the hypothesized relations in "bags" each containing all of the hypothesized relations between a given pair of clauses. Hypothesized relations are ordered in each bag in decreasing order of their scores. The bags themselves are, in turn, ordered in decreasing order of the scores of their first hypothesized relation, i.e., the highest single score in the bag. The facility then proceeds to construct one or more discourse structure trees in a bottom-up manner from terminal nodes corresponding to the clauses by attempting to apply the hypothesized relations to the terminal nodes in a manner that iterates first through the first hypothesized relation in each bag, then through successive hypothesized relations in each bag. The construction algorithm utilizes backtracking in its traversal of the bags in order to prune from consideration groups of trees that would not be well-formed. Each time a hypothesized relation actually combines two nodes, the resulting combination is added to the tree as a nonterminal node. The new node has a score equal to the score of the hypothesized relation, plus the scores, if any, of the nodes that are combined. Thus, every tree constructed in this manner has a score, associated with its root node, that reflects the relative likelihood that the tree is the correct one for the input text.
Each tree constructed in this manner is a binary-branching tree, in which each non-terminal node has exactly two children. As π-ary-branching discourse structure trees are considered, in some respects, to be more useful than binary-branching
discourse structure trees, the facility preferably "flattens" the constructed binary- branching trees to form n-ary-branching trees.
The facility may further generate from any of the trees constructed in this manner a synopsis of the input text reflecting the primary goals pursued by the author. To do so, the facility performs a breadth-first traversal of the tree from its head to a specified depth, concatenating to the summary the text of the clause represented by each visited node.
Thus, the facility of the present invention preferably hypothesizes discourse relations between clauses on the basis of the text of the clauses, without relying upon manually-generated propositional representations of the input text, utilizing robust cues that test syntactic and semantic characteristics of the text of the clauses; applies hypothesized discourse relations to generate discourse relation trees in an order based upon their segregation into bags and utilizing backtracking; flattens binary-branching discourse structure trees into «-ary-branching discourse structure trees; and generates from generated discourse structure trees a synopsis of the input text.
BRIEF DESCRIPTION OF THE DRAWINGS
Figure 1 is a high-level block diagram of the general-purpose computer system upon which the facility preferably executes.
Figure 2 is a high-level flow diagram showing an overview of the steps performed by the facility in order to generate one or more discourse structure trees for an input text and generate a synopsis of the input text.
Figure 3 is a parse tree diagram showing the parse tree produced for the first sentence of the sample input text.
Figure 4 is a logical form diagram showing the logical form graph generated for the first sentence of the sample input text.
Figure 5 is a parse tree diagram showing the parse tree generated for the second sentence of the sample input text.
Figure 6 is a logical form diagram showing the logical form graph generated by the facility for the second sentence of the sample input text.
Figure 7 is a parse tree diagram showing the parse tree generated for the third sentence of the sample input text.
Figure 8 is a logical form diagram showing the logical form graph generated by the facility for the third sentence of the sample input text. Figure 9 is a parse tree diagram showing the parse tree generated for the fourth sentence of the sample input text.
Figure 10 is a logical form diagram showing the logical form graph generated by the facility for the fourth sentence of the sample input text.
Figure 11 is a flow diagram showing the steps preferably performed by the facility in order to hypothesize discourse relations between the clauses identified in the input text.
Figure 12 is a flow diagram showing the steps preferably performed by the facility in order to generate discourse structure trees for the input text.
Figure 13 is a discourse structure tree diagram showing the addition of terminal nodes to the tree.
Figure 14 is a discourse structure tree diagram showing the addition of a new node covering clauses 2-3.
Figure 15 is a discourse structure tree diagram showing the addition of a new node covering clauses 4 and 5. Figure 16 is a discourse structure tree diagram showing the addition of a new node covering clauses 1-3.
Figure 17 is a discourse structure tree diagram showing the facility backtracking from the tree shown in Figure 16 to the tree shown in Figure 15, then adding a new node covering clauses 3-5. Figure 18 is a discourse structure tree diagram showing the first complete discourse structure tree generated by the facility.
Figure 19 is a flow diagram showing the steps preferably performed by the facility in order to convert a binary-branching discourse structure tree into an n-ary- branching discourse structure tree.
Figure 20 is a discourse structure tree diagram showing a sample binary branching discourse structure tree.
Figure 21 is a discourse structure tree diagram showing an n-ary branching discourse structure tree constructed by the facility using the steps shown in Figure 20 from the binary branching discourse structure tree shown in Figure 21.
Figure 22 is a flow diagram showing the steps preferably performed by the facility in order to generate a synopsis of the input text based on the highest-scoring discourse structure tree generated by the facility.
DETAILED DESCRIPTION OF THE INVENTION The invention is directed to automatically recognizing the discourse structure of a body of text or other natural language expression. The discourse structure exhibited by a body of text is the organization, or "structure," of the multiple-word textual elements, or "propositions," from which the body of text is constructed. Recognizing the discourse structure of a body of text helps to facilitate the discovery of the author's goals in writing the body of text, and thus helps in some senses to identify the central meaning of the body of text.
In order to recognize the discourse structure of a body of text ("input text"), the facility generates one or more discourse structure trees. As discussed herein, a discourse structure tree is a data structure representing the discourse structure of an input text. The input text is generally devisable into a series of clauses. While the discourse structure trees generated by the facility for the input text, strictly speaking, characterize the discourse structure between the propositions that are the logical representation of these clauses, the facility generates the discourse structure trees based upon the content of the clauses, rather than on the basis of any rigorous logical representations of the clauses that might be properly termed propositions. Thus, the facility's generation of discourse structure trees is not reliant upon the generation of rigorous logical propositions from the clauses of the input text.
A sample discourse structure tree, discussed in greater detail below, is shown in Figure 18. A discourse structure tree contains a number of nodes arranged in
a tree. Each node represents, or "covers," a contiguous set, or "span" of clauses. Each node further identifies the most important nodes, called "projections," among the clauses that it covers. The leaves, or "terminal nodes," of a discourse structure tree each correspond to a single clause. The non-terminal nodes of a discourse structure tree, on the other hand, correspond to multiple clauses combined, or "related," by one or more discourse relations. One non-terminal node, called "root node," covers all of the clauses, and has all of the terminal nodes among its descendants.
A number of different types of discourse relations are used to represent the kinds of relationships that can occur between clauses (or between groups of clauses). These discourse relation types are divided into two categories: asymmetric discourse relation types and symmetric discourse relation types. Asymmetric discourse relations relate clauses in a way that demonstrates that the author regards the clauses as having different levels of importance within the input text. The clauses related by an asymmetric discourse relation thus (1) include a more important, "nucleus," clause and a less important, "satellite," clause, and (2) have as their list of their projections only the projections of their nucleus child. As an example, clauses A and B below are related by an ELABORATION relation describing two clauses, the satellite of which elaborates on the nucleus, in which the node representing clause A is the nucleus and the node representing clause and B is the satellite:
A. Binoculars enable their users to view scenes at a distance.
B. They are used, for example, by birdwatchers to avoid disturbing their avian subjects.
Figure 18 shows representations of three asymmetric relations: an ASYMMETRIC CONTRAST relation represented in node 1812 having node 1804 as its nucleus and node 1805 as its satellite; an ELABORATION relation represented in node 1814 having node 1803 as its nucleus and node 1812 as its satellite; and an ELABORATION relation
represented in node 1815 having node 1801 as its node as its nucleus and node 1811 as its satellite.
Symmetric discourse relations, on the other hand, relate clauses in a way that demonstrates that the author regards the clauses as having similar importance within the input text. As such, nodes representing symmetric discourse relations (1) have only nuclei as children, and (2) have as their list of projections the union of the projections of their children. As an example, clauses C and D below are related by a SEQUENCE relation describing an ordered succession of clauses, in which nodes representing clauses C and D are both nucleus children:
C First, beat the egg whites.
D. Then, fold in the sugar.
Figure 18 shows a representation of one symmetric relation: a
CONTRAST relation represented by node 1811 having as its nuclei nodes 1802 and 1814. Formally, a valid, or "well-formed," discourse structure tree exhibits four characteristics: (1) "completeness," i.e., the discourse structure tree covers the entire input text; (2) "connectedness," i.e., the discourse structure tree contains a terminal node for each clause of the input text; (3) "uniqueness," i.e., each node in the discourse structure tree has a single parent; and (4) "adjacency," i.e., only adjacent spans may be grouped together node to form larger spans — that is, non-terminal nodes in the discourse structure tree must cover only contiguous spans.
In accordance with the invention, the facility receives as its input the input text, as well as data produced by performing a rigorous syntactic parse of the input text. This data preferably includes one or more syntactic parse graphs representing the syntactic structure of the input text, and corresponding logical forms, which provide a normalized view of this syntactic structure including semantic information. The facility uses the logical forms to divide the input text into clauses. These clauses are ultimately
arranged in a discourse structure tree, where they are connected by discourse relations in a particular configuration indicating the discourse structure of the input text.
After identifying the clauses in the input text, the facility considers these clauses in pairs. It is important to note that the facility attempts to hypothesize discourse relations between every pair of clauses, not merely between adjacent clauses. For each pair of clauses, the facility uses a set of cues to identify the discourse relations that might reasonably relate the clauses of the pair. These identified relations are said to be "hypothesized" between the clauses of the pair. The cues used specify one or more levels of conditions that must be satisfied by the clauses of the pair, or by the contents of the logical form or syntactic parse relative to clauses of the pair, in order for a particular relation to be hypothesized between the pair. The cues further each specify a quantitative score indicating the relative likelihood that the relation hypothesized between the pair is correct where the cue's conditions are satisfied. When several cues for the same relation are satisfied for the same pair of clauses, the scores specified by those cues are added to yield the score for the hypothesized relation.
After the facility has hypothesized relations between each pair of clauses, the facility groups the hypothesized relations in "bags" each containing all of the hypothesized relations between a given pair of clauses. Hypothesized relations are ordered in each bag in decreasing order of their scores. The bags themselves are, in turn, ordered in decreasing order of the scores of their first hypothesized relation, i.e., the highest single score in the bag. The facility then proceeds to construct one or more discourse structure trees in a bottom-up manner from terminal nodes corresponding to the clauses by attempting to apply the hypothesized relations to the terminal nodes in a manner that iterates first through the first hypothesized relation in each bag, then through successive hypothesized relations in each bag. The construction algorithm utilizes backtracking in its traversal of the bags in order to prune from consideration groups of trees that would not be well-formed. Each time a hypothesized relation actually combines two nodes, the resulting combination is added to the tree as a nonterminal node. The new node has a score equal to the score of the hypothesized relation, plus the scores, if any, of the nodes that are combined. Thus, every tree
constructed in this manner has a score, associated with its head node, that reflects the relative likelihood that the tree is the correct one for the input text.
Each tree constructed in this manner is a binary-branching tree, in which each non-terminal node has exactly two children. As «-ary-branching discourse structure trees are considered, in some respects, to be more useful than binary-branching discourse structure trees, the facility preferably "flattens" the constructed binary- branching trees to form n-ary-branching trees.
The facility may further generate from any of the trees constructed in this manner a synopsis of the input text reflecting the primary goals pursued by the author. To do so, the facility performs a breadth-first traversal of the tree from its head to a specified depth, concatenating to the summary the text of the clause represented by each visited node.
Figure 1 is a high-level block diagram of the general-purpose computer system upon which the facility preferably executes. The computer system 100 contains a central processing unit (CPU) 110, input/output devices 120, and a computer memory (memory) 130. Among the input/output devices is a storage device 121, such as a hard disk drive, and a computer-readable media drive 122, which can be used to install software products, including the facility, which are provided on a computer-readable medium, such as a CD-ROM. The memory 130 preferably contains the discourse structure recognition facility ("facility") 131 ; a lexical knowledge base 132 containing lexical and semantic information relating to the natural language in which the input text is expressed; a parser 133 for deriving from the input text morphological, syntactic, and semantic information inherent therein, including logical forms; a discourse relation hypothesizing data structure 134 used in order to hypothesize discourse relations that may relate pairs of clauses within the input text; and a hypothesized discourse relation data structure 135 used by the facility to represent the set of discourse relations hypothesized between the clauses of the input text and to construct discourse structure trees representing the discourse structure of the input text. Because the parser 133 and the facility 131 can together identify the morphological, syntactic, semantic, and discourse structure of the input text, the parser and facility are collectively known as a
natural language processing system for identifying the morphological, syntactic, semantic, and discourse structure of a natural language input text. While the facility is preferably implemented on a computer system configured as described above, those skilled in the art will recognize that it may also be implemented on computer systems having different configurations.
Figure 2 is a high-level flow diagram showing an overview of the steps performed by the facility in order to generate one or more discourse structure trees for an input text and generate a synopsis of the input text. In step 201, the facility parses the input text and produces a parse tree and logical forms. For a detailed discussion of parsing natural language input text, refer to U.S. Patent Application No. 08/265,845, entitled "METHOD AND SYSTEM FOR BOOTSTRAPPING STATISTICAL PROCESSING INTO A RULE-BASED NATURAL LANGUAGE PARSER." For a detailed description of generating logical forms from natural language input text, refer to U.S. Patent Application No. 08/674,610, entitled "METHOD AND SYSTEM FOR COMPUTING SEMANTIC LOGICAL FORMS FROM SYNTAX TREES." These two applications are hereby incorporated by reference in their entirety.
In step 202, the facility uses the logical forms generated in step 201 to identify the clauses within the input text. In step 203, the facility uses a set of cues to hypothesize possible discourse relations between pairs of the clauses identified in step 202. In step 204, the facility applies the relations hypothesized in step 203 in order to construct one or more discourse structure trees for the input text. A score is generated for each discourse structure tree indicating the relative likelihood that that discourse structure tree correctly models the discourse structure of the input text. In step 205, the facility "flattens" the binary-branching discourse structure trees constructed in step 204 to transform them into the more common π-ary-branching trees. In step 206, the facility generates from the highest-weighted discourse structure tree a synopsis of the sample input text containing the most important clauses of the input text. After step 206, these steps conclude.
In order to describe the facility more completely, its operation is described in detail hereinafter with reference to a simple example. The sample input text for the example is shown in Text Block 1.
The aardwolf is classified as Proteles cristatus. It is usually placed in the hyena family, Hyaenidae. Some experts, however, place the aardwolf in a separate family, Protelidae, because of certain anatomical differences between the aardwolf and the hyena. For example, the aardwolf has five toes on its forefeet, whereas the hyena has four.
Text Block 1 : Sample Input Text
In accordance with step 201, the facility first parses each sentence of the sample input text, generating for each sentence both a parse tree and a logical form. Figures 3-10 show the parse trees and logical forms for the four sentences of the sample input text.
Figure 3 is a parse tree diagram showing the parse tree produced for the first sentence of the sample input text. The parse tree 300 characterizes the syntactic structure of the sentence as a whole. Branches of the parse tree attached to the head node 301 describe different components of the sentence. A noun phrase branch 310 describes the noun phrase "the aardwolf." An auxiliary phrase branch 320 describes the verb "is." A verb branch 330 describes the verb "classified." A prepositional phrase branch 340 describes the prepositional phrase "as Proteles cristatus." Finally, a punctuation branch 350 describes the period that ends the sentence.
Figure 4 is a logical form diagram showing the logical form graph generated for the first sentence of the sample input text. The logical form 400 describes the syntactic organization of the sentence in a more abstract way than the parse tree. A logical form is based on a relatively small number of syntactic-semantic relations via which a verb may be modified by other words in a sentence. Several of the labels used to identify these relations are described in Table 1. Additional such labels are described in U.S. Patent Application No. 08/674,610.
Table 1 : Labels Used in Logical Forms
The logical forms generated by parsing the input text are used by the facility (l) to determine how to divide the input text into clauses, and (2) to test the conditions of the cues when hypothesizing discourse relations between clauses.
Like Figure 3, Figures 5, 7, and 9, are parse tree diagrams showing the parse trees generated for the second, third, and fourth sentences of the sample input text, respectively. Similarly, Figures 6, 8, and 10 are logical form diagrams showing the logical form graphs generated by the facility for the second, third, and fourth sentences of the sample input text, respectively.
After the facility has parsed the sentences of the input text in accordance with step 201, the facility proceeds to identify the clauses occurring in the input text in accordance with step 202. The criteria used by the facility to identify clauses are shown in Table 2. Those skilled in the art will be familiar with the linguistics terminology used in Tables 2 and 4 below. For additional discussion of such terminology, the reader is directed to Finegan, Edward, Language: Its Structure and Use, Harcourt Brace Jovanovich, San Diego, 1989, and Fromkin, Victoria, and Robert Rodman, An Introduction to Language, Holt, Rinehart, and Winston, New York, 1988.
Table 2: Criteria for Identifying Clauses
The facility exhaustively traverses the nodes of the generated logical forms, applying the criteria shown in Table 2 to each logical form node. For each logical form node satisfying all of the criteria, the facility identifies a separate clause.
In processing the sample input text of the example, the facility applies the criteria shown in Table 2 to the logical forms shown in Figures 4, 6, 8 and 10 to divide the sample input text into clauses as shown in Table 3.
Table 3 : Identified Clauses
In the logical forms shown in Figures 4, 6, and 8 for the first, second, and third sentences of the sample input text, respectively, only the head node satisfies all of the clause identification criteria shown in Table 2. For this reason, each of the first three sentences is identified as comprising only a single clause. In the case of the logical form for the fourth sentence of the sample input text shown in Figure 10, the clause identification criteria are satisfied both by the head node "havel" and an interior node, the "have2" node. The facility therefore divides the fourth sentence into two clauses, clause 4 and clause 5.
After the facility has identified the clauses occurring in the input text in accordance with step 202, the facility proceeds to hypothesize discourse relations between the identified clauses in accordance with step 203. Figure 11 is a flow diagram showing the steps preferably performed by the facility in order to hypothesize discourse relations between the clauses identified in the input text. At a high level, to hypothesize discourse relations between the clauses, these steps evaluate the conditions associated with each cue for every pair of clauses to determine whether to hypothesize the relation associated with the cue for that pair of clauses. Because discourse relations are directional, for a given pair of clauses, the facility applies the conditions of the cues once to consider hypothesizing the relations in the forward direction, and again to consider hypothesizing the relations in the backward direction. This is shown in the
flow diagram as looping through all of the ordered pairs of clauses, rather than merely looping through only the unordered pairs of clauses.
In steps 1101-1107, the facility loops through each ordered pair of identified clauses. For each ordered pair of identified clauses, in steps 1102-1110, the facility loops through each of the different discourse relation types. For each different discourse relation type, in steps 1103-1109, the facility loops through each discourse relation cue provided for the current discourse relation type. Table 4 shows a list of discourse relation cues preferably used by the facility. Each cue is an individual basis for asserting a particular discourse relation between an ordered pair of clauses. The cue has a relation name identifying the relation to be hypothesized if the cue can be successfully applied to the pair of clauses. Each cue further has a cue number used to refer to the cue. Each cue further has an ordered set of conditions, each of which must be satisfied by the clauses, identified as "Clause]," and "Clause2," in order to hypothesize the identified relation based upon the cue. The conditions are ordered in that a first condition is tested and must be satisfied before a second condition is tested. Similarly, for each additional condition of a cue, the condition that precedes it in the order must be evaluated and satisfied before the next condition is evaluated. Finally, each cue has a score indicating the relative likelihood that the identified relation correctly relates the two clauses of the ordered pair given the satisfaction of the ordered set of conditions.
Cue
Relation Name Number Condition 1 Condition 2 Score
LIST H7 Clause, precedes Clause-,, Clause, and Clause2 both 15 Clause, is not syntactically contain enumeration subordinate to Clause2, conjunctions {first second Clause, is not syntactically thud ) subordinate to Clause,, the subject of Clause2 is not a demonstrative pronoun, nor is it modified by a demonstrative, Clause, and Clause, agree m polarity, there is not alternation where the syntactic subject of Clause, is the pronoun "some" or has the modifier "some" and the subject of Clause, is the pronoun "other" or has the modifier "other", if the syntactic subject of Clause, is a pronoun, then the syntactic subject of Clause, must be the same pronoun, and Clause, is not dominated by and does not contain conjunctions compatible with the CONTRAST , ASYMMETRIC CONTRAST or ELABORATION relations
Cue
Relation Name Number Condition 1 Condition 2 Score
LIST H8 Clause, precedes Clause2, Clause, is passive or 10 Clause, is not syntactically contains an attributive subordinate to Clause,, predicate and Clause, is Clause, is not syntactically passive or contains an subordinate to Clause,, the attributive predicate subject of Clause, is not a demonstrative pronoun, nor is it modified by a demonstrative, Clause, and Clause2 agree in polarity, there is not alternation where the syntactic subject of Clause, is the pronoun "some" or has the modifier "some" and the subject of Clause, is the pronoun "other" or has the modifier "other", if the syntactic subject of Clause, is a pronoun, then the syntactic subject of Clause, must be the same pronoun, and Clause, is not dominated by and does not contain conjunctions compatible
ASYMMETRICCONT RAS I or ELABORATION relations
Cue
Relation Name Number Condition 1 Condition 2 Score
LIST H9 Clause, precedes Clause2, Clause-, is a coordinate 10 Clause, is not syntactically construction and the subordinate to Clause,, coordinating conjunction Clause2 is not syntactically is a List conjunction {also, subordmate to Clause,, the and, lastly ) subject of Clause2 is not a demonstrative pronoun, nor is it modified by a demonstrative, Clause, and Clause-, agree m polarity, there is not alternation where the syntactic subject of Clause, is the pronoun "some" or has the modifier "some" and the subject of Clause, is the pronoun "other" or has the modifier "other", if the syntactic subject of Clause2 is a pronoun, then the syntactic subject of Clause, must be the same pronoun, and Clause, is not dominated by and does not contain conjunctions compatible with the CONTRAS l , ASYMMETRICCONT RAS I or ELABORAT ION relations
Table 4: Discourse Relation Cues
It can be seen from Table 4 that the set of cues listed there enables the facility to identify discourse relations of the following types: ASYMMETRIC CONTRAST, CAUSE, CIRCUMSTANCE, CONCESSION, CONDITION, CONTRAST, ELABORATION, JOINT, LIST, PURPOSE, AND RESULT. It should be noted that the operation of the facility may be straightforwardly adapted by adding or removing cues to this list. Cues added in this manner for hypothesizing additional relation types can serve to expand the set of relation types that the facility is able to hypothesize and identify within the input text. For each cue for hypothesizing the current relation, in step 1104, the facility evaluates, in order, the ordered set of conditions associated with the current cue. In step 1105, if that set of conditions is satisfied, then the facility continues in step
1106, else the facility continues in step 1109. In step 1106, if the current relation has already been hypothesized, i.e., the relation occurs on a list of hypothesized relations, then the facility continues in step 1108, else the facility continues in step 1107. In step
1107, the facility adds the relation to the list of hypothesized relations. After step 1107,
the facility continues in step 1108. In step 1108, the facility adds the score of the current cue to the total score for the current relation. After step 1108, the facility continues in step 1109. In step 1109, the facility loops back to step 1103 to process the next cue for the current relation. After all of the cues have been processed, the facility continues in step 1110. In step 1110, the facility loops back to step 1102 to process the next relation type for the current ordered pair of clauses. After all of the relation types have been processed, the facility continues in step 1111. In step 1111 , the facility loops back to step 1101 to process the next ordered pair of clauses. After all of the ordered pairs of clauses have been processed, these step conclude.
In applying the steps shown in Figure 11 to the clauses of the example shown in Table 3, the facility hypothesizes the discourse relations shown in Table 5. For each hypothesized relation, Table 5 shows the relation type of the hypothesized relation, the ordered pair of clauses between which the relation is hypothesized, the cues whose condition sets were satisfied, and the total score for each hypothesized relation obtained by summing the scores of the cues whose condition sets were satisfied.
Table 5 : Hypothesized Relations
After the facility has hypothesized relations between the identified clauses in accordance with step 203, the facility proceeds to apply hypothesized relations to construct one or more discourse structure trees for the sample input text in accordance with step 204. Figure 12 is a flow diagram showing the steps preferably performed by the facility in order to generate discourse structure trees for the sample input text. In step 1201-1205, the facility segregates the hypothesized relations into "bags" to organize them for application. After the segregation, each bag contains all of the hypothesized relations that relate, in either direction, a particular pair of clauses. Thus, a bag is created for each "unordered pair" of clauses that is related by one or more hypothesized relations. Further, the hypothesized relations in each bag are sorted in decreasing order of their scores, and the bags themselves are sorted in decreasing order of their highest scores. This segregation process streamlines the application of the hypothesized relations in several respects. First, segregating the hypothesized relations that relate to a particular pair of propositions into a single bag enables the facility straightforwardly to ensure that each discourse structure tree formed by the application of the hypothesized relations contains no more than one node relating any pair of propositions. Second, sorting the bags and the hypothesized relations within the bags in accordance with their scores and applying the hypothesized relations in this order enables the facility to produce discourse structure trees in decreasing order of likelihood of correctness. In this way, the facility is able to generate quickly the trees most likely to be correct.
In steps 1201-1205, the facility loops through each hypothesized relation. For each hypothesized relation, in step 1202, if a bag exists for the unordered pair of clauses between which the relation is hypothesized, then the facility continues in step 1204, else the facility continues in step 1203. In step 1203, the facility creates a bag for the unordered pair of clauses between which the relation is hypothesized. After step 1203, the facility continues in step 1204. In step 1204, the facility adds the current hypothesized relation to the bag for the unordered pair of clauses between which the relation is hypothesized. In step 1205, the facility loops back to step 1201 to process the next hypothesized relation. After all of the hypothesized relations have been
processed, the facility continues in step 1206. In step 1206, the facility sorts the hypothesized relations in each bag in decreasing order of their scores. In step 1207, the facility sorts the bags in decreasing order of the scores of the first hypothesized relation in each bag, i.e., in decreasing order of the largest score among the hypothesized relations in each bag. The sorted bags for the example are shown in Table 6. For example, Bag 5, containing hypothesized relations 2 and 3, is for clauses 1 and 3. It can be seen that the hypothesized relations in bag 5 decline from a score of 25 for hypothesized relation 2 to a score of 20 for hypothesized relation 3. It can further be seen that the maximum scores of the bags decline from a score of 35 for hypothesized relation 4 in bag 1 to a score of 25 for hypothesized relation 2 in bag 5.
Table 6: Sorted Bags
In step 1208, the facility creates an empty discourse structure tree. In step 1209, the facility adds to this empty tree a terminal node for each clause in the input text. These terminal nodes form the basis for each tree generated for the input text.
Figure 13 is a discourse structure tree diagram showing the addition of terminal nodes to the tree. After such addition, the tree 1300 contains terminal nodes 1301-1305. The first line of text in each node identifies the set of clauses covered by the node. Each of the terminal nodes by definition covers only a single clause. For example, terminal node 1301 covers only clause 1. Each node further indicates the clauses among its covered clauses that are "projected from," or are the most important
among, its covered clauses. Again, each terminal node projects its only clause. For example, terminal node 1301 projects its only covered clause, clause 1.
In step 1210, the facility calls a recursive subroutine entitled ConstructTree in order to construct the desired number of discourse structure tree for the input text. After the facility returns from this recursive call, the desired number of trees have been constructed, and these steps conclude. A pseudocode definition of the ConstructTree recursive subroutine is shown in Code Block 1. At a high level, if allowed to run to completion, ConstructTree would create all possible well-formed discourse structure trees that are compatible with the hypothesized discourse relations. As actually implemented, however, the researcher specifies a desired number of trees — usually ten or twenty. ConstructTree then produces either the stipulated number of trees or all possible trees, whichever is the smaller number. Since the algorithm produces better trees first, it is usually not necessary to produce many trees before an analysis is produced that a discourse analyst would consider to be plausible. The recursive, back-tracking nature of ConstructTree prevents the construction of a great number of ill-formed trees. For example, consider an imaginary set of five hypotheses, Rx ... R5, where applying R2 after R. results in an invalid tree. Rather than attempting to construct hypotheses by testing all permutations of these five hypotheses and then examining the trees only to discover that trees formed by applying {R, R2 R3 R4 R5} or {Rj R2 R3 R5 R4} and so on were invalid, ConstructTree applies R], then R2. It immediately determines that an ill-formed subtree results, and so does not bother to complete the construction of any trees that would follow from those first two steps. A total of six trees are thus not even produced, resulting in considerable gains in efficiency. The trees produced by ConstructTree are stored in a list. The Value attribute of the root node of each tree can be used to evaluate a tree — since the Value attribute is determined by adding the heuristic scores of the relations used to construct the tree, a tree constructed by using relations with high heuristic scores will have a greater Value than a tree constructed by using relations with low heuristic scores. Ideally, ConstructTree ought to produce highly ranked trees produced before low
ranked ones. Unfortunately, ConstructTree occasionally produces trees out of sequence. To correct this anomalous situation, the list of trees produced by ConstructTree is sorted according to the Value attribute of the root node of each tree, to ensure that a tree judged by a discourse analyst to be the preferred analysis for the text occurs as the top ranked tree, with alternative plausible analyses also occurring near the top of the sorted list.
Function ConstructTree (HYPOTHESES, SUBTREES) Begin Function ConstructTree
Let COPYHYPOTHESES be equal to a copy of the list HYPOTHESES
If the desired number of trees have been constructed
Return Else If SUBTREES has only one element
If this RST tree is not identical to one that has already been stored, then store it Return Else If COPYHYPOTHESES contains at least one element and SUBTREES has more than one element Then For each bag in COPYHYPOTHESES Let ONEBAG denote the current bag Let REMAININGBAGS be equal to COPYHYPOTHESES except the current bag
If projections of elements in SUBTREES match the nucleus and other element (satellite or conucleus) specified by the hypothesized relations in ONEBAG, then
For each hypothesis in ONEBAG, going from the highest scored hypothesis to the lowest scored Let ONEELEMENT denote the current hypothesis
1 Search in SUBTREES for elements with the projects specified by ONEELEMENT
2 Let Nuc be the subtree whose projections includes the nucleus specified by ONEELEMENT
3 Let OTHER be the subtree whose projections includes the other member (a satellite or a conucleus) specified by ONEELEMENT
4 In ALLHYPOTHESES, there must be a hypothesized relation between every member of the projections of Nuc and every member of the projections of OTHER The relation must be the same as the one specified by ONEELEMENT
If (4) is true //begin processing the subtrees whose projects satisfy ONEELEMENT
If combining the subtrees would result in a new node covering a discontinuous set of clauses, then return
Let REMAININGSUBTREES equal SUBTREES
Remove Nuc and OTHER from REMAININGSUBTREES
Create a new subtree by joining Nuc and OTHER as specified by ONEELEMENT
Set the Pod attribute of this new subtree equal to the heuristic score of the hypothesis used to join these two nodes
Set the Value attribute of this new subtree equal to the heuristic score of the hypothesis used to join these two nodes plus the Value of Nuc plus the Value of OTHER
Add this new subtree as the first element of REMAININGSUBTREES
ConstructTree (REMAININGBAGS, REMAININGSUBTREES) If the desired number of trees have been constructed, then return End If // End processing the subtrees whose projects satisfy ONEELEMENT
Do the next element in this bag until there are no elements left to do Else //the projections are not found -this bag can therefore not apply in any subsequent permutation
Remove ONEBAG from COPYHYPOTHESES End If Do the next bag in COPYHYPOTHESES until there are no bags left to do // End the processing of the remaining bags Else // HYPOTHESES IS empty
Return. End If
End Function ConstructTree
Code Block 1 : Pseudo-code for ConstructTree Subroutine
In applying hypothesized relations to generate trees, the facility begins with bag 1, .and attempts to apply the first hypothesized relation, relation 4. This
relation specifies a CONTRAST relation between clauses 2 and 3. The facility searches the current nodes of the tree, "TREENODES," for a node whose projections include clause 2 and a node whose projections include clause 3. The facility finds these two nodes. The facility removes the nodes from TREENODES, and combines them to form a new node covering clauses 2 and 3, and adds this new node back into TREENODES. At this point, TREENODES contains the elements given in Figure 14.
The facility then permutes the other bags, i.e., bags 2, 3, 4, 5. In the first permutation, the first bag is bag 2. The facility attempts to apply the first hypothesized relation in bag 2, hypothesis 5, which specifies an ELABORATION relation with clause 3 as the nucleus and clause 4 as the satellite. The facility searches in TREENODES for a node whose projections include clause 3 and a node whose projections include clause 4. Nodes with these projections are found in TREENODES. The node whose projections include clause 3, the CONTRAST node resulting from the application of the first hypothesis in bag 1, also includes clause 2 in its projections. The facility can attach clause 4 as a satellite of this node only if the original list of hypothesized relations, "ORIGINALHYPOTHS," includes an ELABORATION relation with clause 2 as a nucleus and clause 4 as a satellite. Since no such relation was hypothesized, it does not occur in ORIGINALHYPOTHS. The facility is therefore unable to attach clause 4 as a satellite of this node. If bag 2 contained more hypothesized relations, the facility would at this stage move on to consider them. Since bag 2 only contains a single relation, the facility has completed processing of the current bag and moves on to bag 3.
The first hypothesized relation in bag 3, relation 6, specifies an ASYMMETRICCONTRAST relation, with clause 4 as the nucleus and clause 5 as the satellite. The facility finds nodes whose projections include these two clauses and creates a new node covering clauses 4 and 5, as illustrated in Figure 15.
The facility then permutes the other bags, i.e., bags 2, 4, 5. In the first permutation, the first bag is bag 2. As noted above, bag 2 contains a single hypothesized relation that cannot be applied, despite the presence of the projections specified by the relation. The facility therefore proceeds to bag 4, applying relation 1.
Relation 1 specifies an ELABORATION relation with clause 1 as the nucleus and clause 2 as the satellite. Nodes with the requisite projections are found. Clause 2 occurs in a node with another projection, clause 3. Since ORIGINALHYPOTHS contains an ELABORATION relation, having clause 1 as the nucleus and clause 3 as the satellite, the facility constructs a new node covering clauses 1 through 3, as shown in Figure 16.
The facility then permutes the other bags, i.e., bags 2 and 5. In the first permutation, the first bag is bag 2. In TREENODES, the facility is unable to find the two projections that the hypothesized relations in bag 2 cover, namely clauses 3 and 4. The facility therefore prunes all nodes in the search space that follows from the current permutation by removing bag 2 from further consideration. In this particular example, bag 2 contains a single hypothesis and the removal of bag 2 leaves only a single bag, bag 5. However, pruning the search space in this manner frequently yields substantial gains in efficiency. Measurements of the facility's execution indicate that pruning the search space reduces the number of passes through the loop that moves from one bag to the next by approximately one third.
The facility then moves on to consider bag 5. As with bag 2, the facility is not able to find both projections specified by the hypothesized relations in bag 5. The facility therefore removes bag 5 from further consideration. Since no bags now remain, the facility backtracks to the state of the tree in Figure 15, and continues processing. Eventually, TREENODES contains the two nodes illustrated in Figure 17.
The facility then attempts to apply hypothesized relation 1 from bag 4. This relation specifies an ELABORATION relation with clause 1 as the head and clause 2 as a satellite. Both clause 1 and clause 2 are available in the projections of nodes in TREENODES. Clause 2 occurs as the projection of a node whose projections also include clause 3. Because ORIGINALHYPOTHS also includes an ELABORATION relation with clause 1 as the nucleus and clause 3 as the satellite, the facility joins clause 1 and the CONTRAST node that covers clauses 2 through 5. TREENODES now contains a single node covering clauses 1 through 5, as illustrated in Figure 18. This node is the head of a discourse structure tree representing the sample input text.
The discourse structure trees generated by the facility in step 204 using the ConstructTree subroutine are binary branching trees in which each non-terminal node has two children. For non-terminal nodes representing symmetric relations, these two children are both nuclei. On the other hand, for non-terminal nodes representing asymmetric relations, one of the two child nodes is a more-important nucleus, while the other is a less-important satellite.
While these binary branching discourse structure trees constitute complete representations of the discourse structure of the input text for which they are generated, some users of discourse structure trees prefer that discourse structure trees be presented as n-avy branching trees. In «-ary branching discourse structure trees, a nonterminal node may have an unlimited number of children. Non-teπninal nodes representing symmetric relations may have any number of nucleus children. Similarly, non-terminal nodes representing asymmetric relations have one nucleus child, and may have any number of satellite children. Figure 19 is a flow diagram showing the steps preferably performed by the facility in order to convert a binary-branching discourse structure tree into an «-ary- branching discourse structure tree. In steps 1901 -1907, the facility loops through each terminal node in the binary branching discourse structure tree, in a bottom-up traversal of the discourse structure tree. For each non-terminal node, if the non-terminal node has a parent, then the facility continues in step 1903, else the facility continues in step 1907. In step 1903, if the non-terminal node represents a symmetric relation, then the facility continues in step 1904, else the non-terminal node represents an asymmetric relation and the facility continues in step 1905. In step 1904 while the current nonterminal node represents a symmetric relation, if the parent of the current non-terminal node represents the same relation type as the current non-terminal node, then the facility continues in step 1906 to merge the current non-terminal node into its parent node, else the facility continues in step 1907. In step 1905 where the current non-terminal node represents an asymmetric relation, if the parent node represents any asymmetric relation, then the facility continues in step 1906 to merge the current non-terminal node into its parent node, else the facility continues in step 1907. After merging the non-
terminal node into the parent in step 1906, the facility continues in step 1907. In step 1907, the facility loops back to step 1901 to process the next non-terminal node of the discourse structure tree. After all of the non-terminal nodes of the discourse structure tree have been processed, the binary branching tree has been converted into an n-arγ branching tree and these steps conclude.
Figures 20 and 21 illustrate the conversion of a binary branching discourse structure tree into an n-ary branching discourse structure tree. Figure 20 is a discourse structure tree diagram showing a sample binary branching discourse structure tree. The binary branching discourse structure tree 2000 contains terminal nodes 2001- 2007. Non-terminal node 2011 represents a RESULT relation having node 2003 as its nucleus and node 2004 as its satellite. Non-terminal node 2012 represents a MEANS relation having node 2011 as its nucleus and node 2005 as its satellite. Non-terminal node 2013 represents an ELABORATION relation having node 2012 as its nucleus and node 2002 as its satellite. Non-terminal node 2014 represents a CIRCUMSTANCE relation having node 2013 as its nucleus and node 2001 as its satellite. Node 2015 represents a SEQUENCE relation having nodes 2014 and 2006 as its nuclei. Finally, non-terminal node 2016 represents a SEQUENCE relation having nodes 2015 and 2007 as its nuclei. It can be seen from Figure 20 that this discourse structure tree is a binary branching discourse structure tree, as each non-terminal node has exactly two children. Figure 21 is a discourse structure tree diagram showing an n-ary branching discourse structure tree constructed by the facility using the steps shown in Figure 19 from the binary branching discourse structure tree shown in Figure 20. It can be seen in Figure 21 that, in the discourse structure tree 2100, non-terminal nodes 2011- 2013 shown in Figure 20 have been combined into node 2014 to form node 2114. Thus, non-terminal node 2014 represents the RESULT relation having node 2103 as its nucleus and node 2104 as its satellite; the MEANS relation having node 2103 as its nucleus and node 2105 as its satellite; the ELABORATION relation having node 2103 as its nucleus and node 2102 as its satellite; and the CIRCUMSTANCE relation having node 2103 as its nucleus and node 2101 as its satellite. Further, non-terminal node 2015 shown in Figure 20 has been combined into node 2016 to form non-terminal node 2016.
As such, non-terminal node 2116 represents a SEQUENCE relation having as its nuclei nodes 2114, 2106, and 2107. Thus, the facility is able to transform any binary branching discourse structure tree into an equivalent n-ary branching discourse structure tree. After the facility has converted the generated binary-branching discourse structure trees into n-ary-branching discourse structure trees in accordance with step 205, the facility proceeds to generate a synopsis from the highest-scoring discourse structure tree in accordance with step 206. Figure 22 is a flow diagram showing the steps preferably performed by the facility in order to generate a synopsis of the input text based on the highest-scoring discourse structure tree generated by the facility. These steps use an integer value, called a "cutoff depth," to determine the level of detail included in the synopsis. The smaller the cutoff depth, the less detailed information is included in the synopsis. In steps 2201-2205, the facility loops through each node in the highest-scoring discourse structure tree in the order of a depth-first traversal. For each node, if the node is at least as shallow in the discourse structure tree at the cutoff depth, then the facility continues in step 2203, else the facility continues in step 2205. The depth of each node is defined to be the number of satellite arcs that separate the node from the head of the discourse structure tree. In step 2203, if the current node is a terminal node in the discourse structure tree, then the facility continues in step 2204, else the facility continues in step 2203. In step 2204, the facility concatenates to the synopsis the text of the clause that is represented by the current node. In step 2205, the facility loops back to step 2201 to process the next node in the depth-first traversal. When all of the nodes have been processed, the synopsis is complete, and these steps conclude. As mentioned above, the level of detail included in the generated synopsis is controlled by the selection of the cutoff depth, which is preferably configurable by the user. Table 7 shows the synopsis generated for the sample input text for each possible cutoff depth. It can be seen from Table 7 that synopses generated with shallower cutoff depths more concisely summarize the input text, while synopses with deeper cutoff depths contain additional levels of detail about the input text.
Table 7: Synopsis Generated For Different Cutoff Depths
While this invention has been shown and described with reference to exemplary embodiments, it will be understood by those skilled in the art that various changes or modifications in form and detail may be made without departing from the scope of the invention. For example, the facility may be used to determine the discourse structure within a sample input text where the text of a terminal node is either larger or smaller than the clauses discussed herein. Also, the facility may be used to determine the discourse structure within forms of natural language expression other than text, such as speech and visual signing, or of "written" natural language that is expressed in a non-textual form, such as a list of references into a lexical knowledge base. Further, the facility may be straightforwardly adapted to use syntactic and semantic information about the input text obtained from sources other than a parser, such as syntactic and semantic information obtained from a precompiled lexical knowledge base.
Claims
CLAIMS I claim:
A method in a computer system for identifying in a natural language input text a morphological, syntactic, semantic, and discourse structure, the method comprising the steps of: differentiating individual words within the input text to discern the morphological structure of the input text; parsing the word-differentiated input text to generate syntactic information relating to individual words and groups of words in the input text to discern the syntactic structure of the input text; analyzing the syntactic structure of the input text in conjunction with semantic information resources to discern the semantic structure of the input text; identifying in the input text a plurality of clauses; for each pair of clauses, determining which of a plurality of possible discourse relations to hypothesize between the pair of clauses based upon the syntactic structure of the input text relative to the pair of clauses; and applying the hypothesized relations to the clauses to produce a discourse structure tree characterizing the discourse structure of the input text.
2. The method of claim 1, further comprising the step of generating from the input text a logical form containing at least a portion of the syntactic information utilized by the method.
3. The method of claim 1 wherein the determining step determines to hypothesize a discourse relation between a selected pair of clauses based upon the discerned semantic structure relative to the selected pair of clauses.
4. The method of claim 1 wherein the method further utilizes information relating to words within the input text procured from a lexical knowledge base, and wherein the determining step determines to hypothesize the discourse relation between a selected pair of clauses based upon the information procured from a lexical knowledge base relative to words occurring in the selected pair of clauses.
5. The method of claim 1, further including the step of retrieving lexicographic information relating to the differentiated words, and wherein the parsing step utilizes the retrieved lexicographic information to derive syntactic information from the input text.
6. A computer-readable medium for causing a computer system to identify in a natural language expression a morphological, syntactic, semantic, and discourse structure by performing the steps of: identifying words and clauses in the natural language expression; generating one or more syntax trees representing the syntactic structure of the natural language expression; generating from the generated syntax trees one or more logical forms each representing the semantic structure of a portion of the natural language expression; and generating from the generated logical forms a discourse tree relating the identified clauses and representing the discourse structure of the natural language expression.
7. A computer system for characterizing a natural language input text, comprising: a word differentiator for identifying words in the input text; a clause differentiator for identifying clauses in the input text; a syntax tree generator for generating one or more syntax trees representing the syntactic structure of the input text; a logical form generator for generating from the generated syntax trees one or more logical forms each representing the semantic structure of a portion of the input text; and generating from the generated logical forms a discourse tree relating the identified clauses and representing the discourse structure of the input text.
8. A computer memory containing a natural language processing result data structure corresponding to a natural language expression comprised of words, the data structure comprising: a syntactic substructure representing a syntactic structure relating the words of the natural language expression; a semantic content substructure representing semantic content of the natural language expression relating to words and groups of words occurring in the natural language expression; and a discourse substructure representing a discourse structure relating clauses occurring in the natural language expression.
9. The computer memory of claim 8 wherein the data structure further comprises: a morphology substructure representing the division of the natural language expression into words.
10. The computer memory of claim 8 wherein the data structure further comprises: a morphology substructure representing the division of the natural language expression into clauses.
11. The computer memory of claim 8 wherein the data structure further comprises: a morphology substructure representing the division of the natural language expression into sentences.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US95464297A | 1997-10-20 | 1997-10-20 | |
US08/954,642 | 1997-10-20 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO1999021104A1 true WO1999021104A1 (en) | 1999-04-29 |
Family
ID=25495732
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/US1998/021565 WO1999021104A1 (en) | 1997-10-20 | 1998-10-13 | Automatically recognizing the discourse structure of a body of text |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO1999021104A1 (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2020537224A (en) * | 2017-09-28 | 2020-12-17 | オラクル・インターナショナル・コーポレイション | Determining cross-document rhetorical connections based on parsing and identification of named entities |
US11556698B2 (en) | 2019-10-22 | 2023-01-17 | Oracle International Corporation | Augmenting textual explanations with complete discourse trees |
US11580298B2 (en) | 2019-11-14 | 2023-02-14 | Oracle International Corporation | Detecting hypocrisy in text |
US11782985B2 (en) | 2018-05-09 | 2023-10-10 | Oracle International Corporation | Constructing imaginary discourse trees to improve answering convergent questions |
US11809825B2 (en) | 2017-09-28 | 2023-11-07 | Oracle International Corporation | Management of a focused information sharing dialogue based on discourse trees |
US12141177B2 (en) | 2021-06-03 | 2024-11-12 | Oracle International Corporation | Data loss prevention system for cloud security based on document discourse analysis |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4914590A (en) * | 1988-05-18 | 1990-04-03 | Emhart Industries, Inc. | Natural language understanding system |
US5528491A (en) * | 1992-08-31 | 1996-06-18 | Language Engineering Corporation | Apparatus and method for automated natural language translation |
US5694523A (en) * | 1995-05-31 | 1997-12-02 | Oracle Corporation | Content processing system for discourse |
-
1998
- 1998-10-13 WO PCT/US1998/021565 patent/WO1999021104A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4914590A (en) * | 1988-05-18 | 1990-04-03 | Emhart Industries, Inc. | Natural language understanding system |
US5528491A (en) * | 1992-08-31 | 1996-06-18 | Language Engineering Corporation | Apparatus and method for automated natural language translation |
US5694523A (en) * | 1995-05-31 | 1997-12-02 | Oracle Corporation | Content processing system for discourse |
Non-Patent Citations (3)
Title |
---|
LOMBARDO V ET AL: "Syntactic trees and compact representations in natural language processing", PROCEEDINGS OF THE SIXTH INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE: METHODOLOGY, SYSTEMS, APPLICATIONS (AIMSA '94) ARTIFICIAL INTELLIGENCE: METHODOLOGY, SYSTEMS, APPLICATIONS, PROCEEDINGS OF 6TH INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELL, ISBN 981-02-1853-2, 1994, Singapore, World Scientific, Singapore, pages 333 - 342, XP002093594 * |
MARCU D: "Building up rhetorical structure trees", PROCEEDINGS OF THE THIRTEENTH NATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE AND THE EIGHTH INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE CONFERENCE, PROCEEDINGS OF NATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE, PORTLAND, OR, USA, 4-8 AUG. 1996, ISBN 0-262-51091-X, 1996, Cambridge, MA, USA, MIT Press, USA, pages 1069 - 1074 vol.2, XP002093593 * |
WINOGRAD T: "COMPUTER SOFTWARE FOR WORKING WITH LANGUAGE", SCIENTIFIC AMERICAN, vol. 251, no. 3, September 1984 (1984-09-01), pages 91 - 101, XP002046077 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2020537224A (en) * | 2017-09-28 | 2020-12-17 | オラクル・インターナショナル・コーポレイション | Determining cross-document rhetorical connections based on parsing and identification of named entities |
US11797773B2 (en) | 2017-09-28 | 2023-10-24 | Oracle International Corporation | Navigating electronic documents using domain discourse trees |
US11809825B2 (en) | 2017-09-28 | 2023-11-07 | Oracle International Corporation | Management of a focused information sharing dialogue based on discourse trees |
US11782985B2 (en) | 2018-05-09 | 2023-10-10 | Oracle International Corporation | Constructing imaginary discourse trees to improve answering convergent questions |
US11556698B2 (en) | 2019-10-22 | 2023-01-17 | Oracle International Corporation | Augmenting textual explanations with complete discourse trees |
US11580298B2 (en) | 2019-11-14 | 2023-02-14 | Oracle International Corporation | Detecting hypocrisy in text |
US11880652B2 (en) | 2019-11-14 | 2024-01-23 | Oracle International Corporation | Detecting hypocrisy in text |
US12141177B2 (en) | 2021-06-03 | 2024-11-12 | Oracle International Corporation | Data loss prevention system for cloud security based on document discourse analysis |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6112168A (en) | Automatically recognizing the discourse structure of a body of text | |
Kukich | Techniques for automatically correcting words in text | |
Grishman | Computational linguistics: an introduction | |
Klavans et al. | The balancing act: combining symbolic and statistical approaches to language | |
US6778949B2 (en) | Method and system to analyze, transfer and generate language expressions using compiled instructions to manipulate linguistic structures | |
KR100515641B1 (en) | Method for sentence structure analysis based on mobile configuration concept and method for natural language search using of it | |
US7366654B2 (en) | Learning translation relationships among words | |
US6330530B1 (en) | Method and system for transforming a source language linguistic structure into a target language linguistic structure based on example linguistic feature structures | |
US20060095250A1 (en) | Parser for natural language processing | |
EP0836144A2 (en) | Method and system for identifying and resolving commonly confused words in a natural language parser | |
WO1997004405A9 (en) | Method and apparatus for automated search and retrieval processing | |
Dahl | Translating spanish into logic through logic | |
US6535886B1 (en) | Method to compress linguistic structures | |
Bod et al. | Data-Oriented Language Processing. An Overview | |
Briscoe | Prospects for practical parsing of unrestricted text: Robust statistical parsing techniques | |
ElSayed | An Arabic natural language interface system for a database of the Holy Quran | |
WO1999021104A1 (en) | Automatically recognizing the discourse structure of a body of text | |
WO1999021106A1 (en) | Automatically recognizing the discourse structure of a body of text | |
Kuboň | Problems of robust parsing of Czech | |
Litkowski | Question Answering Using XML-Tagged Documents. | |
Huyck | A practical system for human-like parsing | |
Loftsson | Tagging and parsing Icelandic text | |
Đorđević et al. | Different approaches in serbian language parsing using context-free grammars | |
JP3698454B2 (en) | Parallel phrase analysis device and learning data automatic creation device | |
JPS62267872A (en) | Language analyzing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AK | Designated states |
Kind code of ref document: A1 Designated state(s): CA CN JP |
|
AL | Designated countries for regional patents |
Kind code of ref document: A1 Designated state(s): AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application | ||
DFPE | Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101) | ||
122 | Ep: pct application non-entry in european phase | ||
NENP | Non-entry into the national phase |
Ref country code: CA |