User:Kiara
Jump to navigation
Jump to search
Kiara's page
Suggestion task:
Notes
1. How to work with APY from the command line: http://wiki.apertium.org/wiki/APY#Usage
2. How to launch Suggestions from the command line https://github.com/goavki/apertium-html-tools/pull/35
use ./servlet.py /usr/local/share/apertium/ --wiki-username=WikiUsername --wiki-password=WikiPassword -rs=YourRecaptchaSecret to run apy in google reCaptcha mode
URL | Function | Parameters | Output |
---|---|---|---|
/suggest | Generate a suggestion on target wiki-page using a testing token. |
|
Returns the status. If "Success", the suggestion is posted on the target wiki-page.
Note that the correct wiki-page url is required (wiki_util.py)
Note that correct keys are required when starting apy and html-tools. curl --data 'context=otro+mundo&word=*mundo&newWord=MUNDO&langpair=esp|eng&g-recaptcha-response=testingToken' http://localhost:2737/suggest {"responseStatus": 200, "responseData": {"status": "Success"}, "responseDetails": null} |
- (esp-eng): otro mundo → *mundohgg (MUNDO)
- (esp-eng): otro mundo → *mundohgg (MUNDO)
- (esp-eng): otro mundo → *mundohgg (MUNDO)
- (spa-eng): World *tggg your and Miguel → *tggg (12345678)
- (spa-eng): your and Miguel *jogar → *jogar (tttgrhyrj)
- (spa-eng): World *tggg your and Miguel → *tggg (utytryjh)
- (spa-eng): World *tggg your and Miguel → *tggg (mnbvcx)
- (spa-eng): *jo world hombreu → hombreu (khlkjhk)