Abstract

A statistical translation model (TM) may receive a parse tree in a source language as an input and separate output a string in a target language. The TM may perform channel operations on the parse tree using model parameters stored in probability tables. The channel operations may include reordering child nodes, inserting extra words at each node, e.g., NULL words, translating leaf words, and reading off leaf words to generate the string in the target language. The TM may assign a translation probability to the string in the target language.

Description

[0002] The research and development described in this application were supported by DARPA-ITO under grant number N66001-00-1-8914. The U.S. Government may have certain rights in the claimed inventions.

BACKGROUND

[0003]

Machine translation (MT) concerns the automatic translation of natural language sentences from a first language (e.g., French) into another language (e.g., English). Systems that perform MT techniques are said to “decode” the source language into the target language.

[0004]

One type of MT decoder is the statistical MT decoder. A statistical MT decoder that translates French sentences into English may include a language model (LM) that assigns a probability P(e) to any English string, a translation model (TM) that assigns a probability P(f|e) to any pair of English and French strings, and a decoder. The decoder may take a previously unseen sentence f and try to find the e that maximizes P(e|f), or equivalently maximizes P(e)·P(f|e).

[0005]

A TM may not model structural or syntactic aspects of a language. Such a TM may perform adequately for a structurally similar language pair (e.g., English and French), but may not adequately model a language pair with very different word order conventions (e.g., English and Japanese).

SUMMARY

[0006]

A statistical translation model (TM) may receive a parse tree in a source language as an input and separate output a string in a target language. The TM may perform channel operations on the parse tree using model parameters stored in probability tables. The channel operations may include reordering child nodes, inserting extra words at each node, e.g., NULL words, translating leaf words, and reading off leaf words to generate the string in the target language. The TM may assign a translation probability to the string in the target language.

[0007]

The reordering operation may be based on a probability corresponding to a sequence of the child node labels. The insertion operation may determine which extra word to insert and an insert position relative to the node.

[0008]

The TM may be trained using an Expectation Maximization (EM) algorithm.

[0011]FIG. 3 is a flowchart describing channel operations performed by the TM.

[0012]

[0012]FIG. 4 illustrates tables including model parameters used in the channel operations.

[0013]

[0013]FIG. 5 is a graph structure for training the translation model using an Expectation Maximization (EM) algorithm.

DETAILED DESCRIPTION

[0014]

[0014]FIG. 1 illustrates a statistical translation model (TM) system 100. The system may be based on a noisy channel model. A syntactic parser 110 may generate a parse tree from an input sentence. A parse tree 200, such as that shown in FIG. 2, includes a number of nodes, including parent nodes and child nodes. A child node may be a parent to another node, e.g., the VB2 node to the TO and NN nodes. The parent and child nodes have labels corresponding to a part-of-speech (POS) tag for the word or phrase corresponding to the node, e.g., verb (VB), personal pronoun (PP), noun (NN), etc. Leafs 215 of the tree include words in the input string.

[0015]

The channel 105 accepts the parse tree as an input and performs operations on each node of the parse tree. As shown in FIG. 2, the operations may include reordering child nodes, inserting extra words at each node, translating leaf words, and reading off leafs to generate a string in the target language (e.g., Japanese).

[0016]

The reorder operation may model translation between languages with different word orders, such as SVO (Subject-Verb-Object)-languages (English or Chinese) and SOV-languages (Japanese or Turkish). The word-insertion operation may capture linguistic differences in specifying syntactic cases. For example, English and French use structural position to specify case, while Japanese and Korean use case-marker particles.

[0017]

[0017]FIG. 3 is a flowchart describing a channel operation 300 according to an embodiment. A string in a source language (e.g., English) may be input to the syntactic parser 110 (block 305). The syntactic parser 110 parses the input string into a parse tree (block 310).

[0018]

Child nodes on each internal node are stochastically reordered (block 315). A node with N children has N! possible reorderings. The probability of taking a specific reordering may be given by an r-table 405, as shown in FIG. 4. The reordering may be influenced only by the sequence of child nodes. In FIG. 2, the top VB node 205 has a child sequence PRP-VB1-VB2. The probability of reordering it into PRP-VB2-VB1 is 0.723 (from the second row in the r-table 405). The sequence VB-TO may be reordered into TO-VB, and TO-NN into NN-TO. Therefore, the probability of the second tree 220 is 0.7123 ·0.749·0.8931=0.484.

