1
Machine Translation and Sequence-to-sequence Models
Machine Translation and Sequence-to-sequence Models - - PowerPoint PPT Presentation
Machine Translation and Sequence-to-sequence Models Machine Translation and Sequence-to-sequence Models http://phontron.com/class/mtandseq2seq2018/ Graham Neubig Carnegie Mellon University CS 11-731 1 Machine Translation and
1
Machine Translation and Sequence-to-sequence Models
2
Machine Translation and Sequence-to-sequence Models
3
Machine Translation and Sequence-to-sequence Models
Sequence-to-sequence Models Machine translation:
Dialog:
Speech Recognition
And just about anything...:
Tagging:
4
Machine Translation and Sequence-to-sequence Models
Global MT Market Expected To Reach $983.3 Million by 2022
Source: The Register Source: Grand View Research
5
Machine Translation and Sequence-to-sequence Models
… but little for others
Use for algorithms, math, etc.
6
Machine Translation and Sequence-to-sequence Models
이니까요 is a variant of 이다 (to be)
7
Machine Translation and Sequence-to-sequence Models
8
Machine Translation and Sequence-to-sequence Models
9
Machine Translation and Sequence-to-sequence Models
10
Machine Translation and Sequence-to-sequence Models
you write, and in reports note who did what part of the project.
although you can use small code snippets.
11
Machine Translation and Sequence-to-sequence Models
12
Machine Translation and Sequence-to-sequence Models
13
Machine Translation and Sequence-to-sequence Models
14
Machine Translation and Sequence-to-sequence Models
15
Machine Translation and Sequence-to-sequence Models
16
Machine Translation and Sequence-to-sequence Models
17
Machine Translation and Sequence-to-sequence Models
18
Machine Translation and Sequence-to-sequence Models
E1 = he ate an apple E2 = he ate an apples E4 = preliminary orange orange E3 = he insulted an apple
Given multiple candidates, which is most likely as an English sentence?
19
Machine Translation and Sequence-to-sequence Models
w2,giving = w1,a = a the talk gift hat … 3.0 2.5
0.1 1.2 … b =
1.0 2.0
…
0.2 0.1 0.6 … s =
1.0 2.2 0.6 …
20
Machine Translation and Sequence-to-sequence Models
21
Machine Translation and Sequence-to-sequence Models
22
Machine Translation and Sequence-to-sequence Models
kouen wo
masu
</s> g1,...,g4 a1 a2 a3 a4 hi-1 hi ri-1 P(ei|F,e1,...,ei-1
23
Machine Translation and Sequence-to-sequence Models
24
Machine Translation and Sequence-to-sequence Models
25
Machine Translation and Sequence-to-sequence Models
26
Machine Translation and Sequence-to-sequence Models
taro ga hanako wo otozureta Taro visited Hanako the Taro visited the Hanako Hanako visited Taro
Adequate? ○ ○ ☓ Fluent? ○ ☓ ○ Better? B, C C
27
Machine Translation and Sequence-to-sequence Models
28
Machine Translation and Sequence-to-sequence Models
29
Machine Translation and Sequence-to-sequence Models
President Trump said Monday that the United States and Mexico had reached agreement to revise key portions of the North American Free Trade Agreement and would finalize it within days, suggesting he was ready to jettison Canada from the trilateral trade pact if the country did not get
Trump Says Nafta Deal Reached Between U.S. and Mexico
30
Machine Translation and Sequence-to-sequence Models
31
Machine Translation and Sequence-to-sequence Models
32
Machine Translation and Sequence-to-sequence Models
太郎 が 花子 を した 訪問 。 taro visited hanako . 太郎 が 花子 を した 。 訪問 taro visited hanako .
33
Machine Translation and Sequence-to-sequence Models
34
Machine Translation and Sequence-to-sequence Models
E = I will give a talk at CMU .
watashi wa I CMU de at CMU kouen a talk wo okonaimasu will give . . watashi wa I CMU de at CMU kouen a talk wo okonaimasu will give . .
F = watashi wa CMU de kouen wo okonaimasu .
35
Machine Translation and Sequence-to-sequence Models
36
Machine Translation and Sequence-to-sequence Models
CMU de kouen wo okonaimasu VP0-5 PP0-1 VP2-5 PP2-3 N2 P3 V4 N0 P1 VP4 x2 at x1 x2 x1 CMU a talk give give a talk at CMU
37
Machine Translation and Sequence-to-sequence Models
LM TM RM
Highest ○ 0.2* 0.2* 0.2* 0.3* 0.3* 0.3* 0.5* 0.5* 0.5* ○ Taro visited Hanako ☓ the Taro visited the Hanako ☓ Hanako visited Taro
38
Machine Translation and Sequence-to-sequence Models
watashi wa I CMU de at CMU
39
Machine Translation and Sequence-to-sequence Models
40
Machine Translation and Sequence-to-sequence Models
41
Machine Translation and Sequence-to-sequence Models
General Model Domain Model
42
Machine Translation and Sequence-to-sequence Models
Model 1
Model 2
43
Machine Translation and Sequence-to-sequence Models
44
Machine Translation and Sequence-to-sequence Models
the code walks
DyNet is not mandatory for assignments, but examples will be in DyNet)