knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" ) pkgload::load_all()
tangela is an rJava wrapper of atilika/kuromoji (bundled v0.7.7).
Kuromoji is a "self-contained Japanese morphological analyzer" such that tangela only requires Java; It never has any other dependencies such as MeCab and its dictionaries.
remotes::install_github("paithiov909/tangela")
res <- tangela::kuromoji( c("なぜ分かり合えないのか!?", "なぜ貴様等は他を出し抜こうとするのか!?", "ところできのこはあんな縦に長かったか!?") ) str(res)
res <- tangela::prettify(res) head(res)
The output has these columns.
res <- tangela::kuromoji( c("なぜ分かり合えないのか!?", "なぜ貴様等は他を出し抜こうとするのか!?", "ところできのこはあんな縦に長かったか!?", "とにかく不様、そんな事ではあの小娘には勝てないわ。", "そう、皆で協力して挑むのだ!", "えー、まぁ今回はその件で伺いました。") ) |> tangela::prettify() |> tangela::pack() print(res)
© 2023 Akiru Kato
Licensed under the Apache License, Version 2.0. This software includes the works distributed under the Apache License, Version 2.0.
Icons made by Eucalyp from www.flaticon.com.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.