Language Detection

Identifies the language used in the provided text.

Input

Description

The purpose of this task is to identify the language used in the provided text.

Applications

The language detection task is useful for determining the language used in input text.

How to use the task

Input the text into the provided field. Initiate the task to analyze the text and determine its language. The result will be the identified language of the text.

[1.0.0]:
First version
VersionAI ModelCreatedLink
1.0.022.07.2023

API

The REST API allows you to call the tool with the same costs as when running the tool. Please generate an Personal access token before using the REST API.

Parameters

  • text (Text): Please enter the text you want to analyze for language detection.
  • Call the REST API by cURL
    curl -v -H "Authorization: Bearer PERSONAL_ACCESS_TOKEN" https://api.anysolve.ai/rest/v1/u-806494eb1fbfb39f-language-detection/1.0.0?text=Das%20Haus%20ist%20rot
  • Install the package with pip
    python3 -m pip install anysolve
  • Run in python3
    import os
    from anysolve import AnySolve
    anysolve_token = os.environ.get('ANYSOLVE_PERSONAL_ACCESS_TOKEN') # Resolve your personal access token here
    client = AnySolve(anysolve_token)
    res = client.run('u-806494eb1fbfb39f-language-detection','1.0.0', {'text': 'Das Haus ist rot'})
    print(res)
  • Coming soon: Within AnySolve ChatComplete prompts you can use the following command to execute the task:
    /run('u-806494eb1fbfb39f-language-detection','1.0.0', text='Das Haus ist rot')