machine translation systems
play

Machine Translation Systems Gerald Penn CS224N / Ling 284 [Based - PowerPoint PPT Presentation

Machine Translation Systems Gerald Penn CS224N / Ling 284 [Based on slides by Kevin Knight, Dan Klein, Dan Jurafsky and Chris Manning] MT Evaluation (left over to 2011/01/24) Illustrative translation results la politique de la haine .


  1. Machine Translation Systems Gerald Penn CS224N / Ling 284 [Based on slides by Kevin Knight, Dan Klein, Dan Jurafsky and Chris Manning]

  2. MT Evaluation (left over to 2011/01/24)

  3. Illustrative translation results • la politique de la haine . (Foreign Original) • politics of hate . (Reference Translation) • the policy of the hatred . (IBM4+N-grams+Stack) • nous avons signé le protocole . (Foreign Original) • we did sign the memorandum of agreement . (Reference Translation) • we have signed the protocol . (IBM4+N-grams+Stack) • où était le plan solide ? (Foreign Original) • but where was the solid plan ? (Reference Translation) • where was the economic base ? (IBM4+N-grams+Stack) the Ministry of Foreign Trade and Economic Cooperation, including foreign direct investment 40.007 billion US dollars today provide data include that year to November china actually using foreign 46.959 billion US dollars and

  4. MT Evaluation • Manual (the best!?): – SSER (subjective sentence error rate) – Correct/Incorrect – Adequacy and Fluency (5 or 7 point scales) – Error categorization – Comparative ranking of translations • Testing in an application that uses MT as one sub- component – Question answering from foreign language documents • Automatic metric: – WER (word error rate) – why problematic? – BLEU (Bilingual Evaluation Understudy)

  5. BLEU Evaluation Metric (Papineni et al, ACL-2002) • N-gram precision (score is between 0 & 1) Reference (human) translation: The U.S. island of Guam is – What percentage of machine n-grams can maintaining a high state of alert be found in the reference translation? after the Guam airport and its – An n-gram is an sequence of n words offices both received an e-mail – Not allowed to match same portion of from someone calling himself the reference translation twice at a certain n- Saudi Arabian Osama bin Laden gram level (two MT words airport are only and threatening a biological/ correct if two reference words airport; can’t chemical attack against public cheat by typing out “the the the the the”) places such as the airport . – Do count unigrams also in a bigram for unigram precision, etc. Machine translation: The American [?] international • Brevity Penalty airport and its the office all – Can’t just type out single word receives one calls self the sand “the” (precision 1.0!) Arab rich business [?] and so on electronic mail , which sends out ; The threat will be able after public • It was thought quite hard to “game” the system place and so on the airport to start (i.e., to find a way to change machine output so the biochemistry attack , [?] highly that BLEU goes up, but quality doesn’t) alerts after the maintenance.

  6. BLEU Evaluation Metric (Papineni et al, ACL-2002) • BLEU is a weighted geometric mean, with a Reference (human) translation: brevity penalty factor added. The U.S. island of Guam is maintaining a high state of alert • Note that it’s precision-oriented after the Guam airport and its • BLEU4 formula offices both received an e-mail from someone calling himself the (counts n-grams up to length 4) Saudi Arabian Osama bin Laden and threatening a biological/ exp (1.0 * log p1 + chemical attack against public places such as the airport . 0.5 * log p2 + 0.25 * log p3 + 0.125 * log p4 – max(words-in-reference / words-in-machine – 1, 0) Machine translation: The American [?] international p1 = 1-gram precision airport and its the office all P2 = 2-gram precision receives one calls self the sand P3 = 3-gram precision Arab rich business [?] and so on electronic mail , which sends out ; P4 = 4-gram precision The threat will be able after public place and so on the airport to start Note: only works at corpus level (zeroes kill it); the biochemistry attack , [?] highly alerts after the maintenance. there’s a smoothed variant for sentence-level

  7. BLEU in Action 枪 手被警方 击毙 。 (Foreign Original) the gunman was shot to death by the police . (Reference Translation) the gunman was police kill . #1 wounded police jaya of #2 the gunman was shot dead by the police . #3 the gunman arrested by police kill . #4 the gunmen were killed . #5 the gunman was shot to death by the police . #6 gunmen were killed by police ?SUB>0 ?SUB>0 #7 al by the police . #8 the ringer is killed by the police . #9 police killed the gunman . #10 green = 4-gram match (good!) red = word not matched (bad!)

  8. Multiple Reference Translations Reference translation 1: Reference translation 1: Reference translation 2: Reference translation 2: The U.S. island of Guam is maintaining The U.S. island of Guam is maintaining Guam International Airport and its Guam International Airport and its a high state of alert after the Guam a high state of alert after the Guam offices are maintaining a high state of offices are maintaining a high state of airport and its offices both received an airport and its offices both received an alert after receiving an e-mail that was alert after receiving an e-mail that was e-mail from someone calling himself e-mail from someone calling himself from a person claiming to be the from a person claiming to be the the Saudi Arabian Osama bin Laden the Saudi Arabian Osama bin Laden wealthy Saudi Arabian businessman wealthy Saudi Arabian businessman and threatening a biological/chemical and threatening a biological/chemical Bin Laden and that threatened to Bin Laden and that threatened to attack against public places such as attack against public places such as launch a biological and chemical attack launch a biological and chemical attack the airport . the airport . on the airport and other public places . on the airport and other public places . Machine translation: Machine translation: The American [?] international airport The American [?] international airport and its the office all receives one calls and its the office all receives one calls self the sand Arab rich business [?] self the sand Arab rich business [?] and so on electronic mail , which and so on electronic mail , which sends out ; The threat will be able sends out ; The threat will be able after public place and so on the after public place and so on the airport to start the biochemistry airport to start the biochemistry attack , [?] highly alerts after the attack , [?] highly alerts after the maintenance. maintenance. Reference translation 3: Reference translation 3: Reference translation 4: Reference translation 4: The US International Airport of Guam The US International Airport of Guam US Guam International Airport and its US Guam International Airport and its and its office has received an email and its office has received an email office received an email from Mr. Bin office received an email from Mr. Bin from a self-claimed Arabian millionaire from a self-claimed Arabian millionaire Laden and other rich businessman Laden and other rich businessman named Laden , which threatens to named Laden , which threatens to from Saudi Arabia . They said there from Saudi Arabia . They said there launch a biochemical attack on such launch a biochemical attack on such would be biochemistry air raid to Guam would be biochemistry air raid to Guam public places as airport . Guam public places as airport . Guam Airport and other public places . Guam Airport and other public places . Guam authority has been on alert . authority has been on alert . needs to be in high precaution about needs to be in high precaution about this matter . this matter .

  9. Initial results showed that BLEU predicts human judgments well (variant of BLEU) 2.5 Adequacy 2.0 R 2 = 88.0% Fluency R 2 = 90.2% 1.5 1.0 0.5 NIST Score 0.0 -2.5 -2.0 -1.5 -1.0 -0.5 0.0 0.5 1.0 1.5 2.0 2.5 -0.5 -1.0 -1.5 -2.0 -2.5 Human Judgments slide from G. Doddington (NIST)

  10. Automatic evaluation of MT • People started optimizing their systems to maximize BLEU score – BLEU scores improved rapidly – The correlation between BLEU and human judgments of quality went way, way down – StatMT BLEU scores now approach those of human translations but their true quality remains far below human translations • Coming up with automatic MT evaluations has become its own research field – There are many proposals: TER, METEOR, MaxSim, SEPIA, our own RTE-MT – TERpA is a representative good one that handles some word choice variation. • MT research really requires some automatic metric to allow a rapid development and evaluation cycle.

  11. Quiz question! FOR MONDAY JANUARY 24 TH Hyp: The gunman was shot dead by police . Ref1: The gunman was shot to death by the police . Ref2: The cops shot the gunman dead . Compute the unigram precision P 1 and the trigram precision P 3 . (Note: punctuation tokens are counted, but not sentence boundary tokens.) (a) P 1 = 1.0 P 3 = 0.5 (b) P 1 = 1.0 P 3 = 0.333 (c) P 1 = 0.875 P 3 = 0.333 (d) P 1 = 0.875 P 3 = 0.167 (e) P 1 = 0.8 P 3 = 0.167

  12. A complete translation system

  13. Decoding for IBM Models • Of all conceivable English word strings, find the one maximizing P(e) x P(f | e) • Decoding is NP hard – (Knight, 1999) • Several search strategies are available – Usually a beam search where we keep multiple stacks for candidates covering the same number of source words • Each potential English output is called a hypothesis .

  14. Search for Best Translation voulez – vous vous taire !

  15. Search for Best Translation voulez – vous vous taire ! you – you you quiet !

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend