The present invention relates to a statistical machine translation method using a dependency forest, and more particularly, to a statistical machine translation method using a dependency forest which can improve a translation capability by performing a dependency analysis for a corpus of a pair of languages to generate a plurality of dependency trees, combining the plurality of generated dependency trees to generate a dependency forest, using the dependency forest to generate a translation rule and a dependency language model, and then applying the generated translation rule and dependency language model when a source-language text is converted to a target-language text.
With ((a) telescope)→dai wangyuanjing de Further, it is possible to obtain a rule having one non-terminal symbol by replacing the smaller rule “(a) telescope→wangyuanjing” with the non-terminal symbol as follows:
with (X1)→dai X1 de
Here, “X” denotes a non-terminal symbol, and a subscript “1” denotes a correspondence between non-terminal symbols of source language and target language. Shen et al introduced a dependency language model in 2008. Due to the dependency language model, a generation of target sentence is well-described because the dependency language model directly models a semantic structure of a sentence. Compared with an n-gram language model in the prior art, a language model reflecting the dependency excels at capturing a non-local dependency between words (for example, “saw” . . . “with” in
For example, a tree probability in
Here, PT(x) denotes a probability of a word x which is a root of the dependency tree. PL and PR denote generation probabilities of right and left sides, respectively.
A recent dependency parser has a high quality (English 91% and Chinese 87%), but the dependency parser is not sufficient for the statistical machine translation. Since a string-to-tree system is dependent on one best tree for parameter estimation, qualities of a rule table and a dependency language model are influenced by a parsing error, thereby a translation error occurs.
Technical Problem
The present invention has been made to solve the above-mentioned problems and intends to improve qualities of a rule table and a dependency language model by using a new concept of a dependency forest generated by combining a plurality of dependency trees instead of one best dependency tree.
Also, the present invention intends to improve a translation capability by applying the rule table and the dependency language model generated using the dependency forest.
Technical Solution
In accordance with a first aspect of the present invention, a method of generating a translation rule includes extracting a translation rule by using a dependency forest generated by combining a plurality of dependency trees.
In accordance with a second aspect of the present invention, a method of generating a translation rule includes performing a dependency analysis for a bilingual corpus; generating a dependency tree by the dependency analysis and generating a dependency forest by combining a plurality of dependency trees; searching for a plurality of well-formed structures for each node within the dependency forest; and extracting a translation rule when dependency structures within the plurality of well-formed structures correspond to a word alignment.
In accordance with a third aspect of the present invention, a statistical machine translation method includes translating a source language by using a translation rule and a dependency language model generated from a dependency forest generated by combining a plurality of dependency trees.
In accordance with a fourth aspect of the present invention, an apparatus for generating a translation rule includes a means that generates a dependency tree by performing a dependency analysis for a corpus of a pair of languages and generates a dependency forest by combining a plurality of dependency trees; a means that searches for a plurality of well-formed structures for each node within the dependency forest; and a means that extracts a translation rule when dependency structures within the plurality of well-formed structures correspond to a word alignment.
In accordance with a fifth aspect of the present invention, a statistical machine translation apparatus includes a dependency parser that generates a dependency tree by performing a dependency analysis for a source sentence and a target sentence of a corpus of a pair of languages and generates a dependency forest for the source sentence and the target sentence by combining a plurality of dependency trees; a translation rule extractor that extracts a translation rule by using the dependency forest; a language model trainer that generates a dependency language model by using the dependency forest of the target sentence; and a decoder that converts a source sentence text to a target sentence text by applying the translation rule and the dependency language model.
Advantageous Effects
Accordingly, the present invention has an effect of greatly improving a capability of string-dependency translation in comparison with a translation method using one best dependency tree by generating a rule table and a dependency language model from a dependency forest generated by combining a plurality of dependency trees and performing translation using the rule table and the dependency language model.
Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. A configuration of the present invention and an operational effect thereof will be clearly understood through the following detailed description.
Prior to the detailed description of the present invention, it should be noted that the same components refer to the same reference numerals anywhere as possible in the drawings and the detailed description will be omitted when known configurations may make the subject matter of the present invention unnecessarily ambiguous.
The present invention uses a source sentence string and a plurality of dependency trees for a corresponding target sentence during a training step in a tree-based statistical machine translation framework. The present invention suggests a dependency tree of a compact representation which is called a dependency forest in order to effectively process a plurality of dependency trees. The dependency forest has a hypergraph structure like a packed forest. The hypergraph-based dependency forest is arranged in a source sentence string. A plurality of translation rules are extracted by checking whether a target phrase is a well-formed structure from string-to-forest aligned corpus. Each node is a word in the dependency forest. A span is added to each node to distinguish the node. The nodes are connected by a hyperedge in the dependency forest. In the dependency tree, an edge faces from a dependant to a head of the dependant but the hyperedge packs all dependants having a common head.
A rule extraction algorithm searches for a well-formed structure for each node by a bottom-up method. The algorithm retains k-best well-formed structures for each node. A well-formed structure of the head may be configured from the dependants of the head.
In the dependency forest, k-best fixed and floating structures for each node may be obtained by manipulating a fixed structure of its own dependant. Then, when a dependency structure corresponds to a word arrangement, a string-dependency correspondence rule is extracted.
Dependency Forest
In the dependency forest, each node is a word. In order to distinguish between nodes, a span is added to each node. For example, a span of “a” is (2, 2). It is because “a” is a third word in the sentence. Since a fourth word “boy” dominates a node a2,2, the fourth word “boy” may be represented by boy2,3. Here, it should be noted that a position of “boy” is considered. Similarly, a word “boy” in
For example, a hyperedge e1 in
e1: <(he0,0, boy2,3, with4,6), saw0,6>
The dependency forest may be formally represented by a <V, E> pair. Here, V denotes a node set, and E denotes a hyperedge set. Each node belongs to V (v V), and is represented in a form of wi,j. in a sentence w0:n−1=w0 . . . wn−1 consisting of n words. The wi,j indicates that a node corresponding to the wi,j dominates a substring from a position of i to a position of j except for itself. Each hyperedge belongs to E (e E), and is represented by a <tail(e), head(e)> pair. A head(e) belongs to V as a head (head(e) V), and tail(e) also belongs to V as a dependant of the head (tail(e) V).
The dependency forest has a hypergraph structure like a packed forest. However, the packed forest handles a PCFG rule probability corresponding to each hyperedge as a weight, while the dependency forest has a hypergraph to which the weight is applied. It is because a dependency parser outputs a positive or a negative score for each edge of the dependency tree rather than the hyperedge of the dependency forest. For example, in
In order to allocate a probability to each hyperedge, the positive number for the hyperedge may be first obtained using a score of a corresponding edge.
Here, C(e) denotes a count of a hyperedge e, head(e) denotes a head, tail(e) denotes a dependant set of the head, v denotes one dependant, and s(v, head(e)) denotes a score of an edge to head(e) in v. For example, in
Further, a probability p(e) of the hyperedge may be obtained by normalizing counts between all hyperedges having the same head, which are collected from a training corpus.
As a result, it is possible to obtain a weighted dependency forest where each hyperedge has a probability.
Forest-based Rule Extraction
In tree-based rule extraction, all phrases of a pair of languages (or bilingual phrases) corresponding to a word arrangement are first listed, and then it is checked whether a dependency structure for a target phrase is a well-formed structure. However, since the well-formed structure for the target phrase exponentially increases in this algorithm, the algorithm does not operate in a forest scenario.
A GHKM algorithm, which is recently developed to extract a tree-to-string rule from a one-best tree, has been successfully and extendedly applied to the packed forest (Mi and Huang 2008). This algorithm distinguishes a rule of a minimum unit and a complex rule. Although there is the exponential number of complex rules, the number of minimum rules extracted from each node is somewhat limited. Accordingly, it is possible to obtain a good complex rule by combining minimum rules.
However, the GHKM algorithm cannot be applied to extract a string dependency rule from the dependency forest. It is because although this algorithm requires that a complete sub tree exists within the rule, any of the fixed or floating dependency structure does not guarantee to include all dependants of the head. For example, a floating structure of
With respect to the above, the algorithm according to the present invention searches for a well-formed structure for each node through a bottom-up method. This algorithm retains k-best well-formed structures for each node, and the well-formed structure of the head may be configured by the well-formed structure of the dependant of the head. For example, since the fixed structure where telescope5,6 is a root is (a) telescope in
Similarly, the floating structure of a node saw0,6 may be obtained by connecting fixed structures of dependants boy2,3 and with4,6 thereof.
Accordingly, k fixed and floating structures having the highest probability for the node may be obtained by manipulating the fixed structure of the dependant in the dependency forest. Then, when the dependency structure corresponds to the word arrangement, the string dependency rule may be extracted.
A method of evaluating the well-formed structure extracted from the node will be described. According to a document of Mi and Huang 2008, a fractional count is allocated to each well-formed structure. When a tree fragment t is given, a posterior probability is calculated using an inside-outside algorithm.
Here, root(t) denotes a root of the tree, e denotes an edge, leaves(t) denotes a leaf (component) set of the tree, α(·) denotes an outside probability, and β(·) denotes an inside probability.
For example, a sub tree where boy2,6 is a root has a next posterior probability in
α(boy2,6)×p(e4)×p(e5)×p(e6)×β(a2,2)×β(a5,5)
Then, a fractional frequency of a sub tree t is as follows.
Here, TOP denotes a root node of the forest.
When the well-formed structure is non-constituent, a fractional count is approximated using a fractional count of a minimum tree fragment including the well-formed structure. Finally, the fractional count of the well-formed structure may be used for calculating a relative frequency of a rule having the well-formed structure in the target language side.
Forest-based Dependency Language Model Trainings
In order to train a dependency language model from the dependency forest, all heads and dependants thereof should be collected. The collection may be easily performed by listing all hyperedges. Similarly, a posterior probability of each hyperedge e is calculated using the inside-outside algorithm.
For example, a posterior probability of a hyperedge e2 in
αβ(e2)=α(saw0,6)×p(e2)×β(he0,0)×β(boy2,6)
Then, a fractional frequency of the hyperedge e may be obtained.
In each n-gram (for example, “boy-as-head a”), the same fractional frequency of the hyperedge including the n-gram itself is allocated.
Table 1 shows a BLEU score and an average decoding time for a Chinese-English test set.
In Table 1, a first translation system (basic translation system) uses a dependency language model and a rule table trained from one-best dependency tree, and the remaining translation systems apply the dependency forest to at least one of the dependency language model and the rule table. * or ** means a better meaningful capability in comparison with the basic translation system.
First, an experiment is performed on a Chinese-English evaluation set. Table 1 shows the BLEU score on the test set. A first column “Rule” indicates whether the string dependency rule is trained from the one-best dependency tree or the dependency forest. Similarly, a second column “DepLM” also distinguishes two source languages for the training dependency language model.
The basic translation system uses the dependency language model and the rule table trained from the one-best dependency tree. In an exemplary embodiment of the present invention, the string dependency translation is consistently and meaningfully improved within a BLEU point range from +1.3 to +1.4 by adding the rule table and the dependency language model obtained from the dependency forest. Further, even though the rule table and the dependency language model trained from the dependency forest are used, a decoding time is slightly increased.
Table 2 shows a BLEU store for a Korea-Chinese test set. In order to inspect an efficiency of the present invention in respect to a pair of different languages, an experiment for Korean-Chinese translation is performed. A training corpus includes about 8.2 M Korean words and about 7.3 M Chinese words. A Chinese sentence is used for training a 5-gram dependency language model as well as a 3-gram dependency language model. Both development and test sets include 1,006 sentences having a single reference. Table 2 shows the BLEU score on the test set. Also, it can be seen that the forest-based method according to the present invention achieves significant improvements in comparison with the basic translation.
In a brief description of an operation of the training part, a dependency parser first performs a phrase parsing for a source sentence and a target sentence of a bilingual corpus. According to a dependency analysis, a dependency tree for the source sentence and the target sentence is generated. The dependency parser generates a dependency forest for each of the source sentence and the target sentence by combining a plurality of generated dependency trees.
A translation rule extractor generates a translation rule by using the dependency forest, and stores the generated translation rule in a translation rule table. Further, a dependency language model trainer generates a dependency language model by using the dependency forest for the target sentence, and stores the generated dependency language model in a language model database (DLM).
In a brief description of an operation of the decoding part, a source language text (or input) is input to a decoder, and the decoder generates a target language text (or output) by using the translation rule and the dependency language model. The decoder can improve the translation capability by using the translation rule and the dependency language model generated from the dependency forest.
Meanwhile, the present invention can implement translation rule generation using the dependency forest and a machine translation method using the translation rule in a software program and apply the program to various reproduction apparatuses by recording the program in a predetermined computer-readable recording medium. The various reproduction apparatuses may be a PC, a notebook, a portable terminal and the like.
For example, the recording medium may be a hard disk, a flash memory, a RAM, a ROM and the like which are internal devices of each reproduction apparatus, or an optical disk such as a CD-R or a CD-RW, a compact flash card, smart media, a memory stick, and a multimedia card which are external devices of each reproduction apparatus.
The exemplary embodiments described in this specification of the present invention do not limit the present invention. The scope of the present invention should be construed by the appended claims and all technologies within the equivalent scope to that of the present invention should be construed as being included in the scope of the present invention.
The present invention can be widely used in a statistical machine translation field since the present invention can improve a translation capability by analyzing a dependency from a bilingual corpus to generate a plurality of dependency trees, combining the plurality of generated dependency trees to generate a dependency forest, using the dependency forest to generate a translation rule and a dependency language model, and then applying the generated translation rule and dependency language model when a source language text is converted to a target language text.
Number | Date | Country | Kind |
---|---|---|---|
10-2010-0081378 | Aug 2010 | KR | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/KR2011/003968 | 5/31/2011 | WO | 00 | 2/21/2013 |