Click or drag to resize

LanguageTranslatorGetTranslation Method (LanguageTranslatorSuccessCallbackTranslations, LanguageTranslatorFailCallback, String, String, DictionaryString, Object)

Translate the provided text using the specified model.

Namespace:  IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2
Assembly:  unity-documentation (in unity-documentation.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public bool GetTranslation(
	LanguageTranslatorSuccessCallback<Translations> successCallback,
	LanguageTranslatorFailCallback failCallback,
	string text,
	string model_id,
	Dictionary<string, Object> customData = null
)

Parameters

successCallback
Type: IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2LanguageTranslatorSuccessCallbackTranslations
The success callback.
failCallback
Type: IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2LanguageTranslatorFailCallback
The fail callback.
text
Type: SystemString
The text to translate.
model_id
Type: SystemString
The ID of the model to use.
customData (Optional)
Type: System.Collections.GenericDictionaryString, Object

[Missing <param name="customData"/> documentation for "M:IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2.LanguageTranslator.GetTranslation(IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2.LanguageTranslator.SuccessCallback{IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2.Translations},IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2.LanguageTranslator.FailCallback,System.String,System.String,System.Collections.Generic.Dictionary{System.String,System.Object})"]

Return Value

Type: Boolean
Returns true on success.
See Also