Hi team, I have data set contains one variable "*Description*" *Description** Category* 1. i want ice cream food 2. i like banana very much fruit 3. tomorrow i will eat chicken food 4. yesterday i went to birthday party festival 5. i lost my mobile last week mobile Please remember that i have only "*Description*" Variables only.How can i get the categories column based on the sentences of *Description *column. kindly do the needful help for that Advance in Thanks. Thanks and Regards Venkatesan [[alternative HTML version deleted]]
Hi Venky, Unfortunately the MindReader package produces the following: 1. I want ice cream Desire 2. I like banana very much Pleasure 3. Tomorrow i will eat chicken Expectation 4. Yesterday i went to birthday party Reminiscence 5. I lost my mobile last week Disappointment I recall that there is a computer named Watson that might be of assistance. Jim On Tue, Nov 15, 2016 at 12:16 AM, Venky <venkynov10 at gmail.com> wrote:> Hi team, > > I have data set contains one variable "*Description*" > > *Description** Category* > > 1. i want ice cream food > 2. i like banana very much fruit > 3. tomorrow i will eat chicken food > 4. yesterday i went to birthday party festival > 5. i lost my mobile last week mobile > > Please remember that i have only "*Description*" Variables only.How can i > get the categories column based on the sentences of *Description *column. > > kindly do the needful help for that > > Advance in Thanks. > > > > > > > Thanks and Regards > Venkatesan > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
> I have data set contains one variable "*Description*" > > *Description** Category* > > 1. i want ice cream food > 2. i like banana very much fruit > 3. tomorrow i will eat chicken food > 4. yesterday i went to birthday party festival > 5. i lost my mobile last week mobile > > Please remember that i have only "*Description*" Variables only.How can i > get the categories column based on the sentences of *Description *column.You could look at something like ReadMe (http://gking.harvard.edu/readme) to generate a classifier based on a suitable subsample of your data that then classifies the rest of your data set. Alternatively you could do it the hard way; use a natural language parser to extract all the noun phrases (or just split oout the words), list the unique noun phrases, manually classify all of them using your own criteria to give a pair list (phrase->category), and then match classes back to the rows that contain each noun phrase. ******************************************************************* This email and any attachments are confidential. Any use...{{dropped:8}}