Skip to content

Instantly share code, notes, and snippets.

Aki Matsuo amatsuo

Block or report user

Report or block amatsuo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@amatsuo
amatsuo / spacyr_tokenizer_scalability.R
Last active Mar 28, 2019
Scalability comparison of quanteda and spacyr tokenizers
View spacyr_tokenizer_scalability.R
library(quanteda)
library(spacyr)
library(tidyverse)
library(microbenchmark)
spacy_initialize()
data_text_irishbudget2010 <- texts(data_corpus_irishbudget2010)
data_text_irishbudget2010 <- unname(data_text_irishbudget2010)
@amatsuo
amatsuo / spacyr_bench.R
Created Mar 27, 2019
Run and combine separate spacyr benchmarks for two versions
View spacyr_bench.R
rm(list = ls())
.rs.restartR()
library(spacyr)
#spacy_install(envname = "spacy_condaenv_2.0", version = "2.0.18")
spacy_initialize(condaenv = "spacy_condaenv_2.0", refresh_settings = T)
data_text_irishbudget2010 <- quanteda::texts(quanteda::data_corpus_irishbudget2010)
bench_1 <- microbenchmark::microbenchmark(
v2.0.18 = spacy_tokenize(data_text_irishbudget2010),
View .crostini-setup
These scripts set up Crostini on my c223na
You can’t perform that action at this time.