[0019]

Next, an extra word may be stochastically inserted at each node (block 320). The word may be inserted either to the left of the node, to the right of the node, or nowhere. The word may be a NULL word 230. In a TM model, a NULL word may be an invisible word in the input sentence that generates output words distributed into random positions. NULL words may be function words, such as “ha” and “no” in Japanese. The position may be decided on the basis of the nodes of the input parse tree.

[0020]

The insertion probability may be determined by an n-table 408. The n-table may be split into two tables: a table 410 for insert positions and a table 415 for words to be inserted. The node's label and its parent's label may be used to index the table for insert positions. For example, the PRP node 206 has parent VB 205, thus (parent=VB, node=PRP) is the conditioning index. Using this label pair captures, for example, the regularity of inserting case-marker particles. In an embodiment, no conditioning variable is used when deciding which word to insert. That is, a function word like “ha” is just as likely to be inserted in one place as any other.

[0021]

In FIG. 2, four NULL words 230 (“ha”, “no”, “ga”, and “desu”) were inserted to create a third tree 225. The top VB node, two TO nodes, and the NN node inserted nothings Therefore, the probability of obtaining the third tree given the second tree is (0.652·0.219)·(0.252·0.094)·(0.252·0.062)·(0.252·0.0007)·0.735·0.709 ·0.900·0.800=3.498e-9. A translate operation may be applied to each leaf (block 325). In an embodiment, this operation is dependent only on the word itself and no context is consulted. A t-table 420 may specify the probability for all cases. For the translations shown in the fourth tree 235 of FIG. 2, the probability of the translate operation is 0.9052·0.900·0.038·0.333·1.000=0.0108.

[0022]

The total probability of the reorder, insert, and translate operations may then be calculated (block 435). In this example, the probability is 0.484·3.498e-9·0.0108=1.828e-11. Note that there are many other combinations of such operations that yield the same Japanese sentence. Therefore, the probability of the Japanese sentence given the English parse tree is the sum of all these probabilities.

[0023]

The channel operations may be modeled mathematically. Assume that an English parse tree is transformed into a French sentence f. Let the English parse tree ε, consist of nodes ε1, ε2, . . . , εn, and let the output French sentence consist of French words f1, f2, . . , fm. Three random variables, N, R, and T, are channel operations applied to each node. Insertion N is an operation that inserts a French word just before or after the node. The insertion can be none, left, or right. Insertion N may also decide what French word to insert. Reorder R is an operation that changes the order of the children of the node. If a node has three children, there are 31=6 ways to reorder them. This operation may apply only to non-terminal nodes in the tree. Translation T is an operation that translates a terminal English leaf word into a French word. This operation applies only to terminal nodes. Note that an English word can be translated into a French NULL word.

[0024]

The notation θ32 <ν,p,τ> stands for a set of values of <N, R, T>. θ1=<ν1, pi,τ1> is a set of values of random variables associates with εi, and θ=θ1, θ2, . . . , θn is a set of all random variable associated with a parse tree ε=ε1, ε2, . . . , εn. The probability of getting a French sentence f given an English parse tree ε is
P(fɛ)=∑θ:Str)θ(ɛ))=fP(θɛ)

[0025]

where Str(θ(ε)) is the sequence of leaf words of a tree transformed by θ from ε.

[0026]

The probability of having a particular set of values of random variables in a parse tree is

Assuming a transform operation is independent from other transform operations, and the random variables of each node are determined only by the node itself, then

P(θ|ε)=P(θ1,θ2, . . . , θn|ε1, ε2, . . . , εn)

[0029]

[0029]P(θɛ)=P(θ1,θ2,…,θnɛ1,ɛ2,…,ɛn)=∏i=1nP(θiɛi)

[0030]

The random variables θ1=<ν1,pi,τ1> are assumed to be independent of each other. It is also assumed that they are dependent on particular features of the node ε1. Then,

P(θ1|ε1)=P(νi,ρi, τ1|ε1)

=P(ν1|ε1)P(ρi|εi)P(τ1|ε1)

=P(ν1|N(ε1))P(ρi|R(ε1))P(τ1|T(εi))

=n(νi|N(εi))r(ρi|R(εi))t(τi|T(εi))

[0031]

where N, R, and T are the relevant features of N, R, and T, respectively. For example, the parent node label and the node label were used for N, and the syntactic category sequence of children was used for R. The last line in the above formula introduces a change in notation, meaning that those probabilities are the model parameters n(ν|N), r(ρ|R), and t(τ|T), where N, R, and T are the possible values for N, R and T, respectively.

[0032]

In summary, the probability of getting a French sentence f given an English parse tree ε is
P(fɛ)=∑θ:Str(θ(ɛ))=fP(θɛ)=∑θ:Str(θ(φ))=f∏i=1nn(νiN(ɛ1))r(ρiR(ɛi))t(τiT(ɛi)

The model parameters n(ν|N), r (ρ|R) , and t (τ|T), that is, the probabilities P(ν|N), P(ρ|R), and P(τ|T), decide the behavior of the translation model. These probabilities may be estimated from a training corpus.

[0035]

An Expectation Maximization (EM) algorithm may be used to estimate the model parameters (see, e.g., A. Dempster, N. Laird, and D. Rubin. 1977. Maximum likelihood from incomplete data via the em algorithm). The algorithm iteratively updates the model parameters to maximize the likelihood of the training corpus. First, the model parameters are initialized. A uniform distribution may be used, or a distribution may be taken or a distribution may be taken from other models. For each iteration, the number of events are counted and weighted by the probabilities of the events. The probabilities of events are calculated from the current model parameters. The model parameters are re-estimated based on the counts, and used for the next iteration. In this case, an event is a pair of a value of random variable (such as τ, ρ, or τ) and a feature value (such as N, R, or T) A separate counter is used for each event. Therefore, the same number of counters c(ν|N), C (ρ|R) , and c(τ|T) , as the number of entries in the probability tables, n(ν|N), r (ρ|R), and t(τ|T), are needed.

[0036]

An exemplary training procedure is the following:

[0037]

The training procedure is the following:

[0038]

1. Initialize all probability tables: n(ν|N), r(ρ|R) , and t(τ|τ).

[0039]

2. Reset all counters: c (ν, N) , c (ρ, R) , and c(τ|τ).

[0040]

3. For each pair <ε,f> in the training corpus,

[0041]

For all θ, such that f=Str(θ(ε)),

[0042]

Let cnt=P(θ|ε/Σθ:Str (θ(ε))=fP(θ|ε)

[0043]

For i=1 . . . n,

c(vi,N(εi))+=cnt

c(pi,R(εi))+=cnt

c(τ1,τ(ε1))+=cnt

[0044]

4. For each <v,N, >, <p,R>, and <τ,τ>,

n(v|N)=c(v,N)/Σvc(v,N)

r(ρ|R)=c(ρ,R)/Σpc(ρ,R)

t(τ|τ)=c(τ,τ)/Στc(τ,τ)

[0045]

5. Repeat steps 2-4 for several iterations.

[0046]

An EM algorithm for the translation model may implement a graph structure 500 of a pair <ε,f>, as shown in FIG. 5. A graph node is either a major-node 505 or a subnode. A major-node shows a pairing of a subtree of ε and a substring of f. A subnode shows a selection of a value (ν,p,τ) for the subtree-substring pair.

[0047]

Let fkl=fk . . . fk+(l−1) be a substring of f from the word fk with length l. A subtree εi is a subtree of ε below εi. Assume that a subtree ε1 is ε.

[0048]

A major node ν(εl,fkl) is a pair of a subtree and a substring fkl. The root of the graph is ν(εl,fkl), where L is the length of f. Each major-node connects to several ν-subnodes 510 v(ν;ε1; fkl), showing which value of ν is selected. The arc between ν(ε1,fkl) and v(ν;ε1; fkl) has weight P(ν|ε).

[0049]

A ν-subnode v(ν;ε1; fkl) connects to a final-node with weight P(τ|ε1) if ε1 is a terminal node in ε. If εi is a non-terminal node, a ν-subnode connects to several ρ-subnodes v(ρ;ν;ε1; fkl) 515, showing a selection of a value ρ. The weight of the arc is P(ρ|εi).

[0050]

A ρ-subnode 520 is then connected to π-subnodes v(π;ρ;τ;ε1; fkl) 520. The partition variable, π, shows a particular way of partitioning fkl.

[0051]

A π-subnode v(π;ρ;ν;ε1; fkl) is then connected to major-nodes which correspond to the children of εi and the substring of fkl, decided by <ν, p, τ>. A major-node can be connected from different π-subnodes. The arc weights between—subnodes and major nodes are always 1.0.

[0052]

This graph structure makes it easy to obtain P(Θ|ε) for a particular Θ and Σθ:Str(θ(ε))=fP(Θ|ε). A trace starting from the graph root, selecting one of the arcs from major-nodes, ν-subnodes, and ρ-subnodes, and all the arcs from the π-subnodes, corresponds to a particular Θ, and the product of the weight on the trace corresponds to P(Θ|ε). Note that a trace forms a tree, making branches at the-subnodes.

[0053]

We define an alpha probability and a beta probability for each major-node, in analogy with the measures used in the inside-outside algorithm for probabilistic context free grammars. The alpha probability (outside probability) is a path probability from the graph root to the node and the side branches of the node. The beta probability (inside probability) is a path probability below the node.

[0054]

The alpha probability for the graph root, α(ε1,f1L), is 1.0. For other major-nodes,

α(ν)=Σ α(ParentM(s))·{P(ν|ε)Pρ|ε)

[0055]

εParentπ(ν)

Π β(ν′)}

[0056]

ν′εChildπ(s)

[0057]

ν′≠ν

[0058]

where Parentπ(ν) is a set of π-subnodes which are immediate parents of ν, Childπ(s) is a set of major-nodes which are children of π-subnodes s, and ParentM(s) is a parent major-node of π-subnodes s (skipping ρ-subnodes, and ν-subnodes). P(ν|ε) and P (ρ|ε) are the arc weights from ParentM(s) to s.

[0059]

The beta probability is defined as

β(ν)=β(εi,fkl)

[0060]

if εi is a terminal
={∑P(τɛi)P(vɛi)∑ρP(ρɛi)∑πΠjβ(ɛj,fk′l′)

The counts c(ν|N) , C(ρ|R) , and C(τ|T) for each pair <ε, f> are also in FIG. 5. Those formulae replace the step 3 in the training procedure described above

[0066]

for each training pair, and these counts are used in step 4.

[0067]

The graph structure is generated by expanding the root node ν(ε1,flL) . The beta probability for each node is first calculated bottom-up, then the alpha probability for each node is calculated top-down. Once the alpha and beta probabilities for each node are obtained, the counts are calculated as above and used for updating the parameters.

[0068]

The complexity of this training algorithm is O(n3|ν||ρ||π|). The cube comes from the number of parse tree nodes (n) and the number of possible French substrings (n2).

[0069]

In an experiment, 2121 translation sentence pairs were extracted from a Japanese-English dictionary. These sentences were mostly short ones. The average sentence length was 6.9 for English and 9.7 for Japanese. However, many rare words were used, which made the task difficult. The vocabulary size was 3463 tokens for English, and 3983 tokens for Japanese, with 2029 tokens for English and 2507 tokens for Japanese occurring only once in the corpus.

[0070]

A POS tagger (described in E. Brill,. Transformation-based error-driven learning and natural language processing: A case study in part of speech tagging. Computational Linguistics, 21(4), 1995) and a parser (described in M. Collins. Head-Driven Statistical Models for Natural Language Parsing. Ph.D. thesis, University of Penn., 1999.) were used to obtain parse trees for the English side of the corpus. The output of the parser was modified in the following way. First, to reduce the number of parameters in the model, each node was re-labeled with the POS of the node's head word, and some POS labels were collapsed. For example, labels for different verb endings (such as VBD for -ed and VBG for -ing) were changed to the same label VB. There were then 30 different node labels, and 474 unique child label sequences.

[0071]

Second, a subtree was flattened if the node's head-word was the same as the parent's headword. For example, (NN1 (VB,NN2)) was flattened to (NN1 VB NN2) if the VB was a head word for both NN1 and NN2. This flattening was motivated by various word orders in different languages. An English SVO structure is translated into SOV in Japanese, or into VSO in Arabic. These differences are easily modeled by the flattened subtree (NN1 VB NN2), rather than (NN1 (VB NN2)).

[0072]

The training procedure resulted in tables of estimated model parameters. FIG. 4 shows part of those parameters obtained by the training above.

[0073]

A number of embodiments have been described. Nevertheless, it will be understood that various modifications may be made without departing from the spirit and scope of the invention. Accordingly, other embodiments are within the scope of the following claims.

Claims (28)

1. A method comprising:

parsing a first string in a first language into a parse tree including a plurality of leafs, each leaf including a first word in the first language;

reordering one or more of the leafs; and

translating the first word at each leaf into a second word corresponding to a possible translation in a second language.

2. The method of claim 1, wherein the parse tree comprises a plurality of nodes, one or more of said nodes including one or more leafs.

3. The method of claim 2, wherein said reordering comprises reordering one or more of said nodes.

4. The method of claim 1, comprising determining a probability of said reordering.

5. The method of claim 2, wherein the nodes include child nodes having labels.

6. The method of claim 5, wherein said reordering comprises reordering one or more of said child nodes in response to a probability corresponding to a sequence of the child node labels.

7. The method of claim 1, wherein said translating comprises translating the first word at each leaf into a second word in the second language in response to a probability of a correct translation.

8. The method of claim 1, further comprising:

inserting one of a plurality of words at one or more of said nodes.

9. The method of claim 8, wherein said inserting comprises inserting one of a plurality of NULL words at one or more of said nodes.

10. The method of claim 8, wherein said inserting comprises inserting the word at an insert position relative to the node.

11. The method of claim 10, wherein the insert position comprises one of a left position, a right position, and no position.

12. The method of claim 10, wherein the parse tree includes one or more parent nodes and a plurality of child nodes associated with the one or more parent nodes, the parent nodes having parent node labels and the child nodes having child node labels.

13. The method of claim 12, wherein said inserting comprises inserting one of the plurality of words at a child node in response to the child node label and the parent node label.

14. The method of claim 1, further comprising:

generating a second string including the second word at each leaf.

15. The method of claim 14, further comprising:

assigning a translation probability to the second string.

16. Apparatus comprising:

a reordering module operative to reorder nodes in a parse tree, said parse tree including a plurality of nodes, one or more of said nodes including a leaf having a first word in a first language;

an insertion module operative to insert an additional word at one or more of said nodes; and

a translation module operative to translate the first word at each leaf into a second word corresponding to a possible translation in a second language.

17. The apparatus of claim 16, wherein the translation module is further operative to generate an output string including the second word at each leaf.

18. The apparatus of claim 17, further comprising a translation model operative to assign a translation probability to the output string.

19. The apparatus of claim 17, further comprising a training module operative to receive a plurality of translation sentence pairs and train the apparatus using said translation pairs and an Expectation Maximization (EM) algorithm.

20. The apparatus of claim 16, wherein the parse tree comprises a plurality of parent nodes, each parent node having a label, and

wherein each parent node includes one or more child nodes, each child node having a label.

21. The apparatus of claim 20, wherein the reordering module includes a reorder table including a reordering probability associated with reordering a first child node sequence into a second child node sequence.

22. The apparatus of claim 20, wherein the insertion module include an insertion table including an insertion probability associated with inserting the additional word in a position relative to one of the child nodes.

23. The apparatus of claim 22, wherein the insertion probability is associated with a label pair including the label of said one or more child node and the label of the parent node associated with said child node.

24. The apparatus of claim 20, wherein the insertion module includes an insertion table including an insertion probability associated with inserting one of a plurality of additional words.

Document conversion system including data monitoring means that adds tag information to hyperlink information and translates a document when such tag information is included in a document retrieval request