I have to collect information from a source and classify the information based on certain rules. The input would be a text file. Eg: "Raj loves eating chocolates. Rohan likes flowers. Ravi is very popular."
From what I have learnt till date, we can tag the text based on nounphrases, verbphrase etc. So, I am planning to tag the text first. Now I want to define rules like:
if nounphrase appears after "love*" then add chocolate to the list. Similarly, if nounphrase appears after "like*" then add flowers to the list.
Now, for classification, I will create a RDF defining classes and individuals for chocolate and flowers.
My question here is 1. How do I define the grammar based rules in Android? 2. After getting the noun phrases how do I classify those nouns under a class of items of which is defined in the RDF?
Thanks.