AllenNLP – An open-source NLP research library, built on PyTorch
Wow, is this really state of the art?<p><pre><code>    Joe did not buy a car today.
    He was in buying mood.
    But all cars were too expensive.

    Why didn't Joe buy a car?

    Answer: buying mood
</code></pre>
I think I have seen similar systems for decades now. I thought we would be further along meanwhile.<p>I have tried for 10 or 20 minutes now. But I can't find any evidence that it has much sense of syntax:<p><pre><code>    Paul gives a coin to Joe.

    Who received a coin?

    Answer: Paul
</code></pre>
All it seems to do is to extract candidates for "who", "what", "where" etc. So it seems to figure out correctly that "Paul" is a potential answer for "Who".<p>No matter how I rephrase the "Who" question, I always get "Paul" as the answer. "Who? Paul!", "Who is a martian? Paul!", "Who won the summer olympics? Paul", "Who got a coin from the other guy? Paul!"<p>Same for "what" questions:<p><pre><code>    Gold can not be carried in a bag. Silver can.

    What can be carried in a bag?

    Answer: Gold</code></pre>