knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
pkgload::load_all()

tangela

GitHub last commit tangela status badge GitHub license

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.

Usage

Installation

remotes::install_github("paithiov909/tangela")

Call tagger

res <- tangela::kuromoji(
  c("なぜ分かり合えないのか!?",
    "なぜ貴様等は他を出し抜こうとするのか!?",
    "ところできのこはあんな縦に長かったか!?")
)
str(res)

Prettify Output

res <- tangela::prettify(res)
head(res)

The output has these columns.

Pack Output

res <- tangela::kuromoji(
  c("なぜ分かり合えないのか!?",
    "なぜ貴様等は他を出し抜こうとするのか!?",
    "ところできのこはあんな縦に長かったか!?",
    "とにかく不様、そんな事ではあの小娘には勝てないわ。",
    "そう、皆で協力して挑むのだ!",
    "えー、まぁ今回はその件で伺いました。")
) |> 
  tangela::prettify() |> 
  tangela::pack()
print(res)

License

© 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.



paithiov909/tangela documentation built on Dec. 1, 2023, 2:52 a.m.