The goal of textrar is to translate texts with 'TexTra'
easily.
https://mt-auto-minhon-mlt.ucri.jgn-x.jp/
You can install from GitHub with:
You can also install from CRAN:
You can use textra()
to translate texts with textra easily.
library(textrar)
key <- "abcdefghijklmnopqrstuvw01234567890abcdef1" # API key
secret <- "xyzabcdefghijklmnopqrstuvw012345" # API secret
name <- "login_ID" # login_ID
params <- gen_params(key = key, secret = secret, name = name)
text <- "Hello world"
translated <- textra(text, params, model = "transLM", from = "en", to = "it")
translated
## [1] "Ciao mondo"
Toshikazu Matsumura (2024) textrar. Interface to 'TexTra'
from R. https://github.com/matutosi/textrar/