The sentence I saw the man you love breaks the current n-type expansion code.
A possibility is that in the noun phrase the man you love, the head is the noun man, which is diagrammatically on the right side on the noun phrase (i.e. it is the direct object), rather than the left side of the noun phrase (i.e. the subject) like in our previous examples of n-expansion (e.g. I saw Alice who loves Bob). As such, all the previous examples somehow just miraculously worked, even ones like Alice who loves Bob hates Claire, in which you'd expect a similar swap to this example.
Below is the diagram of the term directly obtained from the CCG parse:

(another strange thing in this example is that for some reason, the n-type wire coming out of loves is not labelled with a proper coindex, but if you check the .head of the sub-term corresponding to the man you love, it will correctly tell you the head is man_4. This problem does not seem to affect the n-type expansion algorithm however)
When this term goes into the current n-type expansion code, we get the following:

The coindices of the types in this term don't match properly, so if you try to draw the coindices as well by calling expr_add_indices_to_types, it will break.
What we would like the diagram to look like after n-type expansion is probably something like this:

but this would also raise problems re s-type expansion, since the order of the n wires would be mismatched between the top and the bottom
The sentence
I saw the man you lovebreaks the current n-type expansion code.A possibility is that in the noun phrase
the man you love, the head is the nounman, which is diagrammatically on the right side on the noun phrase (i.e. it is the direct object), rather than the left side of the noun phrase (i.e. the subject) like in our previous examples of n-expansion (e.g.I saw Alice who loves Bob). As such, all the previous examples somehow just miraculously worked, even ones likeAlice who loves Bob hates Claire, in which you'd expect a similar swap to this example.Below is the diagram of the term directly obtained from the CCG parse:

(another strange thing in this example is that for some reason, the n-type wire coming out of loves is not labelled with a proper coindex, but if you check the
.headof the sub-term corresponding tothe man you love, it will correctly tell you the head isman_4. This problem does not seem to affect the n-type expansion algorithm however)When this term goes into the current n-type expansion code, we get the following:

The coindices of the types in this term don't match properly, so if you try to draw the coindices as well by calling
expr_add_indices_to_types, it will break.What we would like the diagram to look like after n-type expansion is probably something like this:

but this would also raise problems re s-type expansion, since the order of the n wires would be mismatched between the top and the bottom