Hacker News new | ask | show | jobs
by jrgoj 3693 days ago
Now for the buffalo test[1]

`echo 'Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo' | syntaxnet/demo.sh'

   buffalo NN ROOT

   +-- buffalo NN nn

   |   +-- Buffalo NNP nn

   |   |   +-- Buffalo NNP nn

   |   |   +-- buffalo NNP nn

   |   +-- buffalo NN nn

   +-- Buffalo NNP nn

        +-- buffalo NNP nn
[1]: https://en.wikipedia.org/wiki/Buffalo_buffalo_Buffalo_buffal...
1 comments

How does it handle the "translation" from that wiki page?

Bison from Buffalo, which bison from Buffalo bully, themselves bully bison from Buffalo.

> Input: Bison from Buffalo , which bison from Buffalo bully , themselves bully bison from Buffalo . Parse:

   Bison NNP ROOT
    +-- from IN prep
    |   +-- Buffalo NNP pobj
    +-- , , punct
    +-- bison NN ccomp
    |   +-- themselves PRP nsubj
    |   +-- bully RB advmod
    |   +-- from IN prep
    |       +-- Buffalo NNP pobj
    +-- . . punct
Interesting.

"bully RB advmod"

I assume this is wrong, and probably triggered by the "ly" ending? Also, odd that it dropped the second clause and didn't see any trouble with the parsed results lacking a single verb. I guess it has to be able to handle fragments, etc.