machine translation - sameer singhsameersingh.org/courses/statnlp/wi17/slides/lecture-0228...•...
TRANSCRIPT
MachineTranslation
Prof.SameerSinghCS295:STATISTICALNLP
WINTER2017
February28,2017
BasedonslidesfromJasonEisenstein,ChrisDyer,AlanRitter,YejinChoi,andeveryoneelsetheycopiedfrom.
Upcoming…
• Homework4isdueonMarch13• Write-upanddatareleasingsoon.Homework
• Statusreportduein1weeks:March7,2017• Instructionscomingtoday!• Almostfinalreport,only5pages
Project
• Papersummaries:February28,March14• Summary1gradedSummaries
CS295:STATISTICALNLP(WINTER2017) 2
Outline
MachineTranslation
IntroductiontoStatisticalMT
IBMTranslationModels
CS295:STATISTICALNLP(WINTER2017) 3
Outline
MachineTranslation
IntroductiontoStatisticalMT
IBMTranslationModels
CS295:STATISTICALNLP(WINTER2017) 4
MachineTranslation
CS295:STATISTICALNLP(WINTER2017) 5
IhavealwaysimaginedParadiseasakindoflibrary.
Yo,quemefigurabaelParaíso/Bajolaespeciedeunabiblioteca.
Challenges:WordOrder
CS295:STATISTICALNLP(WINTER2017) 6
EvenforSVO English:IwillbuyitFrench:Jevais l’acheter (Iwillitbuy)
English:IboughtitFrench:Jel’ai achet´ e(Iithavebought)
SVOvsSOV English:IBMboughtLotusJapanese:IBMLotusbought
Challenges:Pronouns
CS295:STATISTICALNLP(WINTER2017) 8
InSpanish,youcanrecoverthepronounfromverbinflection:Vivimos en Atlanta→We liveinAtlanta
IAgain,discoursecontextisoftencrucial:Vive en Atlanta→She/he/it livesinAtlanta
Englishpossessivepronounstakethegenderoftheowner:Marieridesher bike
Frenchpossessivepronounstakethegenderoftheobject:Mariemonte surson vélo
DifferentPronouns
DroppingPronouns
Challenges:Tenses
CS295:STATISTICALNLP(WINTER2017) 9
Thepreterite tenseisforeventswithadefinitetime,e.g.Ibikedtoworkthismorning
Theimperfectisforeventswithindefinitetimes,e.g.Ibikedtoworkalllastsummer
TotranslateEnglishtoSpanish,wemustpicktherighttense.
Challenges:Idioms
CS295:STATISTICALNLP(WINTER2017) 10
Whyintheworld
Kickthebucket
Lendmeyourears
DeadAsADoornail
AsCoolAsaCucumber
HoldYourHorses
StorminaTeacupBob'sYourUncle
BlueintheFace
HeadInTheClouds
Rules forMachineTranslation
CS295:STATISTICALNLP(WINTER2017) 11
Rulesfortranslatingmuch ormany intoRussian:
if precedingwordishow returnskol’koelseifprecedingwordisas return stol’ko zheelseif wordismuch
ifprecedingwordisvery returnnilelseiffollowingwordisanounreturnmnogo
else (wordismany)ifprecedingwordisaprepositionandfollowingwordisnounreturnmnogiielsereturnmnogo
Panov (1960)
Outline
MachineTranslation
IntroductiontoStatisticalMT
IBMTranslationModels
CS295:STATISTICALNLP(WINTER2017) 13
ComponentsofanMTsystem
CS295:STATISTICALNLP(WINTER2017) 27
LanguageModel
TranslationModel
DecodingAlgo
HumanEvaluation
CS295:STATISTICALNLP(WINTER2017) 30
Fluency
Adequacy
A:furiousnAgA onwednesday ,thetribalminimumpur oftenschoolsalsowasburnt
B:furiousnAgA onwednesday thetribalpur minitenschoolsofthemwasalsoburnt
BLEUScore:Example
CS295:STATISTICALNLP(WINTER2017) 33
‘extensionofisi inuttar pradesh ’
‘isi ’sexpansioninuttar pradesh ’‘thespreadofisi inuttar pradesh ’‘isi spreadinginuttar pradesh ’thespreadofisi inuttar pradesh
BLEUScore:Example
CS295:STATISTICALNLP(WINTER2017) 34
‘extensionofisi inuttar pradesh ’
‘isi ’sexpansioninuttar pradesh ’‘thespreadofisi inuttar pradesh ’‘isi spreadinginuttar pradesh ’thespreadofisi inuttar pradesh
Outline
MachineTranslation
IntroductiontoStatisticalMT
IBMTranslationModels
CS295:STATISTICALNLP(WINTER2017) 36
Statistical TranslationModel
CS295:STATISTICALNLP(WINTER2017) 37
Andtheprogramwasimplemented
Laprogrammation aété mise en application