The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

textrar

The goal of textrar is to translate texts with 'TexTra' easily.

https://mt-auto-minhon-mlt.ucri.jgn-x.jp/

Installation

You can install from GitHub with:

  # install.packages("remotes")
remotes::install_github("matutosi/textrar")

You can also install from CRAN:

install.packages("textrar")

Example

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"

Citation

Toshikazu Matsumura (2024) textrar. Interface to 'TexTra' from R. https://github.com/matutosi/textrar/

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.