<?xml version="1.0"?><!DOCTYPE article SYSTEM "/project/take/software/searchbench_offline_processing/paperxml_generator/aclextractor/src/python/../resource/dtd/paperxml.dtd"><article><header><firstpageheader><page local="1"/><title>Machine Translation Based on Constraint-Based Synchronous Grammar</title><pubinfo>R. Dale et al. (Eds.): IJCNLP 2005, LNAI 3651, pp. 612 -623, 2005. © Springer-Verlag Berlin Heidelberg 2005</pubinfo><author surname="Wong" givenname="Fai"><org  name="Tsinghua University" country="China" city="Beijing"/></author><author surname="Hu" givenname="Dong-Cheng"><org  name="Tsinghua University" country="China" city="Beijing"/></author><author surname="Mao" givenname="Yu-Hang"><org  name="Tsinghua University" country="China" city="Beijing"/></author><author surname="Dong" givenname="Ming-Chui"><org  name="University of Macau" city="Taipa Macau"/></author><author surname="Li" givenname="Yi-Ping"><org  name="University of Macau" city="Taipa Macau"/></author></firstpageheader><frontmatter><p><b>Machine Translation Based on Constraint-Based Synchronous Grammar</b></p><p>Fai Wong<footnote anchor="1"/>, Dong-Cheng Hu<footnote anchor="1"/>, Yu-Hang Mao<footnote anchor="1"/>, Ming-Chui Dong<footnote anchor="2"/>, and Yi-Ping Li<footnote anchor="2"/></p><p><footnote anchor="1"/> Speech and Language Processing Research Center, Department of Automation, Tsinghua University, 100084 Beijing huangh01@mails.tsinghua.edu.cn (hudc, myh-dau}@mail.tsinghua.edu.cn <footnote anchor="2"/> Faculty of Science and Technology of University of Macao, Av. Padre Tomas Pereira S.J., Taipa, Macao (dmc, ypli}@umac.mo</p></frontmatter><abstract><b>Abstract. </b>This paper proposes a variation of synchronous grammar based on the formalism of context-free grammar by generalizing the first component of productions that models the source text, named Constraint-based Synchronous Grammar (CSG). Unlike other synchronous grammars, CSG allows multiple target productions to be associated to a single source production rule, which can be used to guide a parser to infer different possible translational equivalences for a recognized input string according to the feature constraints of symbols in the pattern. Furthermore, CSG is augmented with independent rewriting that al­lows expressing discontinuous constituents in the inference rules. It turns out that such grammar is more expressive to model the translational equivalences of parallel texts for machine translation, and in this paper, we propose the use of CSG as a basis for building a machine translation (MT) system for Portuguese to Chinese translation. </abstract></header><body><section number="1" title="Introduction"><p>In machine translation, to analyze the structure deviations of languages pair hence to carry out the transformation from one language into another as the target translation is the kernel part in a translation system, and this requires a large amount of structural transformations in both grammatical and concept level. The problems of syntactic com­plexity and word sense ambiguity have been the major obstacles to produce promising quality of translation. In order to overcome the obstacles and hence to improve the qual­ity of translation systems, several alternative approaches have been proposed.</p><p>As stated in [1], much of the theoretical linguistics can be formulated in a very natural manner as stating correspondences between layers of representations. In simi­lar, many problems in natural language processing, in particular language translation and grammar rewriting systems, can be expressed as transduction through the use of synchronous formalisms [2,3,4,5,6]. Recently, synchronous grammars are becoming more and more popular for the formal description of parallel texts representing trans­lations for the same document. The underlying idea of such formalisms is to combine two generative devices through a pairing of their productions in such a way that right<page local="2"/></p><p>Machine Translation Based on Constraint-Based Synchronous Grammar 613</p><p>hand side non-terminal symbols in the paired productions are linked. However, such formalisms are less expressive and unable to express mutual translations that have different lengths and crossing dependencies. Moreover, synchronous formalisms do not deal with unification and feature structures, as in unification-based formalisms, that give patterns additional power for describing constraints on features. For exam­ples, Multiple Context-Free Grammar [4], where functions are engaged to the non­terminal symbols in the productions to further interpreting the symbols in target gen­eration. In [7], Inversion Transduction Grammar (ITG) has been proposed for simul­taneously bracketing parallel corpora as a variant of Syntax Directed translation schema [8]. But these formalisms are lacked of expressive to describe discontinuous constituents in linguistic expression. Generalized Multitext Grammar (GMTG) pro­posed by [5,9] is constructed by maintaining two sets of productions as components, one for each language, for modeling parallel texts. Although GMTG is more expres­sive and can be used to express as independent rewriting, the lack of flexibility in the way to describe constraints on the features associated with a non-terminal makes it difficult to the development of practical MT system.</p><p>In this paper, a variation of synchronous grammar, Constraint-Based Synchronous Grammar (CSG), is proposed based on the formalism of context-free grammar. Through the use of feature structures as that in unification-based grammar, the first component of productions in CSG, that describes the sentential patterns for source text, is generalized while the corresponding target rewriting rules for each production are grouped in a vector representing the possible translation patterns for source pro­duction. The choice of rule for target generation is based on the constraints on fea­tures of non-terminal symbols in pattern. Our motivation is three-fold. First, synchro­nous formalisms have been proposed for modeling of parallel text, and such algo­rithms can infer the synchronous structures of texts for two different languages through the grammar representation of their syntactic deviations. That is quite suitable for use in the analysis of languages pair in the development of MT system. Secondly, by augmented the synchronous models with feature structures can enhance the pattern with additional power in describing gender, number, agreement, etc. Since the de­scriptive power of unification-based grammars is considerably greater than that of classical CFG [10,11]. Finally, by retaining the notational and intuitive simplicity of CFG, we can enjoy both a grammar formalism with better descriptive power than CFG and more efficient parsing and generation algorithm controlled by the feature constraints of symbols hence to achieve the purposes of word sense and syntax dis­ambiguation.</p></section><section number="2" title="Constraint-Based Synchronous Grammars"><p>Constraint-Based Synchronous Grammars (CSG) is defined by means of the syntax of context-free grammar (CFG) to the case of synchronous. The formalism consists of a set of generative productions and each production is constructed by a pair of CFG rules with zero and more syntactic head and link constraints for the non-terminal symbols in patterns. In a similar way, the first component (in right hand side of pro­ductions) represents the sentential patterns of source language, while the second com­ponent represents the translation patterns in target language, called source and target component respectively in CSG. Unlike other synchronous formalisms, the target component of production consists of one or more generative rules associated with zero or more controlled conditions based on the features of non-terminal symbols of source rule for describing the possible generation correspondences in target transla­tion.<page local="3"/> In such a way, the source components in CSG are generalized by leaving the task of handling constraints on features in target component, so this also helps to reduce the grammar size. For example, following is one of the productions used in the MT system for Portuguese to Chinese translation:</p><doubt alpha="59.2" length="49" tooSmall="False" monospace="0.0">S — NP1VP* NP2PP NP3{[NP1VP1NP3VP2NP2;VPcate=vb1,</doubt><doubt alpha="66.3" length="104" tooSmall="False" monospace="0.0">VPs:semNP1sem,VPia■sem=NP2sem,VPt&gt;;sem=NP3sem],(1)[NP1VP NP3NP2;VP =vb0,VPs:Sem=NP1sem,VPio:sem=NP2sem]}</doubt><p>The production has two components beside the reduced syntactic symbol on left hand side, the first modeling Portuguese and the second Chinese. The target compo­nent in this production consists of two generative rules maintained in vector, and each of which is engaged with control conditions based on the features of symbols from the source component, and this is used as the selectional preferences in parsing. These constraints, in the parsing/generation algorithm, are used for inferring, not only, the structure of input to dedicate what structures are possible or probable, but also the structure of output text for target translation. For example, the condition expression:</p><p><i>VP</i><i>cate</i><i>=Vb1, VP</i><i>S:sem</i><i>=NP</i><i>lsem, </i><i>VP</i><i>io:sem</i><i>=NP</i><i>2Sem, </i><i>VP</i><i>„:sem</i><i>=NP</i><i>3sem, </i>specifies if the senses of the first, second and the third nouns (NPs) in the input strings matched to that of the subject, direct and indirect objects governed by the verb, <i>VP, </i>with the category type of vbl. Once the condition gets satisfied, the source structure is successfully recog­nized and the corresponding structure of target language, <i>NP1 VP<footnote anchor="1"/> NP3 VP<footnote anchor="2"/> NP2, </i>is determined also.</p><p>Non-terminal symbols in source and target rules are linked if they are given the same index <i>"subscripts" </i>for case of multiple occurrences, such as NPs in the produc­tion: <i>S — NP1 VP NP2 PP NP3 [NP1 VP* NP3 NP2], </i>otherwise symbols that appear only once in both the source and target rules, such as <i>VP</i>s, are implicitly linked to give the synchronous rewriting. Linked non-terminal must be derived from a se­quence of synchronized pairs. Consider the production: <i>S — NP1 VP NP2 PP NP3[NP1 VP* NP3 NP2], </i>the second <i>NP (NP2) </i>in the source rule corresponds to the third <i>NP (NP2) </i>in the target rule, the third <i>NP (NP3) </i>in source rule corresponds to the sec­ond <i>NP (NP</i><i>3) </i>in target pattern, while the first <i>NP (NP</i><i>1) </i>and <i>VP </i>correspond to each other in both source and target rules. The symbol marked by an "*" is designated as <i>head </i>element in pattern, this allows the features of designated head symbol propagate to the reduced non-terminal symbol in the left hand side of production rule, hence to achieve the property of features inheritance in CSG formalism. The use of features structures associated to non-terminal symbols will be discussed in the later section in this paper.</p><p>In modeling of natural language, in particular for the process of languages-pair, the treatment for non-standard linguistic phenomena, i.e. crossing dependencies, discon­tinuous constituents, etc., is very important due to the structure deviations of two different languages, in particular for languages from different families such as Portu­guese and Chinese [12,13]. Linguistic expressions can vanish and appear in transla­tion. For example, the preposition <i>(PP) </i>in the source rule does not show up in any of the target rules in Production (1).<page local="4" global="615"/> In contrast, Production (2) allows the Chinese char­acters of " " and " " to appear in the target rules for purpose to modify the noun <i>(NP) </i>together with the quantifier <i>(num) </i>as the proper translation for the source text. This explicitly relaxes the synchronization constraint, so that the two components can be rewritten independently.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">614</doubt><p>A remarkable strength of CSG is its expressive power to the description of discon­tinuous constituents. In Chinese, the use of combination words that discontinuously distributed in a sentence is very common. For example, take the sentences pair <i>["Ele vendeu-me todas as uvas. </i>(He sell me all the grapes.)", <i>" </i><i>fßJE$F£lfö$&amp;7J</i><i> </i>"]. The Chinese preposition " " and the verb " " should be paired with the Portu­guese verb <i>"vendeu", </i>and this causes a <i>fan-out<footnote anchor="1"/> </i>and discontinuous constituent in the Chinese component. The following fragment of CSG productions represents such relationships.</p><p>In Production (3), the corresponding discontinuous constituents of <i>VP </i>(from source rule) are represented by <i>VP<footnote anchor="1"/> </i>and <i>VP<footnote anchor="2"/> </i>respectively in the target rule, where the <i>"super­scripts" </i>are added to indicate the pairing of the <i>VP </i>in target component. The corre­sponding translation constituents in the lexicalized production are separated by com­mas representing the discontinuity between constituents " " and " " in target translation. During the rewriting phase, the corresponding constituents will be used to replace the syntactic symbols in pattern rule.</p></section><section number="3" title="Definitions"><p>Let <i>L </i>be a context-free language defined over <i>terminal </i>symbol <i>VT </i>and generated by a context-free grammar <i>G </i>using non-terminal symbol <i>VN </i>disjointed with <i>VT, </i>starting symbol S, and productions of the form <i>A </i><i>— </i><i>w </i>where <i>A </i>is in <i>VN </i>and <i>w </i>in (VNU Vr)*. Let <i>Z </i>as a set of integers, each non-terminal symbol in <i>VN </i>is assigned with an integer, <i>r</i><i>(VN) </i>= <i>{Wm </i>I <i>W</i><i>e </i>VN, <i>(o</i><i>e </i>Z}. The elements of <i>T</i><i>(VN) </i>are indexed non-terminal sym­bols. Now, we extend to include the set of <i>terminal </i>symbols <i>VT </i>as the translation in target language, disjoint from <i>VT, </i>(VT«Vr=0). Let <i>R </i>= {r1, <i>rn</i>I <i>r</i><i>ee</i><i> </i>(7(VN)U Vr), 1 &lt; <i>i </i><i>&lt; </i><i>n} </i>be a finite set of rules, and <i>C </i>= {c1, cm} be a finite set of constraints over the associated features of <i>(T</i><i>(V</i><i>N)U </i><i>VT), </i>where the features of non-terminal <i>T</i><i>(VN), </i>the syn­tactic symbols, are inherited from the designated head element during rule reduction. A <i>target rule </i>is defined as pair [reR*, ce C*] in y where <i>y= </i><i>R</i><i>*x</i><i>C* </i>in form of [r, c]. Now, we define       to denote the number of conjunct features being considered in</p><doubt alpha="62.3" length="61" tooSmall="False" monospace="0.0">NP — num NP* {[num # NP; NPsem=SEM_boot], [numMNP; NPsem=SEM_</doubt><p><i>_automobile]}</i><page local="5" global="616"/></p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(2)</doubt><doubt alpha="51.3" length="78" tooSmall="False" monospace="0.0">S — NP1VP* NP2NP3{[NP1VP1NP3VP2NP2; VPcate=vb0,...],..} VP —vendeu*{[tSwTM;0]}</doubt><doubt alpha="0.0" length="7" tooSmall="False" monospace="0.0">(3) (4)</doubt><footnote label="1">We use this term for describing a word where its translation is paired of discontinuous words in target language, e.g. "vendeu[-pro] [NP]" in Portuguese gives similar English translation as "sell [NP] to [pro]", so "vendeu", in this case, is corresponding to "sell" and "to".</footnote><doubt alpha="59.2" length="49" tooSmall="False" monospace="0.0">S — NP1VP* NP2PP NP3{[NP1VP1NP3VP2NP2;VPcate=vb1,</doubt><p>the associated constraint, hence to determine the degree of generalization for a con­straint. Therefore, the rules, <b>y </b>and <b>y, </b>are orderable, <b>y p y, </b>if <i>&gt; </i><i>y/(y) </i>(or <b>y </b><i>f </i><b>y,</b><b> </b>if <i>y/(y) </i><i>&lt; </i><b>^(yy)). </b>For <i>y p y </i><b>(çKy) </b>&gt; <b>?Ky)), </b>we say, the constraint of the rule, <i>y,</i><i> </i>is more specific, while the constraint of <i>y </i>is more general. In what follows, we consider a set of related target rules working over the symbols, w', on the RHS of production <i>A </i><i>— </i><i>w', </i>the source rule, where <i>w' </i><i>e </i><b>I</b>(VN)U <i>VT </i>All of these non-terminals are co-indexed as <i>link.</i></p><p><b>Definition 1: </b>A <i>target component </i>is defined as a ordered vector of <i>target rules </i>in <i>y </i>having the form <b>a</b><b> </b>= <b>{y,</b><b> </b><i>yq}, </i>where 1 &lt; <i>i </i><i>&lt; </i><i>q </i>to denote the i-th tuple of <b>a.</b><b> </b>The rules are being arranged in the order of <b>y</b><b> </b><b>p</b><b> </b><b>y</b><b> </b><b>p</b><b> </b>.<b>..</b><b> p y.</b></p><p>In rule reduction, the association conditions of the target rules are used for investi­gating the features of corresponding symbols in source rules, similar to that of feature unification, to determine if the active reduction successes or not. At the mean while, this helps in determining the proper structure as the target correspondence.</p><p><b>Definition 2: </b>A <i>Constraint-Based Synchronous Grammar (CSG) </i>is defined to be 5-tuple <i>G </i>= (VN, VT, P, CT, S) which satisfies the following conditions:</p><p>- <i>VN </i>is a finite set of <i>non-terminal </i>symbols; - <i>VT </i>is a finite set of <i>terminal </i>symbols which is disjoint with VN;</p><p><i>- </i><i>C</i><i>T </i>is a finite set of <i>target components;</i></p><p>- <i>P </i>is a finite set of <i>productions </i>of the form <i>A </i><i>— </i><i>aß, </i>where <i>a </i><i>e </i><i>(I</i><i>JV</i><i>N)U </i><i>VT)* </i>and, <i>ß </i><i>e </i><i>CT, </i>the non-terminal symbols that occur from both the source and target rules are <i>linked </i>under the index given by <i>I</i><i>JVNf</i>.</p><p><i>- </i><i>S </i><i>e </i><i>V</i><i>N </i>is the initial symbol.</p><p>For example, the following CSG productions can generate both of the parallel texts ["£7e <i>deu um livro ao José. </i>(He gave a book to José)", <i>"fit$al'£ttß</i><b><i>—$1f\ </i></b>and ["£7e <i>comprou um livro ao José. </i>(He bought a book from José)", <b><i>"{Élr&gt;}$!fWM </i></b><i>T"""""""</i>^"j^']:</p><footnote label="2">Link constraints are dedicated by the symbols indices, which is trivially for connecting the corresponding symbols between the source and target rules. Hence, we assume, without loss of generality, that index is only given to the non-terminal symbols that have multiple occur­rences in the production rules. It is assumed that "S — NP 1 VP 2 PP 3 NP 4 {NP 1 VP 2 1 NP 4 VP 2 2 }" implies "S — NP 1 VP PP NP 2 {NP 1 VP 1 NP 2 VP 2 }".</footnote><footnote label="3">Similar for the designation of head element in productions, the only symbol from the RHS of production will inherently be the head element. Thus, no head mark "*" is given for such rules, and we assume that "VP — v*" implies "VP — v".</footnote><doubt alpha="66.7" length="24" tooSmall="False" monospace="0.0">=NP2sem,VPo:sem=NP3sem],</doubt><p>vb0,VPs:sem NP1sem,<page local="6" global="617"/></p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(5)</doubt><doubt alpha="25.0" length="16" tooSmall="False" monospace="0.0">VP — v3{[v ; 0]}</doubt><doubt alpha="39.1" length="23" tooSmall="False" monospace="0.0">NP — det NP* {[NP ; 0]}</doubt><doubt alpha="60.0" length="40" tooSmall="False" monospace="0.0">NP — num NP* {[num  NP; NPsem=SEM_book]}</doubt><doubt alpha="0.0" length="7" tooSmall="False" monospace="0.0">(6) (7)</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(8)</doubt><doubt alpha="40.0" length="30" tooSmall="False" monospace="0.0">NP—n {[n ;0]}NP—pro {[pro ;0]}</doubt><doubt alpha="25.0" length="16" tooSmall="False" monospace="0.0">PP — p {[p ; 0]}</doubt><doubt alpha="50.0" length="32" tooSmall="False" monospace="0.0">n —José {[^rff;0]}Ilivro{[If;0]}</doubt><doubt alpha="40.0" length="15" tooSmall="False" monospace="0.0">pro—ele{   ;0]}</doubt><doubt alpha="40.9" length="66" tooSmall="False" monospace="0.0">v —deu{[MT;0]} Icomprou{[/^,HT;0]} num—um{[   ;0]}p —a{0} det—o{0}</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(9)</doubt><doubt alpha="0.0" length="19" tooSmall="False" monospace="0.0">(10) (11) (12) (13)</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(14)</doubt><doubt alpha="0.0" length="9" tooSmall="False" monospace="0.0">(15) (16)</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(17)</doubt><p>A set <i>P </i>of productions is said to <i>accept </i>an input string <i>s </i>iff there is a derivation se­quence <i>Q </i>for <i>s </i>using source rules of P, and any of the constraint associated with every <i>target component </i>in <i>Q </i>is satisfied<footnote anchor="4"/>. Similarly, <i>P </i>is said to <i>translate s </i>iff there is a synchronized derivation sequence <i>Q </i>for <i>s </i>such that <i>P </i>accepts s, and the link con­straints of associated <i>target rules </i>in <i>Q </i>is satisfied. The derivation <i>Q </i>then produces a translation <i>t </i>as the resulting sequence of terminal symbols included in the determined target rules in <i>Q. </i>The translation of an input string <i>s </i>essentially consists of three steps. First, the input string is parsed by using the source rules of productions. Secondly, the link constraints are propagated from source rule to target component to determine and build a target derivation sequence. Finally, translation of input string is generated from the target derivation sequence.</p><subsection number="3.1" title="Feature Representation"><p>In CSG, linguistic entities are modeled as feature structures which give patterns addi­tional power for describing gender, number, semantic, attributes and number of the arguments required by a verb, and so on. These information are encoded in the com­monly used attribute value matrices (AVMs), attached to each of the lexical and syn­tactic symbols in CSG. This allows us to specify such as syntactic dependencies as agreement and sub-categorization in patterns. Unlike other unification-based gram­mars [11,14], we do not carry out the unification in full, only interested conditions that are explicitly expressed in the rule constraints are tested and unified. Such unifi­cation process can perform in constant time. The use of feature constraints has to be restricted to maintain the efficiency of parsing and generating algorithms, especially to the prevention from generating a large number of ambiguous structure candidates. The word selection in the target language can also be achieved by checking features. In the parsing and generating algorithm, the features information are propagated to the reduced symbol from the designated head element in pattern, hence to realize the mechanism of features inheritance. Features can either be put in lexical dictionary isolated from the formalism to make the work simpler to the construction of analytical grammar, or explicitly encoded in the pre-terminal rules as:</p><footnote label="4">If there is no any constraint associated to a target rule, during the parsing phase, the reduction of the source rule is assumed to be valid all the time.</footnote><page local="7" global="618"/><doubt alpha="57.1" length="56" tooSmall="False" monospace="0.0">Pro — Joséé:[CAT:pro;NUM:sg;GEN:masc,SEM:hum] ; 0]} (18)</doubt><doubt alpha="54.5" length="66" tooSmall="False" monospace="0.0">n — livro:[CAT:n;NUM:sg;GEN:masc;SEM:arti/act+book] {[#"; 0]} (19)</doubt><p>Where the features set is being bracketed, and separated by a semi-colon, the name and the value of a feature are delimited by a colon to represent the feature pair. An­other way to enhance the CSG formalism is to apply the soft preferences other than hard constraints in the process of features unification. Our consideration is two-fold: first, we found that more than one combination of feature values engaged to a single lexical item is very common in the process of natural language, i.e. one word may have several translations according to the different senses and the pragmatic uses of the word, and this has been the problem of word senses disambiguation [15]. Sec­ondly, the conventional feature unification method can only tell us if the process suc­cesses or not. In case of a minor part of conditions get failed during the unification, all the related candidates are rejected without any flexibility to choosing the next prefer­able or probable candidate. In order to resolve these problems, each feature structure is associates with a weight. It is then possible to rank the matching features according to the linear ordering of the weights rather than the order of lexical items expressed in grammars or dictionary. In our prototyping system, each symbol has its original weight, and according to preference measurement at the time in checking the feature constraints, a penalty is used to reduce from the weight to give the effective weight of associated features in a particular context. Features with the largest weight are to be chosen as the most preferable content.</p></subsection></section><section number="4" title="Application to Portuguese-Chinese MT"><p>CSG formalism can be parsed by any known CFG parsing algorithm including the Earley [16] and generalized LR algorithms [17] augmented by taking into account the features constraints and the inference of target structure. In the prototyping system, the parsing algorithm for our formalism is based on the generalized LR algorithm that we have development for MT system, since the method uses a parse table, it achieves a considerable efficiency over the Earley's non-complied method which has to com­pute a set of LR items at each stage of parsing [17]. Generalized LR algorithm was first introduced by Tomita for parsing the augmented Context-Free grammar that can ingeniously handle non-determinism and ambiguity through the use of graph-structured stack while retaining much of the advantages of standard LR parsing<footnote anchor="5"/>. It takes a shift-reduce approach using an extended LR parse table to guide its actions by allowing the multiple actions entries such as shift/reduce and reduce/reduce hence to handle the nondeterministic parse with pseudo-parallelism. In order to adapt to our formalism, we further extend the parse table by engaging with the features constraints and the target rules into the actions table. Our strategy is thus to parse the source rules of CSG productions through the normal shift actions proposed by the parsing table, while at the time reduce action to be fired, the associated conditions are checked to determine if the active reduction is a valid action or not depending on if the working symbols of patterns fulfill the constraints on features.</p><footnote label="5">Especially when the grammar is close to the LR grammars.</footnote><page local="8" global="619"/><subsection number="4.1" title="The CSG Parse Table"><p>Fig. 1 shows an extended LR(1) parsing table for Productions (5)-(17)<footnote anchor="6"/> as constructed using the LR table construction method described in [18] extended to consider the rule components of productions by associating the corresponding target rules with constraints, which are explicitly expressed in table. The parsing table consists of two parts: a compact ACTION-GOTO table<footnote anchor="7"/> and CSONTRAINT-RULE table. The</p><p>ACTION-GOTO table s indexed by a state symbol <i>s </i>(row) and a symbols <i>x </i>eVNUVpincluding the end marker "1". The entry ACTION[s, x] can be one of the following: <i>s n, r m, acc </i>or blank. <i>s n </i>denotes a shift action representing GOTO<i>[s, x]=n, </i>defining the next state the parser should go to; <i>r m </i>means a reduction by the <i>mth </i>production located in the entry of CONSTRAINT-RULE in state <i>s, </i>and <i>acc </i>denotes the accept action and blank indicates a parsing error. The CONSTRAINT-RULE table is in­dexed by state symbol <i>s </i>(row) and the number of productions <i>m </i>that may be applied for reduction in state <i>s. </i>The entry CONSTRAINT-RULE<i>[s, m] </i>consists of a set of involved productions together with the target rules and features constraints that are used for validating if the active parsing node can be reduced or not, then try to iden­tify the corresponding target generative rule for reduced production.</p></subsection><subsection number="4.2" title="The CSG Parser"><p>In the parsing process, the algorithm operates by maintaining a number of parsing processes in parallel, each of which represents an individual parsed result, hence to handle the case of non-deterministic. In general, there are two major components in the process, <i>shift(i) </i>and <i>reduce(i), </i>which are called at each position i=0, 1, <i>n </i>in an input string <i>I </i>= x1x2^xn. The <i>shift(i) </i>process with top of stack vertex <i>v </i>shifts on <i>xi</i><i></i>from its current state <i>s</i><i> </i>to some successor state <i>s'</i><i> </i>by creating a new leaf <i>v'; </i>estab­lishing edge from <i>v'</i><i> </i>to the top of stack <i>v; </i>and making <i>v'</i><i> </i>as the new top of stack vertex.</p><p>The <i>reduce(i) </i>executes a reduce action on a production <i>p </i>by following the chain ofparent links down from the top of stack vertex <i>v </i>to the ancestor vertex from which the process began scanning for <i>p </i>earlier, then popping intervening vertices off the stack. Now, for every reduction action in <i>reduce(i), </i>there exists a set <i>C </i>of ordered constraints, c1 p ... p cm, with the production, each of which is associated with a target rule that may be the probable corresponding target structure for the production, de­pending on whether the paired constraint gets satisfied or not according to the features of the parsed string p. Before reduction takes place, the constraints <i>c</i><i> </i>(1 &lt; <i>j</i><i> </i><i>&lt;</i><i> </i><i>m)</i><i> </i>are tested in order started from the most specific one, the evaluation process stops once a positive result is obtained from evaluation. The corresponding target rule for the parsed string is determined and attached to the reduced syntactic symbol, which will be used for rewriting the target translation in phase of generation. At the mean while, the features information will be inherited from the designated head element of pro­duction. The parsing algorithm for CSG formalism is given in Fig. 2.</p><footnote label="6">For simplicity, the productions used for building the parse table are deterministic, so no con­flict actions such as shift/reduce and reduce/reduce appear in the parse table in Fig.1.</footnote><footnote label="7">Original version introduced in [17] maintains two tables, ACTION and GOTO.</footnote><page local="9" global="620"/><p><b>Fig. 1. </b>Extended LR(1) parse table</p><doubt alpha="58.6" length="29" tooSmall="False" monospace="0.0">PARSE(grammar,x1...xn)xn+1&lt;=1</doubt><doubt alpha="25.0" length="12" tooSmall="False" monospace="0.0">U*=0(0 &lt;i&lt;n)</doubt><p>for each terminal symbol <i>xi</i><i> </i><i>(1</i><i> </i><i>&lt;</i><i> </i><i>i</i><i> </i><i>&lt;</i><i> </i><i>n)</i></p><p><i>for</i><i> </i>each node <i>v</i><i> </i><i>6</i><i> </i><i>Ui1</i><i>P&lt;=PUv</i></p><doubt alpha="65.4" length="153" tooSmall="False" monospace="0.0">ifACTION[STATE(v),xi]   ="shifts'",SHIFT(v,s') for each "reduce p"6ACTION[STATE(v), xi], REDUCE(v,p) if "acc"6 ACTION[STATE( v), xi],acceptif Ui=0,reject</doubt><p>SHIFT<i>(v,s)</i> create a new node <i>v'</i><page local="10" global="621"/></p><doubt alpha="66.7" length="87" tooSmall="False" monospace="0.0">if v'6Uis.t.   STATE(v')=s and ANCESTOR( v',1)=vand state transitionS(v,x)=v'do nothing</doubt><table class="main" frame="box" rules="all" border="0" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p><b>ACTIONs/GOTOs</b></p></td><td class="cell"><p></p></td><td class="cell"><p><b>Reduced Rules</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>Ste</b></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p><i>ar</i></p></td><td class="cell"><p><b>Constraints/Target</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>»,</p></td><td class="cell"><p><b>1 a</b></p></td><td class="cell"><p></p></td><td class="cell"><p>5:   &amp;- a-</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p><b>1</b></p></td><td class="cell"><p><i>livra</i></p></td><td class="cell"><p><b>■§</b></p></td><td class="cell"><p><i>a</i></p></td><td class="cell"><p></p></td><td class="cell"><p><b>Rules</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>0</p><p>1</p></td><td class="cell"><p>s8</p></td><td class="cell"><p>s9 s10</p></td><td class="cell"><p>s11</p></td><td class="cell"><p>s7</p></td><td class="cell"><p>s6</p></td><td class="cell"><p>s5</p></td><td class="cell"><p></p></td><td class="cell"><p>s2</p></td><td class="cell"><p>s1</p><p>r1</p></td><td class="cell"><p>s4</p></td><td class="cell"><p>s3</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>(1) pro</p></td><td class="cell"><p>- <i>ele  </i>{[# ; 0]}</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>2</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>r1</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>(1) num - <i>um</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>3</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>r1</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>(1) n -</p></td><td class="cell"><p><i>► liv,a </i>{[ <i>r;</i><i> </i>0]}</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>4</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>r1</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>(1) n -</p></td><td class="cell"><p><i>&gt; Jase  </i>{[-' 0]}</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>5</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>r1</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>(1) det</p></td><td class="cell"><p>- <i>a</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>6</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>acc</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>7</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>s14</p></td><td class="cell"><p>s15</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>s12 s13</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>8</p></td><td class="cell"><p>r1</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>(1) NP</p></td><td class="cell"><p>- pro</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>9</p></td><td class="cell"><p>s8</p></td><td class="cell"><p>s9 s10</p></td><td class="cell"><p>s11</p></td><td class="cell"><p>s16</p></td><td class="cell"><p></p></td><td class="cell"><p>s5</p></td><td class="cell"><p></p></td><td class="cell"><p>s2</p></td><td class="cell"><p>s1</p></td><td class="cell"><p>s4</p></td><td class="cell"><p>s3</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>10</p></td><td class="cell"><p></p></td><td class="cell"><p>r1</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>(1) NP</p></td><td class="cell"><p>- n</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>11</p></td><td class="cell"><p>s8</p></td><td class="cell"><p>s9 s10</p></td><td class="cell"><p>s11</p></td><td class="cell"><p>s17</p></td><td class="cell"><p></p></td><td class="cell"><p>s5</p></td><td class="cell"><p></p></td><td class="cell"><p>s2</p></td><td class="cell"><p>s1</p></td><td class="cell"><p>s4</p></td><td class="cell"><p>s3</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>12</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>r1</p></td><td class="cell"><p></p></td><td class="cell"><p>(1) v -</p></td><td class="cell"><p><i>&gt; deu  </i>{U?/ / ; 0]}</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>13</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>r1</p></td><td class="cell"><p>(1) v -</p></td><td class="cell"><p><i>&gt; camprau </i>{[//y, // / ;0]}</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>14</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>r1</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>(1) VP</p></td><td class="cell"><p>- v</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>15</p></td><td class="cell"><p>s8</p></td><td class="cell"><p>s9 s10</p></td><td class="cell"><p>s11</p></td><td class="cell"><p>s18</p></td><td class="cell"><p></p></td><td class="cell"><p>s5</p></td><td class="cell"><p></p></td><td class="cell"><p>s2</p></td><td class="cell"><p>s1</p></td><td class="cell"><p>s4</p></td><td class="cell"><p>s3</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>16</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>r1</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>(1) NP {[num</p></td><td class="cell"><p>- <i>num </i>NP*</p><p><b>4</b>'NP; NP,em=SEM_,aal]}</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>17</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>r1</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>(1) NP</p></td><td class="cell"><p>- det NP*  {[NP ; 0]}</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>18 19</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>s19</p><p>r1</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>(1) p -</p></td><td class="cell"><p><i>&gt; a</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>20</p></td><td class="cell"><p>s8</p></td><td class="cell"><p>s9 s10</p></td><td class="cell"><p>s11</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>s5</p></td><td class="cell"><p></p></td><td class="cell"><p>s2</p></td><td class="cell"><p>s1</p></td><td class="cell"><p>s4</p></td><td class="cell"><p>s3</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>21</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>r1</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>(1) PP</p></td><td class="cell"><p>- p</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>22</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>r1</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>(1) S -</p></td><td class="cell"><p>&gt; NP1 VP* NP2 PP NP3 {[...]}</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><doubt alpha="100.0" length="4" tooSmall="False" monospace="0.0">else</doubt><doubt alpha="62.0" length="79" tooSmall="False" monospace="0.0">s.t.   STATE(v')=s  and ANCESTOR(v',1)=vand  state tran­sitionS(v,x)=v'Ui=U^Jv'</doubt><p>REDUCE<i>(v,p)</i></p><doubt alpha="61.3" length="155" tooSmall="False" monospace="0.0">for each possible reduced parentv1'6 ANCESTOR(v,RHS(p))if UNIFY(v,p)="success" s"  == GOTO( v1',LHS(p)) if node v"6Ui-1s.t. STATE(v")=s" ifS(v1',LHS(p))=v"</doubt><p>do nothing else</p><doubt alpha="55.2" length="29" tooSmall="False" monospace="0.0">if node v2' 6 ANCESTOR( v",1)</doubt><doubt alpha="53.7" length="54" tooSmall="False" monospace="0.0">let vc"  s.t.  ANCESTOR(vc",1)=v1'  and STATE( vc")=s"</doubt><p>for each "reduce <i>p" </i>6 ACTION[STATE<i>(vc"),xi]</i><i> </i>REDUCE<i>(vc",p)</i> create a new node <i>vn</i> else current reduction failed</p><doubt alpha="66.7" length="6" tooSmall="False" monospace="0.0">ifv"6P</doubt><doubt alpha="54.7" length="53" tooSmall="False" monospace="0.0">let vc"  st.  ANCESTOR(vc",1)=v1'  and STATE( vc")=s"</doubt><doubt alpha="61.8" length="76" tooSmall="False" monospace="0.0">s.t.   STATE(vn)=s" and ANCESTOR( vn,1)= v1' and state transitionS(vn,x)=v1'</doubt><doubt alpha="54.5" length="11" tooSmall="False" monospace="0.0">Ui-1=Ui-1vn</doubt><p>UNIFY<i>(v,p)</i> for "constraint <i>cj"</i><i> </i>6 CONSTRAINT(STATE<i>(v))</i><i> </i>(1 &lt; <i>j</i><i> </i>&lt; <i>m,</i></p><doubt alpha="62.5" length="8" tooSmall="False" monospace="0.0">c P™Pcm)</doubt><doubt alpha="42.4" length="33" tooSmall="False" monospace="0.0">if ^(cj,p)="true" (£(0,p)="true")</doubt><p>TARGET<i>(v)</i><i> </i>= <i>j</i> return "success"</p><p><b>Fig. 2. </b>Modified generalized LR Parsing algorithm</p><p>The parser is a function of two arguments PARSE(grammar, <i>x,</i><i> </i>... xn), where the grammar is provided in form of parsing table. It calls upon the functions SHIFT(v, s) and REDUCE(v, p) to process the shifting and rule reduction as described. The UNIFY<i>(v,</i><i> </i><i>p)</i><i> </i>function is called for every possible reduction in REDUCE<i>(v,</i><i> </i><i>p)</i><i> </i>to ver­ify the legal reduction and select the target rule for the source structure for synchroni­zation. The function TARGET(v) after unification passed is to dedicate the /h target rule as correspondence.</p><page local="11" global="622"/></subsection><subsection number="4.3" title="Translation as Parsing"><p>Our Portuguese-to-Chinese translation (PCT) system is a transfer-based translation system by using the formalism of Constraint-Based Synchronous Grammar (CSG) as its analytical grammar. Unlike other transfer-based MT systems that the major compo­nents: analysis, transfer and generation are carried out individually in pipeline by using different sets of representation rules to achieve the tasks of structure analysis and trans­formation [19], in PCT, only a single set of CS grammar is used to dominate the transla­tion task. Since the structures of parallel languages are synchronized in formalism, as well as the deviations of their structures are also captured and described by the gram­mar. Hence, to the translation of an input text, it essentially consists of three steps. First, for an input sentence s, the structure of string is analyzed by using the rules of source components from the CSG productions; by using the augmented generalized LR parsing algorithm as described. Secondly, the link constraints that are determined during the rule reduction process are propagated to the corresponding target rules <i>R </i>(as selection of target rules) to construct a target derivation sequence <i>Q. </i>And finally, based on the deri­vation sequence Q, translation of the input sentence <i>s </i>is generated by referencing the set of generative rules <i>R </i>that attached to the corresponding constituent nodes in the parsed tree, hence to realize the translation in target language.</p></subsection></section><section number="5" title="Conclusion"><p>In this paper, we have proposed a variation of synchronous grammar based on the syntax of context-free grammar, called Constraint-based Synchronous Grammar (CSG). The source components of CSG are being generalized for representing the common structure of language. Different from other synchronous grammars, each source rule is associated with a set of target productions, where each of the target rules is connected with a constraint over the features of source patterns. The set of target rules are grouped and maintained in a vector ordered by the specificity of con­straints. The objective of this formalism is to allow parsing and generating algorithms to inference different possible translation equivalences for an input sentence being analyzed according to the linguistic features. We have presented a modified general­ized LR parsing algorithm that has been adapted to the parsing our formalism that we have developed for analyzing the syntactic structure of Portuguese in the machine translation system.</p></section><references><p>1. Rambow, O., Satta, G.: Synchronous Models of Language. In Proceedings of 34th Annual Meeting of the Association for Computational Linguistics, University of California, Santa Cruz, California, USA, Morgan Kaufmann (1996) 116-123.</p><p>2. Lewis, P.M., Stearns, R.E.: Syntax-directed transduction. Journal of the Association for Computing Machinery, 15(3), (1968) 465-488.</p><p>3. Shieber, S.M., Schabes, Y.: Synchronous Tree Adjoining Grammar. Proceedings of the 13th International Conference on Computational Linguistic, Helsinki (1990)<page local="12" global="623"/></p><doubt alpha="60.6" length="137" tooSmall="False" monospace="0.0">4. Seki, H., Matsumura, T., Fujii, M., Kasami, T.: On multiple context-free grammars. Theo­retical Computer Science, 88(2) (1991) 191-229</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">622</doubt><doubt alpha="66.1" length="118" tooSmall="False" monospace="0.0">5. Melamed, I.D.: Multitext Grammars and Synchronous Parsers. In Proceedings of NAACL/HLT 2003, Edmonton, (2003) 79-86</doubt><p>6. Wong, F., Hu, D.C., Mao, Y.H., Dong, M.C. A Flexible Example Annotation Schema: Translation Corresponding Tree Representation. In Proceedings of the 20th International Conference on Computational Linguistics, Switzerland, Geneva (2004) 1079-1085</p><p>7. Wu, D.: Grammarless extraction of phrasal translation examples from parallel texts. In Proceedings of TMI-95, Sixth International Conference on Theoretical and Methodologi­cal Issues in Machine Translation, v2, Leuven Belgium (1995) 354-372</p><p>8. Aho, A.V., Ullman, J.D.: Syntax Directed Translations and the Pushdown Assembler. Journal of Computer and System Sciences, 3, (1969) 37-56</p><p>9. Melamed, I.D., Satta. G., Wellington, B.: Generalized Multitext Grammars. In Proceed­ings of 42th Annual Meeting of the Association for Computational Linguistics, Barcelona,</p><doubt alpha="25.0" length="20" tooSmall="False" monospace="0.0">Spain (2004) 661-668</doubt><p>10. Kaplan, R.M., Bresnan, J.: Lexical-Functional Grammar: A Formal System for Grammati­cal Representation. In Joan Bresnan, The Mental Representation of Grammatical Rela­tions, Cambridge, Mass, MIT Press, (1982) 173-281</p><p>11. Kaplan, R.M.: The Formal Architecture of Lexical-Functional Grammar. Information Sci­ence and Engineering, 5, (1989) 30-322</p><doubt alpha="64.5" length="155" tooSmall="False" monospace="0.0">12. Wong, F., Mao, Y.H.: Framework of Electronic Dictionary System for Chinese and Ro­mance Languages. Automatique des Langues (TAL), 44(2), (2003) 225-245</doubt><p>13. Wong, F., Mao, Y.H., Dong, Q.F., Qi, Y.H.: Automatic Translation: Overcome the Barri­ers between European and Chinese Languages. In Proceedings (CD Version) of First In­ternational UNL Open Conference, SuZhou China (2001)</p><p>14. Pollard, C., Sag, I.: Head-Driven Phrase Structure Grammar. University of Chicago Press, (1994) 18. Aho, A.V., Sethi, R., Ullman, J.D.: Compiler: Principles, Techniques and Tools. Addison19. Hutchins, W.J., Somers, H.L.: An Introduction to Machine Translation. Academic</p><doubt alpha="61.5" length="122" tooSmall="False" monospace="0.0">15. Ide, N., Veronis, J.: Word Sense Disambiguation: The State of the Art. Computational Linguistics, 24, (1), (1998) 1-41</doubt><doubt alpha="56.3" length="87" tooSmall="False" monospace="0.0">16. Earley, J.: An Efficient Context-Free Parsing Algorithm. CACM, 13(2), (1970) 94-102</doubt><doubt alpha="48.4" length="64" tooSmall="False" monospace="0.0">17. Tomita, M.: Computational Linguistics, 13(1-2), (1987) 31-46</doubt><doubt alpha="42.9" length="14" tooSmall="False" monospace="0.0">Wesley, (1986)</doubt><doubt alpha="38.5" length="13" tooSmall="False" monospace="0.0">Press, (1992)</doubt></references></body></article>