1 / 76

Machine Translation: Introduction

Machine Translation: Introduction. Slides from: Dan Jurafsky. Outline. Intro and a little history Language Similarities and Divergences Three classic MT Approaches Transfer Interlingua Direct Modern Statistical MT Evaluation. What is MT?.

garciak
Download Presentation

Machine Translation: Introduction

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Machine Translation: Introduction Slides from: Dan Jurafsky

  2. Outline • Intro and a little history • Language Similarities and Divergences • Three classic MT Approaches • Transfer • Interlingua • Direct • Modern Statistical MT • Evaluation

  3. What is MT? • Translating a text from one language to another automatically

  4. Google Translate • The translation • http://translate.google.com/translate?hl=en&sl=es&tl=en&u=http%3A%2F%2Fwww.cocinadominicana.com%2Facompanamientos-ensaladas-pastelones%2F1907-tostones.html • The original recipe for tostones • http://www.cocinadominicana.com/acompanamientos-ensaladas-pastelones/1907-tostones.html

  5. Google Translate • http://translate.google.com/translate_t • http://translate.google.com/translate?hl=en&sl=fr&u=http://www.tarte-tatin.info/recette-tarte-tatin.html&ei=BduiSYK3C4KOsQObvLm_CQ&sa=X&oi=translate&resnum=4&ct=result&prev=/search%3Fq%3Dtarte%2Btatin%2Brecettes%26num%3D100%26hl%3Den%26lr%3D%26client%3Dsa

  6. Machine Translation • The Story of the Stone (“The Dream of the Red Chamber”) • Cao Xueqin 1792 • Chinese gloss: Dai-yu alone on bed top think-of-with-gratitude Bao-chai again listen to window outside bamboo tip plantain leaf of on-top rain sound sigh drop clear cold penetrate curtain not feeling again fall down tears come • Hawkes translation: As she lay there alone, Dai-yu’s thoughts turned to Bao-chai… Then she listened to the insistent rustle of the rain on the bamboos and plantains outside her window. The coldness penetrated the curtains of her bed. Almost without noticing it she had begun to cry.

  7. Machine Translation • Issues: • Sentence segmentation: 4 English sentences to 1 Chinese • Grammatical differences • Chinese rarely marks tense: • As, turned to, had begun, • tou -> penetrated • No pronouns or articles in Chinese • Stylistic and cultural differences • Bamboo tip plaintain leaf -> bamboos and plantains • Ma ‘curtain’ -> curtains of her bed • Rain sound sigh drop -> insistent rustle of the rain

  8. Alignment in Machine Translation

  9. Not just literature • Hansards: Canadian parliamentary proceeedings

  10. What is MT already good enough for? • Tasks for which a rough translation is fine • Extracting information (finding recipes!) • Web pages • email • Tasks for which MT can be post-edited • MT as first pass • Computer-aided human translation • Tasks in sublanguage domains where high-quality MT is possible • FAHQT (Fully Automatic High Quality Translation)

  11. What is MT not yet good enough for? • Really hard stuff • Literature • Natural spoken speech (meetings, court reporting) • Really important stuff • Medical translation in hospitals • 911 calls

  12. MT History • 1946 Booth and Weaver discuss MT at Rockefeller foundation in New York • 1947-48 idea of dictionary-based direct translation • 1949 Weaver memorandum popularized idea • 1952 all 18 MT researchers in world meet at MIT • 1954 IBM/Georgetown Demo Russian-English MT • 1955-65 lots of labs take up MT

  13. Warren Weaver memo • http://www.stanford.edu/class/linguist289/weaver001.pdf • “There are certain invariant properties which are… to some statistically useful degree, common to all languages.” • On March 4, 1947, “having considerable exposure to computer design problems during the war, and being aware of the speed, capacity, and logical flexibility possible in modern electronic computers”, Weaver suggested that computers to be used for translation

  14. History of MT: Pessimism • 1959/1960: Bar-Hillel “Report on the state of MT in US and GB” • Argued FAHQT too hard (semantic ambiguity, etc) • Should work on semi-automatic instead of automatic • His argument:Little John was looking for his toy box. Finally, he found it. The box was in the pen. John was very happy. • Only human knowledge lets us know that ‘playpens’ are bigger than boxes, but ‘writing pens’ are smaller • His claim: we would have to encode all of human knowledge

  15. History of MT: Pessimism • The ALPAC report • Headed by John R. Pierce of Bell Labs • Conclusions: • Supply of human translators exceeds demand • All the Soviet literature is already being translated • MT has been a failure: all current MT work had to be post-edited • Sponsored evaluations which showed that intelligibility and informativeness was worse than human translations • Results: • MT research suffered • Funding loss • Number of research labs declined • Association for Machine Translation and Computational Linguistics dropped MT from its name

  16. History of MT • 1976 Meteo, weather forecasts from English to French • Systran (Babelfish) been used for 40 years • 1970’s: • European focus in MT; mainly ignored in US • 1980’s • ideas of using early AI techniques in MT (KBMT, CMU) • Focus on “interlingua” systems, especially in Japan • 1990’s • Commercial MT systems • Statistical MT • Speech-to-speech translation • 2000’s • Statistical MT takes off • Google Translate

  17. Language Similarities and Divergences • Some aspects of human language are universal or near-universal, others diverge greatly • Typology: the study of systematic cross-linguistic similarities and differences • What are the dimensions along with human languages vary?

  18. Morphology • Morpheme • Minimal meaningful unit of language • Word = Morpheme+Morpheme+Morpheme+… • Stems: also called lemma, base form, root, lexeme • hope+ing  hoping hop  hopping • Affixes • Prefixes: Antidisestablishmentarianism • Suffixes: Antidisestablishmentarianism • Infixes: hingi (borrow) – humingi (borrower) in Tagalog • Circumfixes: sagen (say) – gesagt (said) in German

  19. Morphological Variation • Isolating languages • Cantonese, Vietnamese: each word generally has one morpheme • Vs. Polysynthetic languages • Siberian Yupik (‘Eskimo’): single word may have very many morphemes • Agglutinative languages • Turkish: morphemes have clean boundaries • Vs. Fusion languages • Russian: single affix may have many morphemes

  20. A Turkish word • uygarlaştıramadıklarımızdanmışsınızcasına • uygar+laş+tır+ama+dık+lar+ımız+dan+mış+sınız+casına • Behaving as if you are among those whom we could not cause to become civilized

  21. Slide from Holger Diessel Index of synthesis isolating synthetic Vietnamese English Russian Oneida

  22. Isolating language (1) Vietnamese (Comrie 1981: 43) Khi tôi đến nhà bạn, When I come house friend ‘When I came to my friend’s house, chúng tôi bắt đầu làm bài. PL I begin do lesson ‘we began to do lessons.’ Slide from Holger Diessel

  23. Isolating language Cantonese keui wa chyuhn gwok jeui daaih gaan nguk haih li gaan he say entire country most big building house is this building

  24. Synthetic language (2) Kirundi (Whaley 1997:20) Y-a-bi-gur-i-ye abâna CL1-PST-CL8.them-buy-APPL-ASP CL2.children ‘He bought them for the children.’ Slide from Holger Diessel

  25. Polysynthetic language Noun-incorporation (cf. fox-hunting, bird-watching) (3) Mohawk (Mithun 1984: 868) a. r-ukwe’t-í:yo he-person-nice ‘He is a nice person.’ b. wa-hi-‘sereth-óhare-‘se PST-he/me-car-wash-for ‘He car-wash for me.’ (= ‘He washed my car’) c. kvtsyu v-kuwa-nya’t-ó:’ase fish FUT-they/her-throat-slit ‘They will throat-slit a fish.’ Slide from Holger Diessel

  26. Index of fusion agglutinative fusional Swahili Russian Oneida Slide from Holger Diessel

  27. Agglutinative language (1) Turkish (Comrie 1981: 44) SG PL Nominative adam adam-lar Accusative adam-K adam-lar-K Genitive adam-Kn adam-lar-Kn Dative adam-a adam-lar-a Locative adam-da adam-lar-da Ablative adam-dan adam-lar-dan Slide from Holger Diessel

  28. Fusional language (2) Russian SG PL Nominative stol stol-y Accusative stol stol-y Genitive stol-a stol-ov Dative stol-u stol-am Instrumental stol-om stol-ami Prepositional stol-e stol-ax SG PL lip-a lip-y lip-u lip-y lip-y lip lip-e lip-am lip-oj lip-ami lip-e lip-ax Slide from Holger Diessel

  29. Word Order • SVO (Subject-Verb-Object) languages • English, German, French, Mandarin • SOV Languages • Japanese, Hindi • VSO languages • Irish, Classical Arabic • SVO langs generally prepositions: to Yuriko • VSO langs generally postpositions: Yuriko ni

  30. Segmentation Variation • Not every writing system has word boundaries marked • Chinese, Japanese, Thai, Vietnamese • Some languages tend to have sentences that are quite long, closer to English paragraphs than sentences: • Modern Standard Arabic, Chinese

  31. Inferential Load: cold vs. hot langs • Some ‘cold’ languages require the hearer to do more “figuring out” of who the various actors in the various events are: • Japanese, Chinese, • Other ‘hot’ languages are pretty explicit about saying who did what to whom: • English

  32. Inferential Load (2) All noun phrases in blue do not appear in Chinese text … But they are needed for a good translation

  33. Lexical Divergences • Word to phrases: • English “computer science” = French “informatique” • POS divergences • English: ‘she likes/VERB to sing’ • German: Sie singt gerne/ADV • English: ‘I’m hungry/ADJ • Spamish: ‘tengo hambre/NOUN

  34. Lexical Divergences: Specificity • Grammatical constraints • English has gender on pronouns, Mandarin not. • So translating “3rd person” from Chinese to English, need to figure out gender of the person! • Similarly from English “they” to French “ils/elles” • Semantic constraints • English: ‘brother’ • Mandarin: ‘gege’ (older) versus ‘didi’ (younger) • English: ‘wall’ • German: ‘Wand’ (inside) ‘Mauer’ (outside) • German: ‘Berg’ • English: ‘hill’ or ‘mountain’

  35. Lexical Divergence: many-to-many

  36. Lexical Divergence: lexical gaps • Japanese: no word for privacy • English: no word for Cantonese ‘haauseun’ or Japanese ‘oyakoko’ (something like `filial piety’) • English ‘cow’ vs. ‘beef’, Cantonese ‘ngau’ • English “fish”, Spanish “pez” vs. “pescado”

  37. Event-to-argument divergences • English • The bottle floated out. • Spanish • La botella salió flotando. • The bottle exited floating • Verb-framed lang: mark direction of motion on verb • Spanish, French, Arabic, Hebrew, Japanese, Tamil, Polynesian, Mayan, Bantu families • Satellite-framed lang: mark direction of motion on satellite • Crawl out, float off, jump down, walk over to, run after • Rest of Indo-European, Hungarian, Finnish, Chinese

  38. Structural divergences • German: Wir treffen unsam Mittwoch • English: We’ll meeton Wednesday

  39. Head Swapping • English: X swim across Y • Spanish: X crucar Y nadando • English: I like to eat • German: Ich esse gern • English: I’d prefer vanilla • German: Mir wäre Vanille lieber

  40. Thematic divergence • Spanish: Y me gusto • English: I like Y • German: Mir fällt der Termin ein • English: Iforget the date

  41. Divergence counts from Bonnie Dorr • 32% of sentences in UN Spanish/English Corpus (5K)

  42. 3 “Classical” methods for MT • Direct • Transfer • Interlingua

  43. Three MT Approaches: Direct, Transfer, Interlingual

  44. Direct Translation • Proceed word-by-word through text • Translating each word • No intermediate structures except morphology • Knowledge is in the form of • Huge bilingual dictionary • word-to-word translation information • After word translation, can do simple reordering • Adjective ordering English -> French/Spanish

  45. Direct MT Dictionary entry

  46. Direct MT

  47. Problems with direct MT • German • Chinese

  48. The Transfer Model • Idea: apply contrastive knowledge, i.e., knowledge about the difference between two languages • Steps: • Analysis: Syntactically parse Source language • Transfer: Rules to turn this parse into parse for Target language • Generation: Generate Target sentence from parse tree

  49. English to French • Generally • English: Adjective Noun • French: Noun Adjective • Note: not always true • ‘Route mauvaise’ -> ‘bad road, badly-paved road’ • ‘Mauvaise route’‘wrong road’ • but is a reasonable first approximation • Rule:

  50. Transfer rules Japanese

More Related