Translates a text

This task is provided by the system and is rather intended to create other powerful tasks than to be used by users. This task translate a text to a language you provide.

Input

This task allows to translate the input text from a source_language to a target_language.

As output translated is returned that contains the translated text.

The language code is represented by the ISO-639 code. The following languages are available: af, sq, am, ar, hy, as, ay, az, bm, eu, be, bn, bho, bs, bg, ca, ceb, zh, co, hr, cs, da, dv, doi, nl, en, eo, et, ee, fil, fi, fr, fy, gl, ka, de, el, gn, gu, ht, ha, haw, he oder iw, hi, hmn, hu, is, ig, ilo, id, ga, it, ja, jv oder jw, kn, kk, km, rw, gom, ko, kri, ku, ckb, ky, lo, la, lv, ln, lt, lg, lb, mk, mai, mg, ms, ml, mt, mi, mr, mni-Mtei, lus, mn, my, ne, no, ny, or, om, ps, fa, pl, pt, pa, qu, ro, ru, sm, sa, gd, nso, sr, st, sn, sd, si, sk, sl, so, es, su, sw, sv, tl, tg, ta, tt, te, th, ti, ts, tr, tk, ak, uk, ur, ug, uz, vi, cy, xh, yi, yo, zu.

The model is completely free and can be used as fair use.

[1.0.0]:
Second release
VersionAI ModelCreatedLink
1.0.0intern_translator28.03.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 to translate): The text input
  • source_language (Source Language): The language the text is translated from
  • target_language (Target Language): The language the text is translated to
  • Call the REST API by cURL
    curl -v -H "Authorization: Bearer PERSONAL_ACCESS_TOKEN" https://api.anysolve.ai/rest/v1/intern-translation-free/1.0.0?text=Ein%20Haus%20auf%20einem%20Feld&source_language=auto&target_language=en
  • 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('intern-translation-free','1.0.0', {'text': 'Ein Haus auf einem Feld', 'source_language': 'auto', 'target_language': 'en'})
    print(res)
  • Coming soon: Within AnySolve ChatComplete prompts you can use the following command to execute the task:
    /run('intern-translation-free','1.0.0', text='Ein Haus auf einem Feld', source_language='auto', target_language='en')