On Fri, Jun 15, 2012 at 8:24 AM, shilpa rai <raishilpa....@gmail.com> wrote: > thanks to all :)
Unless I suddenly became plural, I believe you meant to hit reply-all. > > I have found a code on nets , please visit the following link > > http://anrprogrammer.wordpress.com/2012/02/08/a-spell-checker-in-r/ > > when I am running this code I am getting following error > > Correct("speling", dtm = counts) > Error in out[i] <- paste(word[-i], collapse = "") : object of type 'closure' > is not subsettable Running the code on that link, I don't get that particular error, but one that's perhaps similar. The problem with the linked code is that it doesn't define out before using it. I might suggest you actually read the entire page -- the fix is already posted there. Michael > > I am unable to remove the error...can anyone help in removing the error...? > > > On Fri, Jun 15, 2012 at 6:40 PM, R. Michael Weylandt > <michael.weyla...@gmail.com> wrote: >> >> Grammar is quite complicated, but for spelling you might try this >> wonderful article by Peter Norvig: >> >> http://norvig.com/spell-correct.html >> >> Michael >> >> On Fri, Jun 15, 2012 at 12:10 AM, raishilpa <raishilpa....@gmail.com> >> wrote: >> > hello >> > >> > I want a code which can correct the spelling mistakes as well as >> > grammatical mistakes in the sentences...that is if I am writing >> > following >> > sentence: >> > >> > I want too meet my frnd bt due to hectic shcedule I cant >> > >> > I want output in following way: >> > >> > I want to met my friend but due to hectic schedule I can't. >> > >> > Thanks in advance >> > >> > Shilpa Rai ______________________________________________ R-help@r-project.org mailing list 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.