Difference between revisions of "GSOC'16 Kira's results. Apertium website improvements: Docs diff"

From Apertium
Jump to navigation Jump to search
Line 28: Line 28:
   
 
* <code>translation lookup</code> turns on dictionary lookup mode.
 
* <code>translation lookup</code> turns on dictionary lookup mode.
  +
  +
  +
'''''Language detection'''''
  +
  +
Back-end:
  +
  +
New language detection library uses the same query format as the previous.
  +
Description can be found here: /identifyLang (http://wiki.apertium.org/wiki/Apertium-apy)

Revision as of 21:22, 13 August 2016

Dictionary Lookup mode

Back-end:

URL Function Parameters Output
/dictionaryLookup Generate all possible forms of a word.
  • langpair: language pair to use for translation
  • q: word to perform task on
Returns all possible forms
curl -G --data "langpair=eng|spa&q=run" http://localhost:2737/dictionaryLookup
{"n": ["carrera"], "vblex": ["correr", "funcionar"]}

Front-end:

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

  • translation lookup turns on dictionary lookup mode.


Language detection

Back-end:

New language detection library uses the same query format as the previous. Description can be found here: /identifyLang (http://wiki.apertium.org/wiki/Apertium-apy)