Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phantom infinitives #1234

Open
linas opened this issue Jun 15, 2021 · 7 comments
Open

phantom infinitives #1234

linas opened this issue Jun 15, 2021 · 7 comments

Comments

@linas
Copy link
Member

linas commented Jun 15, 2021

Failures to parse:

I will, provided he goes to the store.
I'm going to, provided they have ice cream
I'm going to, if she goes first.
I'm going to, after he leaves.

Works

I'm going to walk there, provided they have ice cream

Reported by Stephen Frechette 14 June 2021 via email

@linas
Copy link
Member Author

linas commented Jun 15, 2021

More examples:

I will, if he goes to the store
I will, after he goes to the store
I will, when he goes to the store

This works:

I will stop provided he does too.

Diagnosis: these are all phantom-infinitive sentences, of the form, I will [do something], if/when/after/provided he does. This is a special case of issue #224 from long ago.

More examples:

promises, hopes, vows:

I'm going to, after he leaves
I'm hoping to, after he leaves
I hope to, after he leaves
He's sure to, after she leaves
He's bound to, after she leaves
He vowed to, after she leaves
He promised to, after she leaves
he can't wait to, but only after she leaves

will/must/could/would

He must, but only after the ceremony
He might, but only after the ceremony
He could, but only after the ceremony
He should, but only after the ceremony

@linas linas changed the title "provided" as a conjunction phantom infinitives Jun 15, 2021
@stephenfrechette
Copy link

There seem to me to be two cases where this happens, either with hanging auxiliary verbs, or with hanging "to" particles.

@linas
Copy link
Member Author

linas commented Jun 15, 2021

There are two possible fixes. The first is to invent a new phantom-word mechanism, that would result in a parse such as this:

                                        +------------Xc------------+
    +------->WV------------>+----MVs----+----CV-->+                |
    +->Wd--+-Sp*i+-----I----+       +-Xd+-Cs+--Ss-+--MVa-+         |
    |      |     |          |       |   |   |     |      |         |
LEFT-WALL I.p will.v [context-verb] , if.r she goes.v first.a RIGHT-WALL

where [context-verb] or [phantom infinitive] is inserted during tokenization, and used explicitly in the parse. Doing this would solve this and the problems outlined in #224, however, LG does not currently do anything like this, and it would require a large change to the tokenizer to add alternatives like this.

The other possibility is to have

                         +------------Xc------------+
    +---->WV---->+--XXX--+----CV-->+                |
    +->Wd--+-Sp*i+   +-Xd+-Cs+--Ss-+--MVa-+         |
    |      |     |   |   |   |     |      |         |
LEFT-WALL I.p will.v , if.r she goes.v first.a RIGHT-WALL

but it is not clear what XXX should be. Do we need to invent a new link type? Can some existing link type be pressed into service for this task?

Inventing a new link type (or recycling an existing one) is much easier than redesigning the parser. On the other hand, dealing with phantom words by making the implicit reference explicit seems like a better way of handling semantics.

@stephenfrechette
Copy link

What about the option of having a new variant of the "S" linkage in the case of auxiliaries, and a new variant of the "TO" linkage in the case of hanging "to" particles?

@linas
Copy link
Member Author

linas commented Jun 15, 2021

S connects subjects to verbs. I can't use S for XXX in the diagram above.

@stephenfrechette
Copy link

In my suggestion, in the example above, the MVs connection would link to the "will". (basically, the auxiliary becomes the main verb). I do not know if you need any XXX connection for the construction with "to".

@linas
Copy link
Member Author

linas commented Jun 21, 2021

Yes, perhaps XXX could be some variant of the MV link. The general discussion of what to do about phantom words is taking place in #224

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants