LanguageTranslatorCreateModel Method |
Uploads a TMX glossary file on top of a domain to customize a translation 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 public bool CreateModel(
LanguageTranslatorSuccessCallback<TranslationModel> successCallback,
LanguageTranslatorFailCallback failCallback,
string baseModelId,
string customModelName,
string forcedGlossaryFilePath = null,
string parallelCorpusFilePath = null,
string monolingualCorpusFilePath = null,
Dictionary<string, Object> customData = null
)
Parameters
- successCallback
- Type: IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2LanguageTranslatorSuccessCallbackTranslationModel
The success callback. - failCallback
- Type: IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2LanguageTranslatorFailCallback
The fail callback. - baseModelId
- Type: SystemString
Specifies the domain model that is used as the base for the training. To see current supported domain models, use the GET /v2/models parameter.. - customModelName
- Type: SystemString
The model name. Valid characters are letters, numbers, -, and _. No spaces. - forcedGlossaryFilePath (Optional)
- Type: SystemString
A TMX file with your customizations. The customizations in the file completely overwrite the domain data translation, including high frequency or high confidence phrase translations. You can upload only one glossary with a file size less than 10 MB per call. - parallelCorpusFilePath (Optional)
- Type: SystemString
A TMX file that contains entries that are treated as a parallel corpus instead of a glossary. - monolingualCorpusFilePath (Optional)
- Type: SystemString
A UTF-8 encoded plain text file that is used to customize the target language model. - customData (Optional)
- Type: System.Collections.GenericDictionaryString, Object
User defined custom string data.
Return Value
Type:
BooleanTrue if the call succeeded, false if the call fails.
See Also