Usage in R#
Installation#
library(reticulate)
conda_install(envname="huspacyr", "https://huggingface.co/huspacy/hu_core_news_lg/resolve/v3.5.2/hu_core_news_lg-any-py3-none-any.whl" ,pip=TRUE)
Usage#
Having all dependencies installed, all you need to do is to load spacyr
and initialize it with a HuSpaCy model:
library("spacyr")
# Loads the model which is already installed tin the conda environment
spacy_initialize(model = "hu_core_news_lg", condaenv="huspacyr")
HuSpaCy should now parse any texts: