Skip to content

huspacy/huspacy-in-r

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HuSpaCy in R

Jupyter+R: Binder

This repository presents a minimal working prototype to use HuSpaCy models from r.

Reproducing it locally

  1. Make sure you have conda installed
  2. Create a new environment using the provided environemnt.yml file: $ conda env create -n huspacyr --file ./environment.yml
  3. 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)

About

Simple binder example on using HuSpaCy from R

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages