I need to draw the following diagram
using the style of this second diagram
In other words, I need all boxes to be of the same shape (square or rectangular) and all wires to be as thin as those in the second diagram. Labels for the wires are not necessary. What would be the most efficient way to do this in tikz?
My code for the second picture is
\documentclass{book}
\usepackage{tikz}
\usetikzlibrary{decorations.markings,positioning}
\newcommand{\catname}[1]{\mathbf{#1}}
\begin{document}
\begin{tikzpicture}[arr/.style={
postaction={decorate},
decoration={
markings,
mark=at position #1 with {\arrow{>}}}}]
\node at (0,0) [rectangle, draw, minimum size= 10 mm] (f) {\emph{John}};
\node at (0,2) [rectangle] (h) {};
\draw[arr=0.6] (0, 0.5) -- (0, 1.5) node[pos=0.3,right]{$\catname{n_m}$};
\draw (0,1.5) to[out=90,in=90,looseness=2] (1,1.5);
\draw[arr=0.5] (1,1.5) -- (1,0.5)node[pos=0.6,right]{$\catname{n^r}$};
\node at (1.5,0) [rectangle, draw, minimum size= 10 mm] (f) {\emph{likes}};
\node at (3,2) [rectangle] (h) {};
\draw [->] (1.6,0.5) -- (1.6,2) node[above, left] {$\catname{s_1}$};
\draw[arr=0.6] (2, 1.5) -- (2, 0.5) node[pos=0.6,right]{$\catname{n^l}$};
\draw (2,1.5) to[out=90,in=90,looseness=2] (3,1.5);
\draw[arr=0.5] (3,0.5) -- (3,1.5)node[pos=0.4,right]{$\catname{n^f}$};
\node at (3,0) [rectangle, draw, minimum size= 10 mm] (f) {\emph{Mary}};
\end{tikzpicture}
\end{document}
I would like to reproduce the first picture, for which I think I can use a similar technique to that of the second picture. However, what I find most difficult is to draw the the two arcs after the first triangle labelled with $\nu$, which I cannot make one on top of the other. Any hints?