7

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?

4

4 回答 4

11

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.

于 2013-08-22T00:45:05.113 回答
1

Quick update: The Quepy release is ready! :D 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/

于 2013-09-10T21:15:18.243 回答
0

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/

于 2013-08-28T15:49:31.933 回答
0

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/

于 2014-03-27T20:08:39.163 回答