nlp_a2019_notes/hmm.dot
2019-10-19 21:28:39 -04:00

71 lines
No EOL
1.7 KiB
Text

digraph G {
ratio=1.2
mincross = 2.0
subgraph cluster_A {
q_0[label=<Start<SUB>0</SUB>>];
q_1[label=<MD<SUB>1</SUB>>];
q_2[label=<VB<SUB>2</SUB>>];
q_3[label=<NN<SUB>3</SUB>>];
q_4[label=<End<SUB>4</SUB>>];
q_0->q_1[label="a01"];
q_0->q_2[label="a02"];
q_0->q_3[label="a03"];
q_1->q_1[label="a11"];
q_1->q_2[label="a12"];
q_1->q_3[label="a13"];
q_1->q_4[label="a14"];
q_2->q_1[label="a21"];
q_2->q_2[label="a22"];
q_2->q_3[label="a23"];
q_2->q_4[label="a24"];
q_3->q_1[label="a31"];
q_3->q_2[label="a32"];
q_3->q_3[label="a33"];
q_3->q_4[label="a34"];
}
subgraph cluster_B1 {
B1[
shape=plaintext
label=<
<table border='1' cellborder='1'>
<tr><td><b>B<sub>1</sub></b></td></tr>
<tr><td>P("aardvark"|MD)</td></tr>
<tr><td>P("will"|MD)</td></tr>
<tr><td>P("the"|MD)</td></tr>
<tr><td>P("black"|MD)</td></tr>
<tr><td>P("zebra"|MD)</td></tr>
</table>
>];
}
subgraph cluster_B2 {
B2[
shape=plaintext
label=<
<table border='1' cellborder='1'>
<tr><td><b>B<sub>2</sub></b></td></tr>
<tr><td>P("aardvark"|VB)</td></tr>
<tr><td>P("will"|VB)</td></tr>
<tr><td>P("the"|VB)</td></tr>
<tr><td>P("black"|VB)</td></tr>
<tr><td>P("zebra"|VB)</td></tr>
</table>
>];
}
subgraph cluster_B3 {
B3[
shape=plaintext
label=<
<table border='1' cellborder='1'>
<tr><td><b>B<sub>3</sub></b></td></tr>
<tr><td>P("aardvark"|NN)</td></tr>
<tr><td>P("will"|NN)</td></tr>
<tr><td>P("the"|NN)</td></tr>
<tr><td>P("black"|NN)</td></tr>
<tr><td>P("zebra"|NN)</td></tr>
</table>
>];
}
q_1 -> B1
q_2 -> B2
q_3 -> B3
}