---
title: "An Augmented State Transition Network Analysis Procedure"
authors:
  - "Daniel G. Bobrow"
  - "J. Bruce Fraser"
doi: ""
url: "https://ijcai.org/proceedings/1969/48"
pdf: "https://ijcai.org/proceedings/1969/0048.pdf"
venue: "Proceedings of the First International Joint Conference on Artificial Intelligence"
year: 1969
pages: "557-568"
track: "Linguistic Research Relevant to Artificial Intelligence"
keywords:
---

# An Augmented State Transition Network Analysis Procedure

Daniel G. Bobrow, J. Bruce Fraser

*Proceedings of the First International Joint Conference on Artificial Intelligence*, pages 557-568.

## Abstract

syntactic analysis procedure is described which obtains directly the deep structure information associated with an input sentence . The implementation utilizes a state transition network characterizing those linguistic facts representable in a context free form, and a number of techniques to code and derive additional linguistic information and to permit the compression of the network size, thereby allowing more efficient operation of the system. By recognizing identical constituent predictions stemming from two different analysis paths, the system determines the structure of this constituent only once . When two alternative paths through the state transition network converge to a sing l e state at some point in the analysis, subsequent analyses are carried out only once despite the earlier ambiguity. Use of flags to carry feature concordance and previous context information allows merging of a number of almost identical paths through the network.

## Full text

## Summary

--A-syntactic analysis procedure is described which obtains directly the deep structure information associated with an input sentence . The implementa­ tion utilizes a state transition network characterizing those linguist ic facts representable in a context free form, and a number of techniques to code and derive additiona l linguistic information and to permit the compression of the network size, thereby allowing more efficient operation of the system. By recognizing identical constituent pre­ d ictions stemming from two different analysis paths, the system determines the structure of this constituent only once . When two alternative paths through the state transition network converge to a singl e state at some point in the analysis, subsequent analyses are carried out only once despite the earlier ambiguity. Use of flags to carry feature concordance and previous context information allows merging of a number of almost identical paths through the network.

## Introduct ion

The present paper is an abbreviated account of a syntactic analysis system, STAP , ( State Transition Analysis Procedure) i mplemented in BBN-LISP (Bobrow , Murphy , Teitelman 1969) which is designed to take as its input a sentence of English written in normal orthography and produce as its output a form of deep structure representation of the sentence. We require that the ana lysis of an input sentence contain the information present in the trans­ formational deep structure representa­ tion of a sentence, making explicit such relationships as logical subject, logical object, etc .

This is not a novel enterprise; reports of work with similar goals can be found in papers by Petrick (1965), MITRE (Zwicky, et. al~ 1965), Kuno (1965), and Thorne,Bratley, and Dewar (1968). The first three actually pro­ duce a tree structure which purports to be a linguistically motivated deep structure in the form like that de­ scribed by Chomsky (1965). Thorne, Brat ley and Dewar attempt to capture

Daniel G. Bobrow Bo lt, Beranek and Newman, Inc.

Cambridge , Massachusetts

Bruce Fraser Language Research Foundation Cambridge, Massachusetts

this same information by appropriate labelling of nodes, and insertion of some dummy nodes in a s urface structure analysis. The Petrick , MITRE, and Kuno analysis algorithms depend explicitly on a transformational grammar of some cannonical form. The analysis algorithm refers to this grammar during the analysis of an input str ing . The Petrick and MITRE approathes are distinguished from that of Kuno in that the former explicitly involve transfor­ mation reversal while the latter, once having found the surface structure representation of the sentence , goes directly to the deep structure .

It was after reading the paper by Thorne, Dewar and Bratley that we became convinced that an efficient and linguistically interesting analysis system could be developed without explicit reference to a trans formationa l grammar . It is, in f act, the Thorne work which provided u s with the general structure of STAP: the notion of a state transition network for r eflecting immediate grammatical restrictions and the use of flags for carrying informa ­ tion relevant to other parts of the analysis. STAP is an elaboration of the procedure described by Thorne, !3ra t ley, and Dewar ( S2.P.:.. cit .) ; t Le authors wish to gratefully acknowleage the generous time and assistance provided to us by Thorne and Dewar which permitted us to under s tand their sys t em and thus attempt STAP.

