Skip to main content
Eric Lecoutre's user avatar
Eric Lecoutre's user avatar
Eric Lecoutre's user avatar
Eric Lecoutre
  • Member for 8 years, 7 months
  • Last seen more than 2 years ago
awarded
awarded
awarded
Loading…
comment
How to use hunspell_stem(or a ordinary function) with tm_map?
Hi, I can't test because I am using an old verion of tm (upgrading would break my code). Basically, you wan't to use your own custom function within tm_map. For that you need to encapsulate it within content_transformer. Cf for instance rstudio-pubs-static.s3.amazonaws.com/… and tm_transformerhelp. Now your function should be something like mytxtfoo <-content_transformer(function(txt){paste(mystemfunction(str‌​split(txt, " ")[[1]]))})
comment
Characterisitcs of the data set for a binary classification problem
It is difficult to answer without knowing anything about your problem, your objectives. So as for labelling, if it is about human labeling, you may be interested in Amazon Mechanical Turk --mturk.com/mturk/welcome
awarded
answered
Loading…
awarded
comment
When to choose character instead of factor in R?
I would also add that if/when the character value itself (string) is of interest to you, for instance if you want to perform substring or regular expressions, you should consider text to avoir multiply calls to as.character().
awarded
Loading…
answered
Loading…
Loading…