Method
predictLanguage POST
Copy POST

Predicts the language of the text

Arguments:

REQUIRED KEY TYPE DESCRIPTION
Yes deploymentToken str The deployment token used to authenticate access to created deployments. This token is only authorized to predict on deployments within this project, making it safe to embed this model in an application or website.
Yes deploymentId str A unique string identifier for a deployment created under the project.
Yes queryData str The input string to detect.
Note: The arguments for the API methods follow camelCase but for Python SDK underscore_case is followed.

Response:

KEY TYPE DESCRIPTION
success Boolean true if the call succeeded, false if there was an error
dict

Exceptions:

TYPE WHEN
DataNotFoundError

deploymentId is not found.

Language: