tests/testthat/test-CaboCha.R

context("CaboCha")

test_that("CaboCha result test", {
  example <- JaNLP$new(text = "すもももももももものうち")
  expect_equal(
    object = example$cabocha()$chunk_id,
    expected = c(0, 0, 1, 1, 2, 2, 3)
  )
})
yamano357/rJaNLP documentation built on May 4, 2019, 2:28 p.m.