Home » Php » php – Natural Language Understanding API

php – Natural Language Understanding API

Posted by: admin July 12, 2020 Leave a comment

Questions:

I am unaware if such an API or service exists currently so this is a vague question, my apologies.

I have a PHP script that works with Freebase and I was wondering if I can enable it so a user can ask a question on my site which will be deconstructed using natural language processing, query the Freebase API and then return an answer.

Does anyone know of an already existing tool like this that works with Freebase?

If not, does anyone know of any great Natural Language Understanding APIs that would be able to strip down a question such as "how tall is mount everest?" and tell my script to query "height" on the mount everest article on Freebase?

How to&Answers:

This is a great question. Natural language understanding is a difficult problem and there aren’t a lot of drop-in solutions out there. The problem that you’ve described (eg. “How tall is Mount Everest?”) is actually better known as question answering.

Here is some research into question answering that used Freebase data including IBM’s Watson computer: http://www.mendeley.com/groups/585641/freebase/papers/added/0/tag/question+answering/

Here are some templates in Freebase that map Freebase properties to English sentences:
https://www.freebase.com/base/natlang/predicate_relation?instances

Here is a simple open source app that I built which does some basic question answering using the Freebase APIs: http://answers.freebaseapps.com/?q=what+is+the+elevation+of+mount+everest

The Quepy project uses Python to do question answering using either DBpedia or Freebase data.

Please let us know what else you discover, there’s certainly a lot more that we could be doing in this area.

Answer:

Quick update: The Quepy release is ready! 😀
Currently Quepy provides support for Sparql and MQL query languages. We plan to extended it to other database query languages.

The full code here: http://github.com/machinalis/quepy

Full documentation here: http://quepy.readthedocs.org/

Demo: http://quepy.machinalis.com/

Answer:

I also have great news; At this moment the Quepy team is working to start using the Freebase APIs.
So soon we will share Quepy using Freebase to the community.

We are very happy about this.

You can contact us at our Mailing List:
https://groups.google.com/forum/#!forum/quepy
https://github.com/machinalis/quepy/

Answer:

Another update: just saw that AlchemyAPI has such an API for NLU, really understanding language, objects, semantics, and deriving pragmatisms. A demo is at http://www.alchemyapi.com/products/demo/