This class wraps the Language Translation service. Language Translation Service
More...
|
delegate void | GetModelsCallback (TranslationModels models, string customData=null) |
| Callback for GetModels() method. More...
|
|
delegate void | GetModelCallback (TranslationModel model, string customData=null) |
| Callback for GetModel() method. More...
|
|
delegate void | GetLanguagesCallback (Languages languages, string customData=null) |
| Callback for GetLanguages() method. More...
|
|
delegate void | IdentifyCallback (string languages, string customData=null) |
| Callback for Identify() method. More...
|
|
delegate void | TranslateCallback (Translations translation, string customData=null) |
| Callback for Translate() method. More...
|
|
| LanguageTranslation (Credentials credentials) |
|
bool | GetTranslation (string text, string model_id, TranslateCallback callback) |
| Translate the provided text using the specified model. More...
|
|
bool | GetTranslation (string text, string source, string target, TranslateCallback callback) |
| Translate the provided text using the specified source and target. More...
|
|
bool | GetModels (GetModelsCallback callback, string sourceFilter=null, string targetFilter=null, TypeFilter defaults=TypeFilter.ALL) |
| Retrieve the translation models with optional filters. More...
|
|
bool | GetModel (string model_id, GetModelCallback callback) |
| Get a specific model by it's ID. More...
|
|
bool | GetLanguages (GetLanguagesCallback callback) |
| This function returns a list to the callback of all identifiable languages. More...
|
|
bool | Identify (string text, IdentifyCallback callback) |
| Identifies a language from the given text. More...
|
|
string | GetServiceID () |
| <exclude> More...
|
|
|
string | Url [get, set] |
| Gets and sets the endpoint URL for the service. More...
|
|
Credentials | Credentials [get, set] |
| Gets and sets the credentials of the service. Replace the default endpoint if endpoint is defined. More...
|
|
This determines the types of models to return with GetModels.
Enumerator |
---|
DEFAULT |
Default types
|
NON_DEFAULT |
Non-Default types
|
ALL |
All types are returned.
|
IBM.Watson.DeveloperCloud.Services.LanguageTranslation.v2.LanguageTranslation.LanguageTranslation |
( |
Credentials |
credentials | ) |
|
|
inline |
bool IBM.Watson.DeveloperCloud.Services.LanguageTranslation.v2.LanguageTranslation.GetLanguages |
( |
GetLanguagesCallback |
callback | ) |
|
|
inline |
This function returns a list to the callback of all identifiable languages.
- Parameters
-
callback | The callback to invoke with a Language array, null on error. |
- Returns
- Returns true if the request was submitted.
delegate void IBM.Watson.DeveloperCloud.Services.LanguageTranslation.v2.LanguageTranslation.GetLanguagesCallback |
( |
Languages |
languages, |
|
|
string |
customData = null |
|
) |
| |
bool IBM.Watson.DeveloperCloud.Services.LanguageTranslation.v2.LanguageTranslation.GetModel |
( |
string |
model_id, |
|
|
GetModelCallback |
callback |
|
) |
| |
|
inline |
Get a specific model by it's ID.
- Parameters
-
- Returns
delegate void IBM.Watson.DeveloperCloud.Services.LanguageTranslation.v2.LanguageTranslation.GetModelCallback |
( |
TranslationModel |
model, |
|
|
string |
customData = null |
|
) |
| |
bool IBM.Watson.DeveloperCloud.Services.LanguageTranslation.v2.LanguageTranslation.GetModels |
( |
GetModelsCallback |
callback, |
|
|
string |
sourceFilter = null , |
|
|
string |
targetFilter = null , |
|
|
TypeFilter |
defaults = TypeFilter.ALL |
|
) |
| |
|
inline |
Retrieve the translation models with optional filters.
- Parameters
-
callback | The callback to invoke with the array of models. |
sourceFilter | Optional source language filter. |
targetFilter | Optional target language filter. |
defaults | Controls if we get default, non-default, or all models. |
- Returns
- Returns a true on success, false if it failed to submit the request.
delegate void IBM.Watson.DeveloperCloud.Services.LanguageTranslation.v2.LanguageTranslation.GetModelsCallback |
( |
TranslationModels |
models, |
|
|
string |
customData = null |
|
) |
| |
string IBM.Watson.DeveloperCloud.Services.LanguageTranslation.v2.LanguageTranslation.GetServiceID |
( |
| ) |
|
|
inline |
bool IBM.Watson.DeveloperCloud.Services.LanguageTranslation.v2.LanguageTranslation.GetTranslation |
( |
string |
text, |
|
|
string |
model_id, |
|
|
TranslateCallback |
callback |
|
) |
| |
|
inline |
Translate the provided text using the specified model.
- Parameters
-
text | The text to translate. |
model_id | The ID of the model to use. |
callback | The callback to receive the translated text. |
- Returns
- Returns true on success.
bool IBM.Watson.DeveloperCloud.Services.LanguageTranslation.v2.LanguageTranslation.GetTranslation |
( |
string |
text, |
|
|
string |
source, |
|
|
string |
target, |
|
|
TranslateCallback |
callback |
|
) |
| |
|
inline |
Translate the provided text using the specified source and target.
- Parameters
-
text | The text to translate. |
source | The ID of the source language. |
target | The ID of the target language. |
callback | The callback to receive the translated text. |
- Returns
- Returns true on success.
bool IBM.Watson.DeveloperCloud.Services.LanguageTranslation.v2.LanguageTranslation.Identify |
( |
string |
text, |
|
|
IdentifyCallback |
callback |
|
) |
| |
|
inline |
Identifies a language from the given text.
- Parameters
-
text | The text sample to ID. |
callback | The callback to receive the results. |
- Returns
delegate void IBM.Watson.DeveloperCloud.Services.LanguageTranslation.v2.LanguageTranslation.IdentifyCallback |
( |
string |
languages, |
|
|
string |
customData = null |
|
) |
| |
delegate void IBM.Watson.DeveloperCloud.Services.LanguageTranslation.v2.LanguageTranslation.TranslateCallback |
( |
Translations |
translation, |
|
|
string |
customData = null |
|
) |
| |
Callback for Translate() method.
- Parameters
-
Credentials IBM.Watson.DeveloperCloud.Services.LanguageTranslation.v2.LanguageTranslation.Credentials |
|
getset |
Gets and sets the credentials of the service. Replace the default endpoint if endpoint is defined.
string IBM.Watson.DeveloperCloud.Services.LanguageTranslation.v2.LanguageTranslation.Url |
|
getset |
Gets and sets the endpoint URL for the service.
The documentation for this class was generated from the following file: