Hacker News new | ask | show | jobs
by Vivtek 3677 days ago
Seems to fall for a lot of easy traps. Garden path sentences ("The old man the boats" or "The horse raced past the barn fell") are parsed wrong, and it parses the two sentences/phrases "When he did that I laughed" and "When he said that I laughed" identically - by interpreting "that" as a preposition in both cases, which it isn't.

It's cool that it parses on the fly. But unless it parses correctly I don't see how it actually serves a purpose other than just looking cool.

5 comments

I tried

> I heard you like phrase structure, so I put a phrase in your phrase so you can parse a phrase while you parse a phrase.

It misinterpreted "like" as 'in the manner of; akin to' ("I heard you as though [I were hearing] phrase structure"?), so I tried

> I heard you enjoy phrase structure, so I put a phrase in your phrase so you can parse a phrase while you parse a phrase.

That got parsed correctly.

Edit: well, it says "enjoy" is a base form rather than 3rd person singular, which is wrong in this context; it's an inflected form, like "I heard she enjoys phrase structure".

These require a system which either backtracks or recognizes it's made a mistake and corrects it. I know how to do that with a rule-based parser.

It also fails on "British left waffles on Falklands." While there are two syntactic parsers for that, one of them borders on the absurd and should be rejected. The problem is that to parse some sentences requires understanding of the words and phrases it reads, which in turn requires common sense.

Well, that is just choosing the semantically correct parse from multiple syntactically correct parses. This parser isn't even finding syntactically correct parses.
It is clearly not up to reading P G Wodehouse. The following sentence is parsed as having two subject nouns.

Jeeves, dark forces are drawing us to Totleigh.

One does not even dare to try Marx Brothers quotes.

My favorite is "Fruit flies like honey." which trips this parser up as well.
Type in "Fruit Flies like honey"
So, to get correct output, you need to give it incorrect input? You don't capitalize names of animal or plant species in English.
The dogs bark at the tree bark.