context("MeCab")
test_that("MeCab result test", {
example <- JaNLP$new(text = "すもももももももものうち")
expect_equal(
object = as.character(example$mecab()$surface),
expected = c("すもも", "も", "もも", "も", "もも", "の", "うち")
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.