Skip to content

Instantly share code, notes, and snippets.

@hans
Created June 28, 2018 16:38
Show Gist options
  • Save hans/811e52b28bae9a47ae3541da87eef3c7 to your computer and use it in GitHub Desktop.
Save hans/811e52b28bae9a47ae3541da87eef3c7 to your computer and use it in GitHub Desktop.
fig.tex
\begin{tikzpicture}
\node (example) [draw,rectangle,align=center] at (0, 0) {Learning instance\\$w_1, \dots, w_N \to A$};
\node (dec-learn) [draw,rectangle,align=center] at (8, -3) {\textbf{Learn:}\\Infer meanings for $w_1, \dots, w_N$};
\node (lexicon) [draw,rectangle,align=center] at (0, -3) {Lexicon $\Lambda$\\$\text{raise} \to \texttt{S/N/PP} \lambda c\,x.\, c \land dir(e) = up \land move(e,x)$\\$\text{drop} \to \texttt{S/N/PP} \lambda c\,x.\, c \land dir(e) = down \land move(e,x)$\\$\text{onto} \to \texttt{PP} \lambda x.contact(x,e.patient)$\\$\ldots$};
\node (dec-compress) [draw,rectangle,align=center] at (0, -6) {\textbf{Compress:}\\Abstract away regularities in the lexicon};
\node (dec-bridge) [draw,rectangle,align=center] at (-8, -3) {\textbf{Bridge:}\\Derive new syntactic sub-categories};
\begin{scope}[shift={(-6,-7.2)}]
\Tree [.$\lambda$ [.$c$ ] [.$x$ ] [.$\land$ [.$c$ ] [.$=$ [.$dir(e)$ ] [.$up$ ] ] [.$move$ [.$e$ ] [.$x$ ] ] ] ]
\begin{scope}[xshift=130pt]
\Tree [.$\lambda$ [.$c$ ] [.$x$ ] [.$\land$ [.$c$ ] [.$=$ [.$dir(e)$ ] [.$down$ ] ] [.$move$ [.$e$ ] [.$x$ ] ] ] ]
\end{scope}
\end{scope}
\path [->, bend left] (example.east) edge (dec-learn.north);
\path [->, bend left] (dec-learn) edge (dec-compress.east);
\path [->, bend left] (dec-compress.west) edge (dec-bridge.south);
\path [->, bend left] (dec-bridge.north) edge (example.west);
\end{tikzpicture}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment