Python-basierte Englisch-Persisch-Übersetzung mit GroupDocs.Translation Cloud-API
GroupDocs.Translation Cloud API ist ein mächtiges Tool, das die automatische Übersetzung von Dokumenten in verschiedene Sprachen ermöglicht. Die API bietet eine einfache Integration in Python-Anwendungen und bietet umfangreiche Unterstützung für die Übersetzung von Englisch nach Persisch. Mit nur wenigen Codezeilen können Entwickler mithilfe dieser API Dokumente in Echtzeit übersetzen und so die Kommunikation über Sprachbarrieren hinweg erleichtern. Mit einer zuverlässigen Infrastruktur und präzisen Übersetzungsalgorithmen ist GroupDocs.Translation Cloud API die ideale Lösung für Unternehmen, die ihre Dokumente schnell und effizient in verschiedene Sprachen übersetzen möchten.
// Get your App SID, App Key and Storage Name at https://dashboard.groupdocs.cloud (free registration is required).
public TextResponse TranslateText(Configuration conf)
{
string pair = "en-fa";
string text = "Python-basierte Englisch-Persisch-Übersetzung mit GroupDocs.Translation Cloud-API";
TranslationApi api = new TranslationApi(conf);
TranslateTextRequest request = api.CreateTextRequest(pair, text);
TextResponse response = api.RunTranslationTextTask(request);
return response;
}
# Get your App SID, App Key and Storage Name at https://dashboard.groupdocs.cloud (free registration is required).
curl -X POST "https://api.groupdocs.cloud/v1.0/translation/text" \
-H "Authorization: Bearer TOKEN" \
-H "Content-Type: application/json" \
-d '[{"pair":"en-fa", "text":"Python-basierte Englisch-Persisch-Übersetzung mit GroupDocs.Translation Cloud-API"}]'
# and response
{ "status":"ok", "message":"Text translated successfully", "translation":"....." }
// Get your App SID, App Key and Storage Name at https://dashboard.groupdocs.cloud (free registration is required).
import com.GroupDocs.translate.api.*;
import com.GroupDocs.translate.Configuration;
private static void setUpConfig() throws Exception {
Configuration.setAPP_SID("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX");
Configuration.setAPI_KEY("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
}
static String TranslateText() {
pair = "en-fa";
text = "Python-basierte Englisch-Persisch-Übersetzung mit GroupDocs.Translation Cloud-API";
TextInfo textInfo = new TextInfo(pair, text);
TranslationTextRequest translationTextRequest = new TranslationTextRequest(TextInfo.toString());
TranslationTextResponse translateTextResponse = TranslationApi.TranslateText(translationTextRequest);
return translateTextResponse.translation;
}
# Get your App SID, App Key and Storage Name at https://dashboard.groupdocs.cloud (free registration is required).
from groupdocstranslationcloud.configuration import Configuration
from groupdocstranslationcloud.api.translation_api import TranslationApi
from groupdocstranslationcloud.models.translate_text import TranslateText
from groupdocstranslationcloud.models.translate_document import TranslateDocument
# enter valid apiKey and appSid
configuration = Configuration(apiKey="", appSid="")
api = TranslationApi(configuration)
pair = "en-fa"
text = "Python-basierte Englisch-Persisch-Übersetzung mit GroupDocs.Translation Cloud-API"
translator = TranslateText(pair, text)
response = translator.to_string()
res_text = api.post_translate_text(response)
print(res_text.translation)
Features
Übersetzungsfunktion
Die GruppeDocs.Translation Cloud bietet eine Funktion zur Übersetzung von Texten, Dokumenten und anderen Inhalten von Englisch nach Persisch.
Einfache Integration
Es ist leicht, die GruppeDocs.Translation Cloud in Python zu integrieren, um die Übersetzungsfunktion zu nutzen. Es stehen verschiedene SDKs und Codebeispiele zur Verfügung.
Unterstützung mehrerer Dateiformate
Die Cloud-Plattform unterstützt die Übersetzung von verschiedenen Dateiformaten, wie z.B. Text, Word-Dokumente, PDFs und mehr, von Englisch nach Persisch.
Automatisierung von Übersetzungsprozessen
Mit der GruppeDocs.Translation Cloud können Übersetzungsprozesse automatisiert werden, um große Mengen von Inhalten effizient zu übersetzen.