Language Detection Web Service
Example Usage
language-identifier-server start
curl -d "input=this is an english text&kaf=true" http://localhost:9393 -XPOST
outputs:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><KAF xml:lang="en"><raw>this is an english text</raw></KAF>
Try the webservice
* required
** When entering a value no response will be displayed in the browser.
Actions
- POST /
- Detect the language on the input argument. See arguments listing for more options.
- GET /
- Show this page
Arguments
The webservice takes the following arguments:
* required
- text*
- The input text
- kaf [true | false]
- Output a KAF file with the language in the xml:lang attribute and the text in the raw tag
- Use the extended language list instead of the standard languages
- callbacks
-
You can provide a list of callback urls. If you provide callback urls
the language identification will run as a background job and a callback
with the results will be performed (POST) to the first url in the callback
list. The other urls in callback list will be provided in the "callbacks"
argument.
Using callback you can chain together several OpeNER webservices in
one call. The first, will call the second, which will call the third, etc.
See for more information the
webservice documentation online.
- error_callback
- URL to notify if errors occur in the background process. The error
callback will do a POST with the error message in the 'error' field.