Docsity

Machine Translation - Lecture Notes | CMPSCI 585, Study notes of Computer Science

Partial preview of the text

Download Machine Translation - Lecture Notes | CMPSCI 585 and more Study notes Computer Science in PDF only on Docsity!

Machine Translation

Lecture # Introduction to Natural Language Processing CMPSCI 585, Fall 2007 Andrew McCallum (including slides from Michael Collins, and Dan Klein)

The challenges of Machine Translation

Differing Word Orders

English word order is subject – verb – object Japanese word order is subject – object – verb English: IBM bought Lotus Japanese: IBM Lotus bought English: Sources said that IBM bought Lotus yesterday Japanese: Sources yesterday IBM Lotus bought that said

Syntactic Structure is not Preserved Across Translations

The bottle floated into the cave La botella entro a la cuerva flotando (the bottle entered the cave floating)

Pronoun Resolution

The computer outputs the data; it is fast. La computadora imprime los datos; es rapida The computer outputs the data; it is stored in ascii. La computadora imprime los datos; estan almacendos en ascii

Differing Treatments of Tense

From Dorr et. al 1998 : Mary went to Mexico. During her stay she learned Spanish. Went iba (simple past/preterit) Mary went to Mexico. When she returned she started to speak Spanish. Went fue (ongoing past/imperfect)

Machine Translation: Example

History

 1950’s: Intensive research activity in MT

 1960’s: Direct word-for-word replacement

 1966 (ALPAC): NRC Report on MT

 Conclusion: MT no longer worthy of serious

scientific investigation.

 1966-1975: `Recovery period’

 1975-1985: Resurgence (Europe, Japan)

 1985-present: Gradual Resurgence (US)

http://ourworld.compuserve.com/homepages/WJHutchins/MTS-93.htm

General Approaches

 Rule-based approaches  Expert system-like rewrite systems  Interlingua methods (analyze and generate)  Lexicons come from humans  Can be very fast, and can accumulate a lot of knowledge over time (e.g. Systran)  Statistical approaches  Word-to-word translation  Phrase-based translation  Syntax-based translation (tree-to-tree, tree-to-string)  Trained on parallel corpora  Usually noisy-channel (at least in spirit)

The Coding View

 “One naturally wonders if the problem of
translation could conceivably be treated as a
problem in cryptography. When I look at an article
in Russian, I say: ‘This is really written in English,
but it has been coded in some strange symbols. I
will now proceed to decode.’ ”

 Warren Weaver (1955:18, quoting a letter he wrote in 1947)

A Brief Introduction to Statistical MT

Parallel corpora are available in several language pairs Basic idea: use a parallel corpus as a training set of translation examples Classic example: IBM work on French-English translation, using the Canadian Hansards. (1.7 million sentences of 30 words or less in length). Idea goes back to Warren Weaver (1949): suggested applying statistical and cryptanalytic techniques to translation.

Example from Koehn and Knight tutorial Translation from Spanish to English, candidate translations based on alone: Que hambre tengo yo What hunger have = 0. 000014 Hungry I am so = 0. 000001 I am so hungry = 0. 0000015 Have i that hunger = 0. 000020

The Sentence Alignment Problem

Might have 1003 sentences (in sequence) of English, 987 sentences (in sequence) of French: but which English sentence(s) corresponds to which French sentence(s)? Might have 1-1 alignments, 1 -2, 2 -1, 2 -2 etc.

The Sentence Alignment Problem

Clearly needed before we can train a translation model Also useful for other multi-lingual problems Two broad classes of methods we’ll cover:

- Methods based on sentence lengths alone. - Methods based on lexical matches, or “cognates”.