2
$\begingroup$

I am building a search engine and I am looking for an open source AI algorithm to recognize the keyword in a search phrase within a particular context. So if a user passes something in the line of how far is Russia? and the context is location then the AI should return Russia

$\endgroup$
3
  • $\begingroup$ I think what you are looking for is Named Entity Recognition. You may refer to NLTK Book to learn how to do NER in python. $\endgroup$
    – kiner_shah
    Jul 9 '18 at 10:44
  • 1
    $\begingroup$ @kiner_shah thanks! this is more like it. however i am totally new to the subject hence why i am looking for an API that does this already. Do you know of any that you could recommend? $\endgroup$
    – goodhand
    Jul 9 '18 at 12:18
  • $\begingroup$ NLTK is the API in Python! NLTK book is a book which explains how to use NLTK for various NLP tasks. For Java, you may see Stanford's Core NLP. $\endgroup$
    – kiner_shah
    Jul 10 '18 at 13:57
1
$\begingroup$

Here is a glimpse for you.

I once contributed to an open source project via Github, and the open source artificial intelligence library/API which helped a lot and I think will as well help you out is wit, it provides location data.

And the good thing about "wit", is it provides wit_location entity which provides information on the captured location for instance "time-zone, locality, region / location"

For example: in sentence "How far is Russia?", it captures "far" as the distance to the target location entity before this returns

{"value":"location_name",Russia"}

In the entity value. (don't forget)

To further improve the quality and search engine racking to return values in future, that's if your project goes well, you can simply provide an optimal "coords" map in context when calling the "wit-API"

This will also help you to factor into your search engine racking of your returned values, which will as well take the location's proximity to the "coords" into account.

Hope this can give you some insights.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.