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:
# install.packages("remotes")
::install_github("matutosi/textrar") remotes
You can also install from CRAN:
install.packages("textrar")
You can use textra()
to translate texts with textra
easily.
library(textrar)
<- "abcdefghijklmnopqrstuvw01234567890abcdef1" # API key
key <- "xyzabcdefghijklmnopqrstuvw012345" # API secret
secret <- "login_ID" # login_ID
name <- gen_params(key = key, secret = secret, name = name)
params
<- "Hello world"
text <- textra(text, params, model = "transLM", from = "en", to = "it")
translated
translated## [1] "Ciao mondo"
Toshikazu Matsumura (2024) textrar. Interface to
'TexTra'
from R. https://github.com/matutosi/textrar/