The goals of these two sys tems differ: Thorne et. al . are concerned with the developmentOf a psycholog ic­ ally valid model of syntactic analysis utilizing a limited dictionary (basically only function words) and a single pass algorithm. In STAP we are primarily concerned with reflecting those deep structure relationships motivated within the framework of a transformational grammar and utilizing a complete dictionary with fully specified entries. In addition STAP can· transmit information back into a previously analyzed structure , a capability not provided in the Thorne system. The STAP system has the full formal power of a Turing machine; an important and nontrivial question is whether the linguistic information in either the Thorne or STAP system can be introduced by some simple function op­ erating on a transformational grammar such as one from the class of grammars described by Petrick(~ cit.). This question has not yet been carefully in­ vestigated but we anticipate an affirma­ tive answer.

In this paper we attempt to charac­ terize clearly and precisely (l) the form and content of our analysis of an input sentence; and (2) the nature of the algorithm that is utilized. In no sense does this analysis algorithm provide any semantic information, either of the sort found in Katz (1966) or that used by Woods (1968) as an inter­ face to his system for querying a structured data base (in his case the Official Airlines Guide). That is, no linguistically or procedurally motivated semantic information is contained in the analysis. However, since both the Katz and Woods approaches to the semantic interpretation of a sentence utilize a deep structure representation equivalent to what STAP produces, th~ STAP analysis could serve as a first for such semantic analyses.

## The General Structure of STAP

Superficially, STAP resembles a finite state automaton. The analysis algorithm, starting at an initial state S0, uses each word of the input string to cause a change of state through a . state transition network. If, at the end of the input string, the system is in the final state, END, the input has been analyzed as a well-formed sentence. The history of the transi­ tions provides an analysis of the struc­ ture of the sentence. In short, the general strategy of the analysis pro­ cedure can be viewed as a series of state transitions with each transition signifying some additional successful subanalysis.

However, a strict finite state automaton with transitions dependent only on the next word is well-known to be inadequate as a model for the analy s is of a natural language. STAP obt a ins additional power from the capability of the transition inter­ preter to save its current status and call itself to analyze a substring by starting anew at some other state in the network. This recursive ability of STAP provides it with the power of a non-deterministic push-down store automata with a top-down parsing strategy; thus it is capable of recognizing an arbitrary context-free language with indefinite embedding of sentences.

However, STAP goes beyond the ability of the numerous context-free parsing algorithms already implemented to account for a range of linguistic information contained in the deep structure analysis of a sentence. This capability of STAP derives from the auxiliary operations performed during each state transition, and additional information which STAP associates with the constituents of the analysis. The operations include the setting of flags, the testing of previously set flags to enable or reject a transition, and the transferring of information determined by the current transition to some previous constituent(s) of the analysis.

## The State Transition Network

There are two types of transitions between a pair of states of the state transition network. The first, the more straightforward, is where a single word satisfies the input conditions and permits the state transition to occur. The second is where the next substring of the input must be analyz­ able as some constituent structure (e.g. a noun phrase) for the state transition to be permitted. We refer to these two types as lexical and structural transitions, resp-ectively. In (1) we have shown an illustrative state transition network for STAP.

The subpart in (li), the top level, indicates that an input string must be analyzed as a structure, S , followed by a terminal punctuation mark. ("."or"?") That is, we have first a structural transition and then a lexical transition.

In order to permit the structural transition from S0 to /S it is necessary for STAP to save its current status and to reenter the network at the stateS, shown in (lii). The transitions from the state S to the state C-END (constituent end) as shown in (lii) specify the possible analyses for the constituent S. For example, a sentence can be analyzed as NP-AUX-VP (e.g. John can see Mar~) requiring the transitions from S to NP to /AEX to C-END; or analyzed as SADV-NP-VP, requiring transitions from S to /ADV to /NP to C-END (e.g. Certainly the man is dead).

Howe~er, the transition from S to /NP i s of the structural rather than the lexical type, and requires tha t S'i'P save its status and reenter the system anew, this time at the state NP shown in (liii). Reentering the network in the way we have been describing is equiva­ lent to going down a level in the con­ stituent structure; that is, separating the constituent being analyzed into its dominated constituents (e.g. NP into DE'l'-ADJ - N) .

