spacyr
spacyr copied to clipboard
spacy initialize error, cannot import name 'component'
Hi, When I execute the following command in Rstudio/R4.1 after downloading the language model,
spacy_download_langmodel("ja_core_news_sm") spacy_initialize(model = "ja_core_news_sm") the following error messages were shown. Found 'spacy_condaenv'. spacyr will use this environment py_run_file_impl(file, local, convert) でエラー: ImportError: cannot import name 'component'
And my sessionInfo() shows as follows; R version 4.1.0 (2021-05-18) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19043)
Matrix products: default
locale:
[1] LC_COLLATE=Japanese_Japan.932 LC_CTYPE=Japanese_Japan.932 LC_MONETARY=Japanese_Japan.932 LC_NUMERIC=C
[5] LC_TIME=Japanese_Japan.932
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] spacyr_1.2.1 topicmodels_0.2-12
loaded via a namespace (and not attached):
[1] NLP_0.2-1 Rcpp_1.0.7 pillar_1.6.1 compiler_4.1.0 tools_4.1.0 jsonlite_1.7.2 lifecycle_1.0.0
[8] tibble_3.1.2 gtable_0.3.0 lattice_0.20-44 png_0.1-7 pkgconfig_2.0.3 rlang_0.4.11 Matrix_1.3-4
[15] DBI_1.1.1 cli_3.0.1 rstudioapi_0.13 parallel_4.1.0 stm_1.3.6 xfun_0.24 xml2_1.3.2
[22] dplyr_1.0.7 rappdirs_0.3.3 generics_0.1.0 vctrs_0.3.8 stats4_4.1.0 grid_4.1.0 tidyselect_1.1.1
[29] reticulate_1.20 glue_1.4.2 data.table_1.14.0 R6_2.5.0 fansi_0.5.0 ggplot2_3.3.5 purrr_0.3.4
[36] magrittr_2.0.1 scales_1.1.1 ellipsis_0.3.2 modeltools_0.2-23 assertthat_0.2.1 colorspace_2.0-2 utf8_1.2.1
[43] tinytex_0.32 munsell_0.5.0 slam_0.1-48 tm_0.7-8 crayon_1.4.1
Will you kindly suggest me the way to solve this issue? Thank you, Masata