Natural Language Processing Using Elasticsearch and Google Cloud Api

允我心安 提交于 2019-12-24 07:09:33

问题


I want to use NLP with elasticsearch. I have been able to achieve one level by using Open NLP plugin as mentioned in comments of this question. I am getting entities like person, organization, location etc indexed while inserting documents.

I have a doubt while searching the same information.Since, I need to process the terms entered by the user during query time. Following is what I have thought of:

  1. Process the query entered by user using apache NLP as specified here.

  2. Extract Person, location and organisation Names from the previous and then run a query against the entities stored in index.

  3. I am also thinking of using Google Knowledge Graph Search Api to fetch related information about the extracted entities in the previous steps and then include them in search query as well. (Reason to do this is because we want to show results of Delhi in case some one searches for Capital Of India). We are not going with Synonyms Search approach in this case as we want the information to be dynamically available.

My question is that- Is there something better we can do to achieve the same, because lot of processing at query time is going to increase the response time?

来源:https://stackoverflow.com/questions/50896920/natural-language-processing-using-elasticsearch-and-google-cloud-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!