Page History
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
Code Block | ||
---|---|---|
| ||
https://your_host_name:443/virtual_directory/api? |
# | Parameter | Possible |
---|
values | Default |
---|
value | Description | |||
---|---|---|---|---|
1 | text |
| A piece of text which will be sent for language detection. | |
2 | format |
| json | The response format for output data. |
Response
...
structure
# | Name | Description |
---|---|---|
1 | LangShortCode | A language short code. |
2 | LangName | A full name of a detected language. |
3 | Proportion | The proportion ration of the detected language in the text. |
Example 1.1
Code Block | ||
---|---|---|
| ||
http(s)https://localhost:2880/your_host_name:443/virtual_directory/api?cmd=detect_language&text=This sampl text demonstrates the work of the detect language command of Web API service. |
...
Command: detect_language
Text: This sampl text demonstrates the work of the detect language command of Web API service.
Request Responseresponse:
Code Block | ||||
---|---|---|---|---|
| ||||
{ "LangShortCode": "en_US", "LangName": "American English", "Proportion": 0.98 } |