Closed PriyaShaji closed 5 years ago
vocab = create_vocabulary(it_train, ngram = c(1L,3L), stopwords = stopwords::stopwords(language ="en"))
Error in { : 'stopwords' is not an exported object from 'namespace:tokenizers'
==========================================================
utils::sessionInfo() R version 3.5.3 (2019-03-11) Platform: x86_64-apple-darwin15.6.0 (64-bit) Running under: macOS Mojave 10.14.5
Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib
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] stopwords_0.9.0 Matrix_1.2-15 text2vec_0.5.1 wordcloud_2.6 RColorBrewer_1.1-2 tidytext_0.2.0 [7] rgdal_1.4-4 sp_1.3-1 leaflet_2.0.2 lubridate_1.7.4 data.table_1.12.0 caret_6.0-82 [13] lattice_0.20-38 forcats_0.4.0 stringr_1.4.0 dplyr_0.8.3 purrr_0.3.2 readr_1.3.1 [19] tidyr_0.8.3 tibble_2.1.3 ggplot2_3.1.1 tidyverse_1.2.1
loaded via a namespace (and not attached): [1] colorspace_1.4-1 ellipsis_0.2.0.1 class_7.3-15 rprojroot_1.3-2 futile.logger_1.4.3 [6] fs_1.3.1 base64enc_0.1-3 rstudioapi_0.10 remotes_2.1.0 SnowballC_0.6.0 [11] prodlim_2018.04.18 xml2_1.2.0 codetools_0.2-16 splines_3.5.3 knitr_1.23 [16] pkgload_1.0.2 mlapi_0.1.0 jsonlite_1.6 broom_0.5.1 dbplyr_1.4.2 [21] shiny_1.3.2 compiler_3.5.3 httr_1.4.0 backports_1.1.4 assertthat_0.2.1 [26] lazyeval_0.2.2 cli_1.1.0 later_0.8.0 formatR_1.5 htmltools_0.3.6 [31] prettyunits_1.0.2 tools_3.5.3 gtable_0.3.0 glue_1.3.1 reshape2_1.4.3 [36] Rcpp_1.0.1 cellranger_1.1.0 sparklyr_1.0.1.9004 nlme_3.1-137 iterators_1.0.10 [41] crosstalk_1.0.0 timeDate_3043.102 gower_0.2.0 xfun_0.8 ps_1.3.0 [46] testthat_2.1.1 rvest_0.3.2.9000 mime_0.7 devtools_2.1.0 MASS_7.3-51.1 [51] scales_1.0.0 ipred_0.9-8 hms_0.4.2 promises_1.0.1 lambda.r_1.2.3 [56] memoise_1.1.0 forge_0.2.0 rpart_4.1-13 stringi_1.4.3 tokenizers_0.2.1 [61] desc_1.2.0 foreach_1.4.4 pkgbuild_1.0.3 lava_1.6.5 rlang_0.4.0 [66] pkgconfig_2.0.2 recipes_0.1.5 htmlwidgets_1.3 tidyselect_0.2.5 processx_3.4.0 [71] plyr_1.8.4 magrittr_1.5 R6_2.4.0 generics_0.0.2 DBI_1.0.0 [76] pillar_1.4.2 haven_2.1.1 withr_2.1.2 survival_2.43-3 nnet_7.3-12 [81] janeaustenr_0.1.5 modelr_0.1.4 crayon_1.3.4 futile.options_1.0.1 usethis_1.5.1 [86] grid_3.5.3 readxl_1.3.1 callr_3.3.0 ModelMetrics_1.2.2 digest_0.6.20 [91] xtable_1.8-4 httpuv_1.5.1 r2d3_0.2.3 RcppParallel_4.4.2 stats4_3.5.3 [96] munsell_0.5.0 sessioninfo_1.1.1
I think this is a tokenizers package error, not stopwords.
Error in { : 'stopwords' is not an exported object from 'namespace:tokenizers'
==========================================================
Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib
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] stopwords_0.9.0 Matrix_1.2-15 text2vec_0.5.1 wordcloud_2.6 RColorBrewer_1.1-2 tidytext_0.2.0
[7] rgdal_1.4-4 sp_1.3-1 leaflet_2.0.2 lubridate_1.7.4 data.table_1.12.0 caret_6.0-82
[13] lattice_0.20-38 forcats_0.4.0 stringr_1.4.0 dplyr_0.8.3 purrr_0.3.2 readr_1.3.1
[19] tidyr_0.8.3 tibble_2.1.3 ggplot2_3.1.1 tidyverse_1.2.1
loaded via a namespace (and not attached): [1] colorspace_1.4-1 ellipsis_0.2.0.1 class_7.3-15 rprojroot_1.3-2 futile.logger_1.4.3 [6] fs_1.3.1 base64enc_0.1-3 rstudioapi_0.10 remotes_2.1.0 SnowballC_0.6.0
[11] prodlim_2018.04.18 xml2_1.2.0 codetools_0.2-16 splines_3.5.3 knitr_1.23
[16] pkgload_1.0.2 mlapi_0.1.0 jsonlite_1.6 broom_0.5.1 dbplyr_1.4.2
[21] shiny_1.3.2 compiler_3.5.3 httr_1.4.0 backports_1.1.4 assertthat_0.2.1
[26] lazyeval_0.2.2 cli_1.1.0 later_0.8.0 formatR_1.5 htmltools_0.3.6
[31] prettyunits_1.0.2 tools_3.5.3 gtable_0.3.0 glue_1.3.1 reshape2_1.4.3
[36] Rcpp_1.0.1 cellranger_1.1.0 sparklyr_1.0.1.9004 nlme_3.1-137 iterators_1.0.10
[41] crosstalk_1.0.0 timeDate_3043.102 gower_0.2.0 xfun_0.8 ps_1.3.0
[46] testthat_2.1.1 rvest_0.3.2.9000 mime_0.7 devtools_2.1.0 MASS_7.3-51.1
[51] scales_1.0.0 ipred_0.9-8 hms_0.4.2 promises_1.0.1 lambda.r_1.2.3
[56] memoise_1.1.0 forge_0.2.0 rpart_4.1-13 stringi_1.4.3 tokenizers_0.2.1
[61] desc_1.2.0 foreach_1.4.4 pkgbuild_1.0.3 lava_1.6.5 rlang_0.4.0
[66] pkgconfig_2.0.2 recipes_0.1.5 htmlwidgets_1.3 tidyselect_0.2.5 processx_3.4.0
[71] plyr_1.8.4 magrittr_1.5 R6_2.4.0 generics_0.0.2 DBI_1.0.0
[76] pillar_1.4.2 haven_2.1.1 withr_2.1.2 survival_2.43-3 nnet_7.3-12
[81] janeaustenr_0.1.5 modelr_0.1.4 crayon_1.3.4 futile.options_1.0.1 usethis_1.5.1
[86] grid_3.5.3 readxl_1.3.1 callr_3.3.0 ModelMetrics_1.2.2 digest_0.6.20
[91] xtable_1.8-4 httpuv_1.5.1 r2d3_0.2.3 RcppParallel_4.4.2 stats4_3.5.3
[96] munsell_0.5.0 sessioninfo_1.1.1