Download presentation

Presentation is loading. Please wait.

Published byDouglas Burgin Modified over 2 years ago

1
Machine Translation Course 9 Diana Trandab ă ț Academic year 2014-2015

2
Statistical Machine Translation Bilingual text Monolingual text Translation model P(s|t) Language model P(t) Decoding algorithm argmax P(t)*P(s|t)

3
Decoding How to translate new sentences? Probability models enable us to make predictions: – Given a particular English sentence, what is the most probable Foreign sentence corresponding to it? In math, we want to solve: argmax English p(English|Foreign) Problem: there are a lot of Foreign possible sentences to choose from!!! In combination with a language model, the decoder generates the most likely translation.

4
Little story... A French speaking traveler equipped with a bilingual dictionary enters in a New-York store. While reviewing the price chart, he encounters a line that he does not understand: A sheet of paper........ 0.25$ We will look at a process this traveler could use to decode this strange sentence.

5
Resources Sentence to translate: A sheet of paper Bilingual dictionary The traveler’s common sense: The traveller can intuitively evaluate the likelihood of a French sentence (since he is French). sourcetargetsourcetarget AUnofde AUneofdu sheetfeuillepaperpapier sheetdrap

6
The traveler’s decoder With these resources in hand, the traveler can use the following algorithm to translate the sentence one word at a time: initialize the set of candidate translations H with an empty sentence. while there are incomplete sentences in H – pick the least completed translation h from H – for each possible translation for the next word to translate in h append at the end of h and store the result in hcopy if hcopy is likely following the traveler’s intuition, add it to H return the best candidate in H

7
Search graph The traveler concludes that the most likely translation is Une feuille de papier.

8
Search space complexity

9
Decoder A decoder searches the target document t having the highest probability to translate a given source document s. Most decoders assume that the sentences of a document are independents one from each others. The decoder can thus translate each sentence individually. Shortcomings: – A sentence cannot be omitted, merged with another one, repositioned or sliced by the decoder. – The context of a sentence is not considered when it is translated.

10
The decoder’s task The task of the decoder is to use its knowledge and a density function to find the best sequence of transformations that can be applied to an initial target sentence to translate a given source sentence. This problem can be reformulated as a classic AI problem: searching for the shortest path in an implicit graph. Two independent problems must be resolved in order to build a decoder: – Model representation The model defines what a transformation is and how to evaluate the quality of a translation. – Search space exploration Enumerating all possible sequences of transformations is often impracticable, we must smartly select the ones that will be evaluated.

11
Model representation — Partial translation The partial translation is a translation that is being transformed. It is composed of: – the source sentence – the target sentence that is being built – a progress indicator that shows how to continue this translation The source and target sentences can be sequences of words, trees, non-contiguous sentences, etc.

12
Model representation — Transformation A partial translation evolves when a transformation is applied to it. A transformation can take many forms: – translation of one word – translation of many words – reordering of the children of a node in a tree

13
Model representation — Cost A cost quantify the quality of a partial translation. Usually, it evaluates at least: – the likelihood of the transformations – the fluency of the target sentence generated so far – the word reordering that occurred The cost is used to identify the partial translations to dismiss and to select the best complete translation when the search ends.

14
Model representation — Transformation generator The transformation generator takes as input a partial translation and outputs the set of transformations that can be applied to it.

15
Search space exploration — Hypothesis and search strategy A hypothesis is made of a partial translation and of a cost. The task of the search strategy is two-fold: – Deciding the order in which the hypotheses are explored. – Identify the hypotheses to dismiss (using the value of the cost).

16
Putting it all together Each vertex is a hypothesis (partial translation and cost) Each edge corresponds to a transformation. The transformation generator enumerates the out-edges of each vertex. The search strategy defines how to explore the graph

17
Slide from Koehn 2008

35
Modified from Koehn 2008 (possible future paths are the same)

36
Modified from Koehn 2008 (possible future paths are the same)

37
Slide from Koehn 2008

47
Great! See you next time!

Similar presentations

OK

State-Space Searches. 2 State spaces A state space consists of A (possibly infinite) set of states The start state represents the initial problem Each.

State-Space Searches. 2 State spaces A state space consists of A (possibly infinite) set of states The start state represents the initial problem Each.

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google

Ppt on 5 star chocolate layer Ppt on p&g products samples Ppt on hindu religion wikipedia Doc to ppt online Ppt on mauryan india Ppt on machine translation japanese Ppt on review writing service Ppt on db2 introduction to business Ppt on unipolar nrz Ppt on the art of war online