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

From Apertium
Jump to navigation Jump to search
(Created page with "'''''Dictionary Lookup mode''''' Back-end: Front-end:")
 
Line 2: Line 2:
   
 
Back-end:
 
Back-end:
  +
  +
{| class="wikitable" border="1"
  +
|-
  +
! 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
  +
<pre>
  +
curl -G --data "langpair=eng|spa&q=run" http://localhost:2737/dictionaryLookup
  +
{"n": ["carrera"], "vblex": ["correr", "funcionar"]}
  +
</pre>
  +
|-
  +
|}
   
 
Front-end:
 
Front-end:

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