-
Notifications
You must be signed in to change notification settings - Fork 2
/
architecture.tex
116 lines (110 loc) · 3.03 KB
/
architecture.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
\newlength{\moduledistance}
\setlength{\moduledistance}{1cm}
\overfullrule=2cm
\tikzset{
module/.style={
rectangle,
% rounded corners,
draw=mDarkTeal, very thick,
minimum width=3cm,
minimum height = 0.7cm,
node distance = 1.5cm,
inner sep=2pt,
text centered,
},
}
\tikzset{
core/.style={
circle,
draw=mDarkTeal, very thick,
minimum width=2cm,
inner sep=2pt,
text centered,
},
}
\tikzset{
arrow/.style={
->,
draw=mDarkTeal, very thick,
}
}
\tikzset{
darrow/.style={
<->,
draw=mDarkTeal, very thick,
}
}
\begin{tikzpicture}[->,>=stealth']
\node[core] (core) {
Core
};
\node[module,
right of=core,
right=\moduledistance,
] (grammatical) {
Grammatical
};
\node[module,
above of=core,
above=1cm,
] (webui) {
\begin{tabular}{c}
Web User\\
Interface
\end{tabular}
};
\node[module,
below of=grammatical,
] (standalone) {
\begin{tabular}{c}
Machine Learning\\Standalone
\end{tabular}
};
\node[module,
above of=grammatical,
] (reformulation) {
\begin{tabular}{c}
Machine Learning\\Reformulation
\end{tabular}
};
\node[module,
left of=core,
left=\moduledistance,
] (spellchecker) {
Spell-checker
};
\node[module,
above of=spellchecker,
] (cas) {
Computer Algebra
};
\node[module,
above of=cas,
] (wikidata) {
Wikidata
};
\node[module,
below of=spellchecker,
] (oeis) {
OEIS
};
\node[module,
above of=reformulation,
% right=\moduledistance,
] (logging) {
Logging backend
};
\draw[mLightBrown,thick] ($(reformulation.north west)+(-0.3,0.3)$) rectangle node[yshift=-2.5cm,below] {Question Parsing} ($(standalone.south east)+(0.3,-0.3)$);
\draw[mLightBrown,thick] ($(wikidata.north west)+(-0.3,0.3)$) rectangle node[yshift=-3cm,below] {Other modules} ($(oeis.south east)+(0.3,-0.3)$);
\draw [darrow] (core) -- node{} (cas.south east);
\draw [darrow] (core) -- node{} (wikidata.south east);
\draw [darrow] (core) -- node{} (spellchecker.east);
\draw [darrow] (core) -- node{} (oeis.north east);
\draw [darrow] (core) -- node{} (reformulation.south west);
\draw [darrow] (core) -- node{} (grammatical.west);
\draw [darrow] (core) -- node{} (standalone.north west);
\draw [darrow] (core) -- node{} (webui.south);
\draw [darrow] (webui) -- node{} (logging.west);
\draw [arrow] (logging) -- node{} (reformulation.north);
\draw [arrow] (grammatical) -- node{} (reformulation.south);
\end{tikzpicture}