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
NiuTrans
Toy-MT-Introduction
Commits
769a6256
Commit
769a6256
authored
Apr 25, 2020
by
xiaotong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updates of section 4
parent
d9df9f99
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
28 行增加
和
28 行删除
+28
-28
Book/Chapter4/Figures/example-of-phrase-table.tex
+7
-7
Book/Chapter4/Figures/example-of-vocabulary-translation-probability.tex
+4
-4
Book/Chapter4/Figures/get-word-alignment.tex
+3
-3
Book/Chapter4/Figures/phrase-extraction-consistent-with-word-alignment-1.tex
+4
-4
Book/Chapter4/Figures/reorder-base-phrase-translation.tex
+4
-4
Book/Chapter4/chapter4.tex
+0
-0
Book/mt-book-xelatex.idx
+6
-6
没有找到文件。
Book/Chapter4/Figures/example-of-phrase-table.tex
查看文件 @
769a6256
...
...
@@ -2,13 +2,13 @@
%%% 展示短语表的内容
\begin{center}
\begin{tikzpicture}
\node
[anchor=west] (s1) at (0,0)
{
\s
criptsize
{
报告 认为
$
\vert\vert\vert
$
report holds that
$
\vert\vert\vert
$
-2.62 -5.81 -0.91 -2.85 1 0
$
\vert\vert\vert
$
4
$
\vert\vert\vert
$
0-0 1-1 1-2
}}
;
\node
[anchor=west] (s2) at ([yshift=-1.2em]s1.west)
{
\s
criptsize
{
,悲伤
$
\vert\vert\vert
$
, sadness
$
\vert\vert\vert
$
-1.946 -3.659 0 -3.709 1 0
$
\vert\vert\vert
$
1
$
\vert\vert\vert
$
0-0 1-1
}}
;
\node
[anchor=west] (s3) at ([yshift=-1.2em]s2.west)
{
\s
criptsize
{
,北京 等
$
\vert\vert\vert
$
, beijing , and other
$
\vert\vert\vert
$
0 -7.98 0 -3.84 1 0
$
\vert\vert\vert
$
2
$
\vert\vert\vert
$
0-0 1-1 2-2 2-3 2-4
}}
;
\node
[anchor=west] (s4) at ([yshift=-1.2em]s3.west)
{
\s
criptsize
{
,北京 及
$
\vert\vert\vert
$
, beijing , and
$
\vert\vert\vert
$
-0.69 -1.45 -0.92 -4.80 1 0
$
\vert\vert\vert
$
2
$
\vert\vert\vert
$
0-0 1-1 2-2
}}
;
\node
[anchor=west] (s5) at ([yshift=-1.2em]s4.west)
{
\s
criptsize
{
一个 中国
$
\vert\vert\vert
$
one china
$
\vert\vert\vert
$
0 -1.725 0 -1.636 1 0
$
\vert\vert\vert
$
2
$
\vert\vert\vert
$
1-1 2-2
}}
;
\node
[anchor=west] (s7) at ([yshift=-1.1em]s5.west)
{
\s
criptsize
{
...
}}
;
\node
[anchor=west] (s6) at ([yshift=1.0em]s1.west)
{
\s
criptsize
{
...
}}
;
\node
[anchor=west] (s1) at (0,0)
{
\s
mall
{
报告 认为
$
\vert\vert\vert
$
report holds that
$
\vert\vert\vert
$
-2.62 -5.81 -0.91 -2.85 1 0
$
\vert\vert\vert
$
4
$
\vert\vert\vert
$
0-0 1-1 1-2
}}
;
\node
[anchor=west] (s2) at ([yshift=-1.2em]s1.west)
{
\s
mall
{
,悲伤
$
\vert\vert\vert
$
, sadness
$
\vert\vert\vert
$
-1.946 -3.659 0 -3.709 1 0
$
\vert\vert\vert
$
1
$
\vert\vert\vert
$
0-0 1-1
}}
;
\node
[anchor=west] (s3) at ([yshift=-1.2em]s2.west)
{
\s
mall
{
,北京 等
$
\vert\vert\vert
$
, beijing , and other
$
\vert\vert\vert
$
0 -7.98 0 -3.84 1 0
$
\vert\vert\vert
$
2
$
\vert\vert\vert
$
0-0 1-1 2-2 2-3 2-4
}}
;
\node
[anchor=west] (s4) at ([yshift=-1.2em]s3.west)
{
\s
mall
{
,北京 及
$
\vert\vert\vert
$
, beijing , and
$
\vert\vert\vert
$
-0.69 -1.45 -0.92 -4.80 1 0
$
\vert\vert\vert
$
2
$
\vert\vert\vert
$
0-0 1-1 2-2
}}
;
\node
[anchor=west] (s5) at ([yshift=-1.2em]s4.west)
{
\s
mall
{
一个 中国
$
\vert\vert\vert
$
one china
$
\vert\vert\vert
$
0 -1.725 0 -1.636 1 0
$
\vert\vert\vert
$
2
$
\vert\vert\vert
$
1-1 2-2
}}
;
\node
[anchor=west] (s7) at ([yshift=-1.1em]s5.west)
{
\s
mall
{
...
}}
;
\node
[anchor=west] (s6) at ([yshift=1.0em]s1.west)
{
\s
mall
{
...
}}
;
\begin{pgfonlayer}
{
background
}
\node
[rectangle,inner sep=0.3em,fill=red!20] [fit = (s1) (s3) (s4) (s6) (s7)] (box1)
{}
;
\end{pgfonlayer}
...
...
Book/Chapter4/Figures/example-of-vocabulary-translation-probability.tex
查看文件 @
769a6256
...
...
@@ -39,10 +39,10 @@
\node
[align=center,elementnode,minimum size=0.3cm,inner sep=0.1pt,fill=blue!50]
(la4) at (a41)
{}
;
\node
[align=center,elementnode,minimum size=0.3cm,inner sep=0.1pt,fill=blue!50]
(la5) at (a30)
{}
;
\node
[anchor=west]
(f1) at ([xshift=3em,yshift=0.8em]a43.east)
{
\
footnotesize
{$
\textrm
{
P
}_{
\textrm
{
lex
}}
(
\bar
{
t
}
|
\bar
{
s
}
)=
w
(
t
_
1
|s
_
1
)
\times
$}}
;
\node
[anchor=north]
(f2) at ([xshift=5.2em]f1.south)
{
\
footnotesize
{$
\frac
{
1
}{
2
}
(
w
(
t
_
2
|s
_
2
)+
w
(
t
_
4
|s
_
2
))
\times
$}}
;
\node
[anchor=north west]
(f3) at (f2.south west)
{
\
footnotesize
{$
w
(
N|s
_
3
)
\times
$}}
;
\node
[anchor=north west]
(f4) at (f3.south west)
{
\
footnotesize
{$
w
(
t
_
4
|s
_
4
)
\times
$}}
;
\node
[anchor=west]
(f1) at ([xshift=3em,yshift=0.8em]a43.east)
{
\
small
{$
\textrm
{
P
}_{
\textrm
{
lex
}}
(
\bar
{
t
}
|
\bar
{
s
}
)=
w
(
t
_
1
|s
_
1
)
\times
$}}
;
\node
[anchor=north]
(f2) at ([xshift=5.2em]f1.south)
{
\
small
{$
\frac
{
1
}{
2
}
(
w
(
t
_
2
|s
_
2
)+
w
(
t
_
4
|s
_
2
))
\times
$}}
;
\node
[anchor=north west]
(f3) at (f2.south west)
{
\
small
{$
w
(
N|s
_
3
)
\times
$}}
;
\node
[anchor=north west]
(f4) at (f3.south west)
{
\
small
{$
w
(
t
_
4
|s
_
4
)
\times
$}}
;
\end{scope}
...
...
Book/Chapter4/Figures/get-word-alignment.tex
查看文件 @
769a6256
...
...
@@ -88,9 +88,9 @@
\node
[align=center,elementnode,minimum size=0.3cm,inner sep=0.1pt,fill=red!50]
(lc4) at (c22)
{}
;
\node
[align=center,elementnode,minimum size=0.3cm,inner sep=0.1pt,fill=blue!50]
(lc5) at (c30)
{}
;
\node
[anchor=north]
(l1) at ([xshift=0.5em,yshift=-0.5em]a10.south)
{
\
script
size
{
S - T
}}
;
\node
[anchor=north]
(l2) at ([xshift=0.5em,yshift=-0.5em]b10.south)
{
\
script
size
{
T - S
}}
;
\node
[anchor=north]
(l3) at ([xshift=0.5em,yshift=-0.5em]c10.south)
{
\
script
size
{
交集/并集
}}
;
\node
[anchor=north]
(l1) at ([xshift=0.5em,yshift=-0.5em]a10.south)
{
\
footnote
size
{
S - T
}}
;
\node
[anchor=north]
(l2) at ([xshift=0.5em,yshift=-0.5em]b10.south)
{
\
footnote
size
{
T - S
}}
;
\node
[anchor=north]
(l3) at ([xshift=0.5em,yshift=-0.5em]c10.south)
{
\
footnote
size
{
交集/并集
}}
;
\end{scope}
...
...
Book/Chapter4/Figures/phrase-extraction-consistent-with-word-alignment-1.tex
查看文件 @
769a6256
...
...
@@ -66,19 +66,19 @@
\draw
[-]
(rules.south west)--([xshift=2.0in]rules.south west);
{
\node
[anchor=north west]
(r1) at ([yshift=-0.3em]rules.south west)
{
天气
--
The weather
}
;
\node
[anchor=north west]
(r1) at ([yshift=-0.3em]rules.south west)
{
天气
\
$
\leftrightarrow
$
\
The weather
}
;
}
{
\node
[anchor=north west]
(r2) at ([yshift=-0.4em]r1.south west)
{
天气
--
The weather is
}
;
\node
[anchor=north west]
(r2) at ([yshift=-0.4em]r1.south west)
{
天气
\
$
\leftrightarrow
$
\
The weather is
}
;
}
{
\node
[anchor=north west]
(r3) at ([yshift=-0.4em]r2.south west)
{
天气
真 --
The weather is very
}
;
\node
[anchor=north west]
(r3) at ([yshift=-0.4em]r2.south west)
{
天气
\
真
\
$
\leftrightarrow
$
\
The weather is very
}
;
}
{
\node
[anchor=north west]
(r4) at ([yshift=-0.4em]r3.south west)
{
天气
真好 --
The weather is very good
}
;
\node
[anchor=north west]
(r4) at ([yshift=-0.4em]r3.south west)
{
天气
\
真
\
好
\
$
\leftrightarrow
$
\
The weather is very good
}
;
}
{
...
...
Book/Chapter4/Figures/reorder-base-phrase-translation.tex
查看文件 @
769a6256
...
...
@@ -6,12 +6,12 @@
\begin{scope}
[minimum height = 20pt]
\node
[anchor=east]
(s0) at (-0.5em, 0)
{$
\textbf
{
s
}$
:
}
;
\node
[anchor=west,fill=green!20]
(s1) at (0, 0)
{
\
script
size
{
在 桌子 上 的
}}
;
\node
[anchor=west,fill=red!20]
(s2) at ([xshift=1em]s1.east)
{
\
script
size
{
苹果
}}
;
\node
[anchor=west,fill=green!20]
(s1) at (0, 0)
{
\
footnote
size
{
在 桌子 上 的
}}
;
\node
[anchor=west,fill=red!20]
(s2) at ([xshift=1em]s1.east)
{
\
footnote
size
{
苹果
}}
;
\node
[anchor=east]
(t0) at (-0.5em, -1.5)
{$
\textbf
{
t
}$
:
}
;
\node
[anchor=west,fill=red!20]
(t1) at (0, -1.5)
{
\
script
size
{
the apple
}}
;
\node
[anchor=west,fill=green!20]
(t2) at ([xshift=1em]t1.east)
{
\
script
size
{
on the table
}}
;
\node
[anchor=west,fill=red!20]
(t1) at (0, -1.5)
{
\
footnote
size
{
the apple
}}
;
\node
[anchor=west,fill=green!20]
(t2) at ([xshift=1em]t1.east)
{
\
footnote
size
{
on the table
}}
;
\path
[<->, thick]
(s1.south) edge (t2.north);
\path
[<->, thick]
(s2.south) edge (t1.north);
...
...
Book/Chapter4/chapter4.tex
查看文件 @
769a6256
差异被折叠。
点击展开。
Book/mt-book-xelatex.idx
查看文件 @
769a6256
...
...
@@ -8,15 +8,15 @@
\indexentry{Chapter4.2.2.2|hyperpage}{16}
\indexentry{Chapter4.2.2.3|hyperpage}{17}
\indexentry{Chapter4.2.3|hyperpage}{18}
\indexentry{Chapter4.2.3.1|hyperpage}{1
8
}
\indexentry{Chapter4.2.3.2|hyperpage}{
19
}
\indexentry{Chapter4.2.3.3|hyperpage}{2
0
}
\indexentry{Chapter4.2.3.1|hyperpage}{1
9
}
\indexentry{Chapter4.2.3.2|hyperpage}{
20
}
\indexentry{Chapter4.2.3.3|hyperpage}{2
1
}
\indexentry{Chapter4.2.4|hyperpage}{22}
\indexentry{Chapter4.2.4.1|hyperpage}{22}
\indexentry{Chapter4.2.4.2|hyperpage}{23}
\indexentry{Chapter4.2.4.3|hyperpage}{2
4
}
\indexentry{Chapter4.2.4.3|hyperpage}{2
5
}
\indexentry{Chapter4.2.5|hyperpage}{25}
\indexentry{Chapter4.2.6|hyperpage}{2
5
}
\indexentry{Chapter4.2.6|hyperpage}{2
6
}
\indexentry{Chapter4.2.7|hyperpage}{29}
\indexentry{Chapter4.2.7.1|hyperpage}{30}
\indexentry{Chapter4.2.7.2|hyperpage}{30}
...
...
@@ -51,5 +51,5 @@
\indexentry{Chapter4.4.5|hyperpage}{70}
\indexentry{Chapter4.4.7|hyperpage}{72}
\indexentry{Chapter4.4.7.1|hyperpage}{73}
\indexentry{Chapter4.4.7.2|hyperpage}{7
4
}
\indexentry{Chapter4.4.7.2|hyperpage}{7
5
}
\indexentry{Chapter4.5|hyperpage}{76}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论