赞
踩
题目如下:
根据下图例子,计算下面机器翻译译文的BLEU-4值 (列出1-4元文法的统计数)。
解:由题意得
1
−
4
元的统计数如下表所示:
1-4 元的统计数如下表所示:
1−4元的统计数如下表所示:
1-gram
count
ref
count-clip
it
1
0
0
is
1
1
1
a
1
1
1
nice
1
1
1
day
1
1
1
today
1
1
1
2-gram
count
ref
count-clip
it is
1
0
0
is a
1
1
1
a nice
1
1
1
nice day
1
1
1
day today
1
0
0
3-gram
count
ref
count-clip
it is a
1
0
0
is a nice
1
1
1
a nice day
1
1
1
nice day today
1
0
0
4-gram
count
ref
count-clip
it is a nice
1
0
0
is a nice day
1
1
1
a nice day today
1
0
0
由表可得
p
1
=
5
6
,
p
2
=
3
5
,
p
3
=
2
4
,
p
4
=
1
3
p_1 = \frac56 , p_2 = \frac35 , p_3 = \frac24 , p_4 = \frac13
p1=65,p2=53,p3=42,p4=31
易知
c
=
6
,
r
=
5
c = 6,r = 5
c=6,r=5
即
c
>
r
c > r
c>r
故
B
P
=
1
BP = 1
BP=1
画表如下:
Translation
p
1
p
2
p
3
p
4
BP
人工译文:
Today is a nice day
机器译文:
It is a nice day today
5
6
3
5
2
4
1
3
1
‾
\overline{
因为
N
=
4
N = 4
N=4 ,故
w
n
=
1
4
w_n = \frac14
wn=41
所以
BLEU-4
=
B
P
∗
exp
(
∑
n
=
1
N
w
n
l
o
g
P
n
)
=
1
×
exp
(
1
4
×
(
log
(
p
1
)
+
log
(
p
2
)
+
log
(
p
3
)
+
l
o
g
(
p
4
)
)
)
=
exp
(
1
4
×
log
(
p
1
p
2
p
3
p
4
)
)
=
exp
(
1
4
×
l
o
g
(
5
6
×
3
5
×
2
4
×
1
3
)
)
=
exp
(
1
4
×
l
o
g
(
1
12
)
)
≈
0.537
倘若大佬发现什么错误,敬请斧正,感谢感谢!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。