We note here that there are certain syntactic categories such as NP and AUX which are satisfied by both a lexical item or a structural constituent. For example, the input word it is analyzed as a NP , and so ~ is the string DET-ADJ - N (the big man). Such cases are combined in the network into a s ing le transition which is possibly both structural and lexical.

## The Analysis Procedure

Two alternative strategies for parsing exist within the system. The choice between them depends in part on whether one wants to obtain one analysis or all possible analyies for each input sentence. For the single analysis case, at each node in the state transition network STAP can try (in some suitably arranged order) each of the possible transitions until one succeeds, proceed to the state designated, and continue in this way until the input string has been completely examined. If in any state Sj no transition is possible, STAP must back up to the previous state Si , mark the transition from Si to Sj as blocked, and then try some other transition from Si . Left recursive grammar rules pose no difficulty if the transition which implies the left recursion is tried last. To find all analyses, STAP can remember a success­ ful analysis at the state END, and then simulate a failure. It will then recursively traverse the network through all possible paths until no untried transitions are available from any reached state. With this technique, great care must be taken with left recursion to prevent infinite loops.

We are interested in obtaining all analyses, but do not use the recursion technique just described. Rather, STAP simulates the operation of a non-deterministic pushdown store, and simultaneously follows all possible transit i ons from a given state. Thus at any time in the analysis of a sentence, all partial analyses up to a particular input word are available (though not necessarily with all of the final information associated with the constituents) and a number of paths through the network are active. All and only those paths which stay active through the last word of the input sen­ tence and fini sh in the st a te END represent successful analyses .

In order to deal with the case of common predictions at a point in the in­ put string (of which left recursion is a special case), whenever STAP must reenter the system during a structural transition, a check is made to see if this subcon­ stituent has been expected previously at just this point in the input string analysis. For example, after analyzing through the word fl:iJ..!2Z. in the an.biguous sentence They are flyiJ\_l\_g\_\_r\_\_lanes\_, there would presumably be just two analyses, both predicting that the nex t constituent could be a noun phrase . According ly, the analysis of the NP is carried out only once.

A number of auxiliary techniques are used to compress the size of the state transition network by storing information in other ways. For example , since only one sentence adverbial (SADV) is allowed per sentence , the two transitions shown in (1) requiring SADV cannot both be allowed nor can more than one transition around the loop at state /NP be permitted. We implement restrictions of this type by providing with each successful transition a capabil­ ity for setting flags. A parallel facility allows tests for appropriate flags before a transition is permitted . In the present example, either of the state transitions requiring a sentence adverbial causes a flag to be set indicating that an SADV had been analyzed at this level. In addition, a condition for the possiblity of such a state transition is that this SADV flag has not been previously set. Thus, the first time a sentence adverbial is analyzed , the setting of the SADV flag precludes any further sentence adverbial analysis. The use of a flag as discussed thus allows compression of the network in the form shown as opposed to requiring two separate paths, one in which the sentence adverbial is in the initial position, the other in which it is in the pre-AUX position . We note here that the setting of the SADV flag also carries information which will preclude the analysis of the sentence as a question.

Another set of transitions which are d ifferentially allowed by flags are those shown for VP. Both V'l'R (transitive verb) and VIN (intransitive) go to the same state , /V, but in the former case a noun phrase must follow while in the latter case it cannot. Thus we associate with the VIN transition the setting of a flag which precludes the state transition /V to /10.

We also allow a further flag setting mechanism based on the subcateg~ orization of a word class. For example, the verb lleep has the subcategorization features +V, +Voluntary Action, - NP] associated with it in the dictionary. In analyzing this verb, various flags are set based on this information. For example, the syntactic feature - NP sets a flag, call it NODO (no direct object), which is tested by the /V to /IO transition. The NODO flag set precludes this transition . To consider another example, to distinguish between a single object verb such as hit and a double object verb such as give set another flag. Both the state transitions in (liv) from /IO to /IO in analyzing to and from /IO to C-END analyzing a-noun phrase test for this flag and are permitted only if it is set.

In addition to the preceding mechanisms, STAP transfers information backwards to previously analyzed parts of the sentence. For example~ when the transition from the state /IO to itself occurs in the analysis of the preposition to it is possible to state definitely-That the noun phrase analyzed in the /V to /IO transition is functioning as the direct object. As a part of this transition, the information Indirect Object is added as a comment to the constituent NP immediately following the verb. Furthermore, if . this transition has not occuFred, then the /IO to C-END state transit~on through a noun phrase derives !~e infor­ mation that this noun phras·e is ·function­ ing as the direct object, and that the noun phrase i mmed iately following the verb is functioning as the indirect object. This functional information is ass i c ned to the relevant constituents as a result of this transition. The actual information transfer situation i s of course more complex because one or both of these objects may have been moved to another position in the sentence . We emphasize again that it is this type of . information transfer t echnique that permits the claim that STAP can capture the deep structure inforn~tlon associated with a sentence.

An alternative technique for determining the ana lysis of a constitu­ ent is to make alternate predictions when the functional status or other information relevant to a constituent i s not clear. In the double object case, for example, STAP can make two alternat ive predictions concerning a noun phrase following a verb like e~ve: one that the noun phrase was the direct object; the other that it was the indirect object. STAP then supresses the analysis which turns out to be incorrect. The choice between these two mechanisms is dependent in each instance on the relative costs of maintaining extra analyses as opposed to the cost of searching back through the present analysis to find the appropriate place to store the informa­ tion )nee it is derived. For a sentence like Who ~hould the book have been given to yesterday? there are a number of active alternative analyses just after processing the noun phrase the book: one must allow who to be the direct or indirect object;-ind the book to be the direct object, the indirect object for a passive construction, or the subject of an active verb. Some of these alternatives can be eliminated when the determination is made (after the have been given) that a passive sentence is being analyzed. Only after the preposition to has been analyzed is it possible to determine that the who is functioning as the indirect object and the book as the direct object.

In order to compress the state transition network, we allow state transitions which do not require using any of the input words. For example, the transition labelled NIL in (lv) from state /N to C-END allows termina­ tion of the constituent AUX after just one aspect (ASP) word or one modal (M), or after each cycle through the ASP loop . Another such transition is the one labelled (NP) from /IO to C-END in (liv). This transition is used to insert into an analysis a marker in­ dicating where the indirect object position was in the deep structure in a sentence such as Which person did ydu show it tb? A transition of the same type is used to mark the deep structure position of that part of the auxiliary which has been moved forward to form a question . (See (6) below).

## The Form of the Analysis

The goal of STAP is to determine for a given input sentence a deep structure analysis which reflects the basic logical~elationships of a sentence necessary for its semantic interpretation . (The surface structure representation reflects only the order and superficial relationships among the grammatical constituents of the sentence as produced by the speaker.) Ambiguous sentences, of course, have more than one deep structure. Quite clearly, a natural language analysis system cannot be put to any interesting use in the area of artificial intelli­ gence unless the information present in the deep structure repr esentation is determined.

Bas ically there are three types of information in the deep structure analys is of a sentence : (1) categorial information specifying what syntactic ca tegories are present and their hierarchical r e lationship; (2) functional informat ion such as what constituent is functioning as the logical subject of the sentence, which as the direct object , etc., and (3) subcategori­ zation information r ef l ect ing finer s pecification of the constituents present (the complex symbo l s as cha racteri z ed by Chomsky, 1965 , e . g . t ha t the noun cat is subcategorized as animate, non-human) . However, in or d er to specify this information e s pecially (1) and (2) above, the de ep structure analysis usually does not r e semble the surface structure in a va riety of ways . The two most crucial differences between the deep and surface structure analysis of a sentence are (1) the order of t'he constituents in the one r elat ive to the other; and (2) the additional structure present in the deep structure no t found in the surface structure ana lysis . For example, a simple sentence such as The red do\_t;\_\_~~ no~ ha s a deep structure analysis paraphrased r oue;h ly by :r'he do\_\_g;\_ w01\_ch is red is no i s y where the relative order of red ar1ddog are reversed and a relative­ clau~is p~esent.

In STAP , if the relative position of a constituent in the deep structure ana l ysis is the same as in t he input string (the surface structure), t h is is explicitly stated in our a na lysis. For those cases where the rela tive order is altered, this con­ stituent is marked in the surface structur e posit ion as out of place and its orig inal position in the deep structure is indicated . In short, the genera l form of our analysis resembles the surface structure analysis of the sentence, with add ed indications of moved constituents and where they are located in the deep structure . Co­ referentiallity is indicated by appropriate labelling .

We will illustrate our ana l ysis using the relatively complicated sentence (2) Was the man believed to have been sh~John , and present its surface structure analysis (3), its usual deep structure analysis (4), and its STAP deep structure analysis (5). The form of the output is three columns: the first con­ taining the categorial information; the second the functional information;

and the third the subcategorial information. The fir st and third are usually combined into a tree (P-marker) in the linguistic literature but we have found the present adaptation more workab l e and equal ly as readable. It is i mportant to recognize that the functional information associated with the surface structure ana l ysis (3) is that determined from the surface structure itself and is u sually referred to as the grammat i ca l as opposed to the logical func t ional relationships (Cf. Chomsky , 1965, for a discussion of these terms.)

Let us now trace through the analys i s of this sentence to see what the system does to produce the modif i ed deep structure analysis (S) associated with (2), ignoring the numerous blind al leys which the ana l ysis routine must follow. Essential to understanding this procedure is the notion that each constituent has only a few canonical forms in the deep . structure, (e.g. S may be ADV- NP-AUX- VP or NP-AUX- VP; VP may be V, V- NP, V- NP - PP; etc .) and these facts are bui lt into the state transitions in the same way as they are characterized by the phrase structure rewriting rules of the base component of a transformational grammar . 'l'hus, in terms of the analysis already performed and the present state, the system is always trying to meet one or more of these cannonical formats.

Looking now at (2), the analysis of was as an AUX is not an acceptable initial constituent for a deep structure S and causes the marker # to be placed a fter AUX signifying that it is not in its deep structure position relative to the other 6onstituents in the sen­ tence. The string the man is then analyzed as a NP, but its function i s left unspecified (e . g . subject or object ). The next word, believed, is a verb (according to the dictionary of STAP ) either of past tense or past participle form. The earlier presence of the was precludes the past tense analysis-and furthermore ind i cates the passive construction. The past participle analysis of believed requires it to be the first constituent of a VP (we are ignoring the reduced relative clause analysis here, e . g . the man (who was) believed to be ill.); at this point a flag is set to enable a trans ition within t his current VP (be lieved to have been shot by John) to accept a log ical subject of this sen­ tence in the form ~-NP. The subject NP-AUX sequence preceding this VP, are introduced into the analysis by allowable null transitions. Each is followed by a * signifying that the actual constituents have been moved elsewhere.

'I'he dictionary entry for believe provides subcategorization information which sets a flag which requires that this constituent be followed by an NP. An NP in S'I'AP may consist of an N, a DE'I'-N sequence, a DE'I'-N-S sequence, or simply an S. 'I'he presence of the to following believe eliminates all but the S analysis--or the required following NP. In reentering the system at the S level, S'I'AP provides content information depending on what has already been analyzed indicating that the type of S we can anticipate is a declarative, not an imperative or a question. Moreover, to enter the S state after the verb requires an NP, or a dummy NP which has been moved elsewhere; thus, the NP-* is introduced.

At this point the system "knows" that the topmost sentence has been passivized with the e;rammatical subject (the man) coming from an embedded sentence in the deep structure. At issue now is the deep structure analysis of this embedded sentence. The fact that the first ASP, have, is ·followed by a second, been signals that this embedded S is also in the passive form. 'I'hus, when the verb shoot is encountered, beginning a VP, ttieSystern a gain expects to find a ~-NP which functions as the log ical subject of the sentence someplace within this VP. In addition, follow!ng the verb shoot is an NP-* which represents the deep structure position of the logical object of this embedded sentence. In this example, by John immediately follows the verb, satisfies the agent requirement, and the analysis of the embedded VP is completed.

At this point in the system the embedded S transition has been satisfied and the analysis of the top S continues; the pa ssive a gent has yet to be accounted for. Since there are no more words in the input string, the system ''assumes" that this subject NP has been del e ted and provides the appropriate analysis, namely, an indefinite NP (represented by someone in the linguistic literature.) - If the example in (2) were ambiguous between John doing the believing or the shooting , then a second analysis of the sentence would be identical to that just des­ cribed except that the embedded S would have the deleted NP and the top S would have the !:ry\_ John associated with it.

