Find semantically similar word for natural language processing

跟風遠走 提交于 2019-12-13 01:07:55

问题


I am working on a natural language processing project in Java. I have a requirement where I want to identify words that belong to similar semantic groups. e.g. : if the words such as study , university, graduate , attend are found I want them to be categorized as being related to education. If words such as golfer, batsman, athlete are found, it should categorize all under a parent like sportsperson. Is there a way I can achieve this task without using and training approach. Is there some toll like WordNet that can be used directly? Any pointer would be greatly appreciated! Thanx cheers!! :-)


回答1:


Yes, you can use WordNet. For example, you can search among hypernyms of the current word (e.g. study) for your category word (e.g. education or sport). There are JAWS, JWNL, and other libraries, see related question.

Alternatively, you can compute similarity between candidate words and category words - e.g. by using ws4j or Semilar.



来源:https://stackoverflow.com/questions/29571927/find-semantically-similar-word-for-natural-language-processing

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