API bindings for the Lilt REST API.
All URIs are relative to https://lilt.com/2
Method | HTTP request | Description |
---|---|---|
qa_check | GET /qa | Perform QA check |
QARuleMatches qa_check(target, trglang, source=source, srclang=srclang, memory_id=memory_id)
Perform QA check
Perform QA checks on a target string. Optionally, you can specify a source string for additional bilingual checks, e.g. number consistency.
configuration = lilt.Configuration( host = “https://lilt.com/2” )
configuration = lilt.Configuration( host = “https://lilt.com/2”, api_key = { ‘key’: ‘YOUR_API_KEY’ } )
configuration = lilt.Configuration( username = ‘YOUR_USERNAME’, password = ‘YOUR_PASSWORD’ )
with lilt.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = lilt.QAApi(api_client) target = ‘target_example’ # str | A target string to be checked. trglang = ‘trglang_example’ # str | An ISO 639-1 language code. source = ‘source_example’ # str | An optional source string. (optional) srclang = ‘srclang_example’ # str | An ISO 639-1 language code. (optional) memory_id = 56 # int | Any custom rules defined for this Memory will also be applied as part of the QA check. (optional)
try:
# Perform QA check
api_response = api_instance.qa_check(target, trglang, source=source, srclang=srclang, memory_id=memory_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling QAApi->qa_check: %s\n" % e) ```
configuration = lilt.Configuration( host = “https://lilt.com/2” )
configuration = lilt.Configuration( host = “https://lilt.com/2”, api_key = { ‘key’: ‘YOUR_API_KEY’ } )
configuration = lilt.Configuration( username = ‘YOUR_USERNAME’, password = ‘YOUR_PASSWORD’ )
with lilt.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = lilt.QAApi(api_client) target = ‘target_example’ # str | A target string to be checked. trglang = ‘trglang_example’ # str | An ISO 639-1 language code. source = ‘source_example’ # str | An optional source string. (optional) srclang = ‘srclang_example’ # str | An ISO 639-1 language code. (optional) memory_id = 56 # int | Any custom rules defined for this Memory will also be applied as part of the QA check. (optional)
try:
# Perform QA check
api_response = api_instance.qa_check(target, trglang, source=source, srclang=srclang, memory_id=memory_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling QAApi->qa_check: %s\n" % e) ```
Name | Type | Description | Notes |
---|---|---|---|
target | str | A target string to be checked. | |
trglang | str | An ISO 639-1 language code. | |
source | str | An optional source string. | [optional] |
srclang | str | An ISO 639-1 language code. | [optional] |
memory_id | int | Any custom rules defined for this Memory will also be applied as part of the QA check. | [optional] |
| Status code | Description | Response headers | |————-|————-|——————| 200 | A QARuleMatches object. | - | 0 | Unexpected error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]