Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
Toy-MT-Introduction
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
单韦乔
Toy-MT-Introduction
Commits
d5ac0ef2
Commit
d5ac0ef2
authored
Jan 04, 2020
by
xiaotong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new updates
parent
90ed014e
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
20 行增加
和
2 行删除
+20
-2
Section04-Phrasal-and-Syntactic-Models/section04-test.tex
+0
-0
Section04-Phrasal-and-Syntactic-Models/section04.tex
+20
-2
Section06-Neural-Machine-Translation/section06.tex
+0
-0
没有找到文件。
Section04-Phrasal-and-Syntactic-Models/section04-test.tex
查看文件 @
d5ac0ef2
差异被折叠。
点击展开。
Section04-Phrasal-and-Syntactic-Models/section04.tex
查看文件 @
d5ac0ef2
...
...
@@ -4287,6 +4287,8 @@ NP-BAR(NN$_1$ NP-BAR$_2$) $\to$ NN$_1$ NP-BAR$_2$
\end
{
scope
}
\begin
{
scope
}
[
xshift
=
1
.
7
in, yshift
=-
0
.
4
in
]
{
\footnotesize
\node
[
anchor
=
west, rotate
=
60
]
at
(
0
.
8
,
-
0
.
6
)
{
VP
$^{
[1]
}$}
;
\node
[
anchor
=
west, rotate
=
60
]
at
(
1
.
8
,
-
0
.
6
)
{
VBZ
$^{
[2]
}$}
;
\node
[
anchor
=
west, rotate
=
60
]
at
(
2
.
8
,
-
0
.
6
)
{
ADVP
$^{
[3]
}$}
;
...
...
@@ -4298,6 +4300,7 @@ NP-BAR(NN$_1$ NP-BAR$_2$) $\to$ NN$_1$ NP-BAR$_2$
\node
[]
at
(
6
.
2
,
-
3
)
{
VP
$^{
[3]
}$}
;
\node
[]
at
(
6
.
2
,
-
4
)
{
VV
$^{
[4]
}$}
;
\node
[]
at
(
6
.
2
,
-
5
)
{
AS
$^{
[5]
}$}
;
}
\foreach
\i
in
{
1
,...,
5
}{
\foreach
\j
in
{
-
5
,...,
-
1
}{
...
...
@@ -4370,8 +4373,23 @@ NP-BAR(NN$_1$ NP-BAR$_2$) $\to$ NN$_1$ NP-BAR$_2$
%%%------------------------------------------------------------------------------------------------------------
%%% 翻译特征
\begin
{
frame
}{
翻译特征
}
% NiuTrans Manual
\begin
{
frame
}{
特征
}
\begin
{
itemize
}
\item
与短语和层次短语模型一样,句法模型也使用判别式模型进行建模
-
$
\textrm
{
P
}
(d,
\textbf
{
t
}
|
\textbf
{
s
}
) =
\frac
{
\exp
(
\sum
_{
i=1
}^{
M
}
\lambda
_
i
\cdot
h
_
i(d,
\textbf
{
s
}
,
\textbf
{
t
}
))
}{
\sum
_{
d',t'
}
\exp
(
\sum
_{
i=1
}^{
M
}
\lambda
_
i
\cdot
h
_
i(d',
\textbf
{
s
}
,
\textbf
{
t
}
'))
}$
。其中特征权重
$
\{\lambda
_
i
\}
$
可以使用最小错误率训练进行调优,特征函数
$
\{
h
_
i
\}
$
需要用户定义。
\item
<
2
-
> 这里,所有规则满足
$
\langle\ \alpha
_
h,
\beta
_
h
\ \rangle
\to
\langle\ \alpha
_
r,
\beta
_
r,
\sim\ \rangle
$
的形式
\begin
{
itemize
}
\item
$
\alpha
_
h
$
和
$
\beta
_
h
$
是规则左部的源语和目标语部分,对应树结构的根节点
\item
$
\alpha
_
r
$
和
$
\beta
_
r
$
是规则右部的源语和目标语部分,对应树结构
\item
$
\sim
$
表示
$
\alpha
_
r
$
和
$
\beta
_
r
$
中叶子非终结符的对应
\item
此外,定义
$
r(
\alpha
_
r)
$
和
$
r(
\beta
_
r)
$
为源语和目标语树结构的叶子节点序列。例如,对于规则
$
\langle\ \textrm
{
VP
}
,
\textrm
{
VP
}
\ \rangle
\to
\langle\ \textrm
{
VP(PP
}_{
1
}
\ \textrm
{
VP(VV(表示) NN
}_{
2
}
)),
\textrm
{
VP(VBZ(was) VP(VBZ
}_{
2
}
\ \textrm
{
PP
}_{
1
}
))
$
,有
\\
\vspace
{
-
1
.
5
em
}
\begin
{
eqnarray
}
r
(
\alpha
_
r
)
&
=
&
\textrm
{
PP
}_
1
\ \textrm
{
表示 NN
}_
2
\nonumber
\\
r
(
\beta
_
r
)
&
=
&
\textrm
{
was
}
\ \textrm
{
VBZ
}_
2
\ \textrm
{
PP
}_
1
\nonumber
\end
{
eqnarray
}
\end
{
itemize
}
\end
{
itemize
}
\end
{
frame
}
%%%------------------------------------------------------------------------------------------------------------
...
...
Section06-Neural-Machine-Translation/section06.tex
查看文件 @
d5ac0ef2
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论