-
Notifications
You must be signed in to change notification settings - Fork 0
/
linchain-crf-1.tex
37 lines (32 loc) · 1.38 KB
/
linchain-crf-1.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{\scriptsize
\begin{tikzpicture}
\tikzstyle{xnode}=[rectangle,draw,fill=gray76,minimum size=2em] %
\tikzstyle{ynode}=[circle,draw,fill=gray76,inner sep=1pt,%
minimum width=width("MMM"),minimum height=height("MMM")] %
\tikzstyle{factor}=[rectangle,fill=black,midway,inner sep=0pt,%
minimum size=0.4em] %
\tikzstyle{ctxt}=[] %
\node[ynode] (NON0) at (1, 4) {NON};
\node[ynode] (SRC0) at (1, 3) {SRC};
\node[ynode] (TRG0) at (1, 2) {TRG};
\node[ynode] (SNT0) at (1, 1) {SNT};
\hyperNodeX{NON0}{SRC0}{TRG0}{SNT0}{w$_1$};
\node[ynode] (NON1) at (3, 4) {NON};
\node[ynode] (SRC1) at (3, 3) {SRC};
\node[ynode] (TRG1) at (3, 2) {TRG};
\node[ynode] (SNT1) at (3, 1) {SNT};
\hyperNodeX{NON1}{SRC1}{TRG1}{SNT1}{w$_2$};
\crfFeaturesX{0/2, 1/3, 2/4}{1}{0};
%% \node[xnode] (FEAT1) at (2, 0) {};
%% \node[xnode] (FEAT2) at (3, 0) {};
%% \node[xnode] (FEAT3) at (4, 0) {};
%% \path [-] (FEAT1) edge node [factor] {} (SNT1);
%% \path [-] (FEAT2) edge node [factor] {} (SNT1);
%% \path [-] (FEAT3) edge node [factor] {} (SNT1);
\crfEdgesX{1}{0};
%% \path [-] (SNT0) edge[ctxt] node [factor,ctxt] {} (SNT1);
%% \path [-] (TRG0) edge[ctxt] node [factor,ctxt] {} (SNT1);
%% \path [-] (SRC0) edge[ctxt] node [factor,ctxt] {} (SNT1);
%% \path [-] (NON0) edge[ctxt] node [factor,ctxt] {} (SNT1);
\end{tikzpicture}
}