The reason we believe that a reasonable deep structure grammar can be written in this form is that there is very little permissible distortion to an underlying cannonical form that a particular S can endure. From a linguistic point of view, the number of transformations which can apply to a particular S is relatively small, usually only two or three. Moreover, for each type of distortion--movement of constituents to the right or left, permutation of constituents, deletion of constituents, and various combinations of these--it appears to be possible to determine not only what has occurred but to reconstruct the deep structure analysis.

For example, extraposition of the that-S sequence to form the sentence It is obvious that Henry is mad from the deep structure order It that Hen~ is mad is obvious is signaled by the sentence initial it. The initial it doesn't require that extraposition-has occurred but must be present if it has. Similarly, with sentences such as There seems to be something rotten around here. Left ---­ movement of an NP such as in the passive construction in relating The man was seen~veryone with ~veryone saw the man is verified as soon as the was-past participle signifying t he passive construction is analyzed. That the e;rammatical subject (e. g . the man) need not be the loe; ical subjec~of~-e top level sentence is clear from the example sentence in (2) and the sub­ sequent discussion and we have illustrated how its correct deep structure analysis can be effectively handled. 'I'he logical subject in the passive case, if prese nt, is of course signal ed by the preceding ~· Permutation such as in questions usually results in an order of cons titu­ ents not included in the li s t of deep structure cannonical s tructure analyse s. These cases appear to be the easiest to recognize and deal with since the con­ stituents involved are adjacent both before and after the permutation. Deletion poses a different sort of proplem since what is deleted is usually not simply a word but an entire phras e.

A case such as verb phrase complementation where the deep structure subject NP and AUX have been deleted is analyzed in Figure 6. Note that the required deep structure co-referentia lity between the direct object of 2ers~ade and the subject of gQ (the NP, ;!\_ohn) is indicated by a generated name NP-1 used as identical subcategorial features associ a ted with the two constituents. 'I'he embedded NP reflects none of it s structure in our analysis; it is actually redundant since the first object NP-1 contains the identical information.

## Conclusion

------we have described a syntactic analysis system which obtains the deep structure information associated with an input sentence. We believe that for the analysis of a sentence to be useful in Artificial Intelligence this level of analys is must be available. The implementation utilizes a state transition network characterizing linguistic facts representable in a context free form, and a number of techniques to code and derive additional line;uistic inforr.Jation and to permit the compression of the network size thereby allovlinc more efficient operation of the pystem. By recognizing identical constituent predictions stemming from two different analysis paths the system can determine the structure of this constituent only once. 'This both increases the efficie'ncy of the system operation and permits use of left recursive context free rules. When two alternative paths through the state transition network converge to a single state at some point in the analys is, subsequent analyses are carried out only once despite the earlier ambiguity. Use of flags to carry feature concordance and previous context information allows merging of a number of lamest identical paths throu~h the network.

## References

1. I. Bob row, D., D. Murphy, and W. Te itelman . (1968) "BBN LISP System."
2. Bolt , Beranek and Newman Inc., Cambridge, tv!ass .
3. Chmmsky, N. (1965) "Aspects of the 'l'heory of Syntax." !•1. I. T. Press, Cambridr;e, J'vlass.
4. Katz, J. of Language." ( 1965) "The Philosophy l~rper and Row, New York.
5. Katz, J. and P. Postal. (1964) "An Integrated Theory of Linguistic Des c::ription." M.I.T. Press, Cambridge, lilass .
6. Petrick, S. (1965) "A recognition Procedure for 'l'ransformational Grammars." Unpublighed Doctoral Thesis, M.I.T., Cambridge, [vlass.
7. Thorne, J., P. Bratley, and H. Dewar. (1968) "The Syntactic Analysis of English by Machine.'' In Michie, D (Ed.) "Machine Intelligence 3." Am e ~ican Elsevier Press, New York.
8. Woods, W. ( 1968) ''P rocedural Semantics for a Question-Answer J'vlachine." In the Proceedings of the Fall Joint Computer Conference, 'I'hompson Book Company.
9. PAST] SPECIFIC]
10. COU NT; SING] [ STATIVE; COGNIT] ] 'l'PRT] [PASTPRT; ACTIVE]
11. S u l..>catc~rial [INDEF] [PAS'l'] [STATIVE; COGNIT] [SPECIFIC] [COUNT; SING] [ PRI~S] [ACTIVE] [PROPI:!.h]
