GithubHelp home page GithubHelp logo

myanesp / libretranslater Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 24 KB

Binding to LibreTranslate API for R: translate, detect languages, obtain the available languages to translate from and to. Enhanced with a user-friendly wizard process.

License: GNU Affero General Public License v3.0

R 100.00%

libretranslater's Introduction

libretranslateR

CodeFactor Project Status: Active - The project has reached a stable, usable state and is being actively developed. Github last-commit Github license

Connect to LibreTranslate API from R

API Docs | LibreTranslate GitHub Repository | Official instance | List of instances

Features

  • Translate texts, strings of R objects without leaving R using an opensource engine.
  • Automatically detect languages
  • It can connect to any LibreTranslate instance, so you're not tied to anything, even you can host your own!
  • As you can install your LibreTranslate instance, offline translation is available

Installation

This package is not yet available on CRAN. So you must install from GitHub using remotes package.

if (!require("remotes")) install.packages("remotes")
remotes::install_github("myanesp/libretranslateR")
# And then load into your current session
library(libretranslateR)

Examples and usage

set_config() # Config wizard for setting the instance you're going to use and your API key

translate(q = "hola, amigos", to = "en") # Autodetect language

translate(q = "hola", from = "es", to = "fr")

get_languages() # Display available languages

detect_language("do you know what i'm talking about?") # Detect language and the level of confidence

Install your own instance

You can follow the official instructions located at LibreTranslate's repository to host your own instance. You can do it through the Python's package or through a docker container.

Planned features

  • Support for translating files
  • Transform ISO names in get_languages() to real user-friendly names
  • Automatically detect if the chosen instance needs API or not
  • Rework and rethink config process

libretranslater's People

Contributors

myanesp avatar

Stargazers

Adrien Taudiere avatar Paul Campbell avatar Felipe Menegazzi avatar P.J. Finlay avatar Argos Open Tech avatar

Watchers

 avatar

Forkers

pj-finlay

libretranslater's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.