Reputation: 3962
I would like to know the category in which the word falls in.
Like it could be a place,food,clothing.. etc how do I get that from any API ? Currently I am using in this example : Pizza which is of category food. How do I get that?
Like Newyork is a place so category:place.
How do I get only the category ?
Upvotes: 0
Views: 640
Reputation: 66835
You are probably looking for the WordNet like database. Obviously this is not that easy (what "granularity" of the categories is ok, what about multi-meaning words?) and there are no good answers for such questions, NLP is not that easy. However, WordNet should help you a lot, as it provides a nice, relational structure of the english words.
Upvotes: 2