Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ch06 Text Regularization #32

Open
mzagaja opened this issue Feb 16, 2015 · 0 comments
Open

Ch06 Text Regularization #32

mzagaja opened this issue Feb 16, 2015 · 0 comments

Comments

@mzagaja
Copy link

mzagaja commented Feb 16, 2015

In chapter 6 I am at the part where I am supposed to be executing

dtm <- DocumentTermMatrix(corpus)

However it fails out with the following error:

Error in UseMethod("meta", x) : 
  no applicable method for 'meta' applied to an object of class "try-error"
In addition: Warning message:
In mclapply(unname(content(x)), termFreq, control) :
  all scheduled cores encountered errors in user code

StackOverflow suggested installing SnowballC and also trying
corpus <- tm_map(corpus, content_transformer(tolower), lazy = TRUE)

Neither of these solutions worked and I am thus flummoxed.

Here is my session info:

R version 3.1.2 (2014-10-31)
Platform: x86_64-apple-darwin13.4.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] glmnet_1.9-8  Matrix_1.1-4  mgcv_1.8-4    nlme_3.1-118  plyr_1.8.1    ggplot2_1.0.0 tm_0.6             NLP_0.1-5    

loaded via a namespace (and not attached):
 [1] colorspace_1.2-4 digest_0.6.8     grid_3.1.2       gtable_0.1.2     labeling_0.3     lattice_0.20-29      MASS_7.3-35      munsell_0.4.2    parallel_3.1.2   proto_0.3-10    
[11] Rcpp_0.11.3      reshape2_1.4.1   scales_0.2.4     slam_0.1-32      stringr_0.6.2    tools_3.1.2     
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant