-
Notifications
You must be signed in to change notification settings - Fork 0
/
latent-mcrf-b.tex
46 lines (40 loc) · 2.1 KB
/
latent-mcrf-b.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
38
39
40
41
42
43
44
45
46
{\scriptsize
\begin{tikzpicture}
\tikzstyle{xnode}=[rectangle,draw,fill=gray76,align=center,minimum size=1.5em,text width=1.5em] %
\tikzstyle{lnode}=[circle,draw,fill=white,inner sep=1pt,minimum size=2.5em] %
\tikzstyle{ynode}=[circle,draw,fill=gray76,inner sep=1pt,minimum size=2.5em] %
\tikzstyle{highlight}=[draw=blue,line width=0.5mm] %
\tikzstyle{label}=[] %
\tikzstyle{extext}=[] %
\tikzstyle{factor}=[rectangle,fill=black,midway,inner sep=0pt,minimum size=0.4em] %
\node[ynode,highlight] (0Neg) at (5, 6) {Neg};
\node[ynode] (0Neut) at (6, 6) {Neut};
\node[ynode] (0Pos) at (7, 6) {Pos};
\hyperNode{0Neg}{0Neut}{0Pos}{Root};
\crfColoredFeatures{0/4.5/0.54, 1/5.5/0.39, 2/6.5/0.07, 3/7.5/1.}{0}{4.7}{Neg};
\node[lnode,highlight] (1Neg) at (5, 3.7) {Neg};
\node[lnode,highlight] (1Neut) at (6, 3.7) {Neut};
\node[lnode,highlight] (1Pos) at (7, 3.7) {Pos};
\hyperNode{1Neg}{1Neut}{1Pos}{EDU 3};
\crfColoredEdgesLatent{0}{1}{0Neg}{ANY}; % see definition in command.tex
\crfColoredFeatures{0/4.5/0.54, 1/5.5/0.22, 2/6.5/0.24, 3/7.5/1.}{1}{2.4}{ANY};
\node[lnode,highlight] (2Neg) at (1, 1.4) {Neg};
\node[lnode,highlight] (2Neut) at (2, 1.4) {Neut};
\node[lnode,highlight] (2Pos) at (3, 1.4) {Pos};
\hyperNode{2Neg}{2Neut}{2Pos}{EDU 1};
\crfColoredEdgesLatent{1}{2}{ANY}{ANY};
\crfColoredFeatures{0/0.5/0.15, 1/1.5/0.45, 2/2.5/0.4, 3/3.5/1.}{2}{0.1}{ANY};
\node[lnode,highlight] (3Neg) at (5, 1.4) {Neg};
\node[lnode,highlight] (3Neut) at (6, 1.4) {Neut};
\node[lnode,highlight] (3Pos) at (7, 1.4) {Pos};
\hyperNode{3Neg}{3Neut}{3Pos}{EDU 2};
\crfColoredEdgesLatent{1}{3}{ANY}{ANY};
\crfColoredFeatures{0/4.5/0.14, 1/5.5/0.42, 2/6.5/0.43, 3/7.5/1.}{3}{0.1}{ANY};
\node[lnode,highlight] (4Neg) at (9, 1.4) {Neg};
\node[lnode,highlight] (4Neut) at (10, 1.4) {Neut};
\node[lnode,highlight] (4Pos) at (11, 1.4) {Pos};
\hyperNode{4Neg}{4Neut}{4Pos}{EDU 4};
\crfColoredEdgesLatent{1}{4}{ANY}{ANY};
\crfColoredFeatures{0/8.5/0.18, 1/9.5/0.4, 2/10.5/0.41, 3/11.5/1.}{4}{0.1}{ANY};
\end{tikzpicture}
}