User:Mono/GSoC 2017

From Apertium
< User:Mono
Revision as of 14:18, 27 August 2017 by Mono (talk | contribs) (Created page with "== Webpage Translation mode == An interface that lets the user to input a URL link, choose a source and a destination language and translate the webpage. === Code === ====...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Webpage Translation mode

An interface that lets the user to input a URL link, choose a source and a destination language and translate the webpage.

Code

APy

Html-tools

Documentation

APy

URL Function Parameters Output
/translatePage Translates a webpage
  • langpair: language pair to use for translation
  • url: url of webpage that has to be translated
Returns the translated webpage
curl -Ss 'http://localhost:2737/translatePage?langpair=eng|spa&url=http://facebook.com'
[https://gist.github.com/share-with-me/88555bbaff4a7681b1d1d7ae98babf03]

Html-tools

ENABLED_MODES: an array of the enabled interfaces, a non-empty subset of ['translation', 'analyzation', 'generation', 'sandbox', 'lookup']

  • translation lookup turns on webpage translation mode.