Nothing
context("comparing kgram_freqs() and kgram_freqs_fast()")
test_that("coincidence on long char vector", {
freqs <- kgram_freqs(twitter_train[1:10000], 3, twitter_dict)
freqs_fast <- kgram_freqs_fast(twitter_train[1:10000], 3, twitter_dict)
transform <- . %>% arrange(across(starts_with("w")))
freqs_attr_bckp <- attributes(freqs)
freqs <- lapply(freqs, transform)
attributes(freqs) <- freqs_attr_bckp
freqs_fast_attr_bckp <- attributes(freqs_fast)
freqs_fast <- lapply(freqs_fast, transform)
attributes(freqs_fast) <- freqs_fast_attr_bckp
attr(freqs_fast, ".preprocess") <- attr(freqs, ".preprocess")
expect_identical(freqs, freqs_fast)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.