This repository presents a minimal working prototype to use HuSpaCy models from r.
- Make sure you have conda installed
- Create a new environment using the provided
environemnt.yml
file:$ conda env create -n huspacyr --file ./environment.yml
- Activate the environment:
$ conda activate huspacyr
Having all dependencies installed, all you need to do is to load spacyr
in the installed environment:
library("spacyr")
# Loads the model installed to the conda environment
spacy_initialize(model = "hu_core_news_lg")
HuSpaCy model should now parse any texts:
txt <- c(d1="Csiribiri csiribiri zabszalma,", d2="négy csillag közt alszom ma.")
parsedtxt <- spacy_parse(txt)