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

From Apertium
Jump to navigation Jump to search
Line 27: Line 27:
 
ENABLED_MODES: an array of the enabled interfaces, a non-empty subset of ['translation', 'analyzation', 'generation', 'sandbox', 'lookup']
 
ENABLED_MODES: an array of the enabled interfaces, a non-empty subset of ['translation', 'analyzation', 'generation', 'sandbox', 'lookup']
   
** <code>translation lookup</code> turns on dictionary lookup mode.
+
* <code>translation lookup</code> turns on dictionary lookup mode.

Revision as of 17:56, 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.