AllenNLP – An open-source NLP research library, built on PyTorch
allennlp.org
allennlp.org
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
I think I have seen similar systems for decades now. I thought we would be further along meanwhile.I have tried for 10 or 20 minutes now. But I can't find any evidence that it has much sense of syntax:
Paul gives a coin to Joe.
Who received a coin?
Answer: Paul
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".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!"
Same for "what" questions:
Gold can not be carried in a bag. Silver can.
What can be carried in a bag?
Answer: GoldSo I would assume it has bean heavily trained?
Your example works if you rephrase the question to be more similar to the text:
Paul gives a coin to Joe.
Whom does Paul give a coin to?
Answer: Joe
You can cut the question down to "gives to?" or "coin to?", because that's enough to single out the answer. But as soon as you use s̶y̶n̶o̶n̶y̶m̶s̶ (EDIT: related words) that are not recognized (like "receive"), you have no chance of getting a meaningful answer.[1] https://rajpurkar.github.io/SQuAD-explorer/explore/1.1/dev/
With zero further understanding as it seems:
Paul gives no coin to Marray. Paul gives a coin to Joe.
Who got something from Paul?
Anser: Marray
Paul gives no coin to Marray. Paul gives a coin to Joe.
Who received a coin?
Answer: PaulPassage: Britain’s decision on Thursday to drop extradition proceedings against Gen. Augusto Pinochet and allow him to return to Chile is understandably frustrating ... Jack Straw, the home secretary, said the 84-year-old former dictator’s ability to understand the charges against him and to direct his defense had been seriously impaired by a series of strokes. ... Chile’s president-elect, Ricardo Lagos, has wisely pledged to let justice run its course. But the outgoing government of President Eduardo Frei is pushing a constitutional reform that would allow Pinochet to step down from the Senate and retain parliamentary immunity from prosecution. ...
Question: Sources close to the presidential palace said that Fujimori declined at the last moment to leave the country and instead he will send a high level delegation to the ceremony, at which Chilean President Eduardo Frei will pass the mandate to XXX.
Choices: (1) Augusto Pinochet (2) Jack Straw (3) Ricardo Lagos
The hype has gone down and some are actually doing great work, but 90% of the people who say they do NLP/AI stuff don't even fundamentally understand what NLP/AI is.
Maybe we need to look back and start from beginning and ask ourself: How does human learn, exactly? How do we learn with so few examples? How do we jointly learn image/audio/video/language with only one brain?
Now, it's still an area of active research... and I'm not sure what "state-of-the-art" means for this library, somebody said that they rank #27th in some commonly used dataset.
'the patient had no pain but did have nausea'
Doesn't yield any helpful on semantic role labeling and didn't even parse on machine comprehension. If I vary it to say ask 'did the patient have pain?' the answer is 'nausea'.
CoreNLP provides much more useful analysis of the phrase structure and dependencies.
"what is the fifth word in that sentence ?"
Answer: squid