Skip to content

n type expansion code is incomplete #30

@JosephNathaniel

Description

@JosephNathaniel

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:
image
(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:
image
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:
image
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions