IBMWatsonLanguageTranslator

FREE
By dimas
Updated 8 months ago
Translation
8.2/10
Popularity Score
239ms
Latency
100%
Success Rate

IBMWatsonLanguageTranslator API Overview

Connect to the The IBM Watson Language Translator API to translate text from one language to another. Test an API call and export the code snippet here.

Pricing is free until a certain character threshold. Read more about the IBM Watson Language Translator API pricing: https://www.ibm.com/watson/developercloud/language-translator.html

Contact API Provider
star-blueRate

IBMWatsonLanguageTranslator

IBMWatsonLanguageTranslator Package

  • Domain: IBM
  • Credentials: username, password

How to get credentials:

  1. Register to IBM Bluemix Console
  2. After log in choose Language Translator from services
  3. Connect Language Translator to your application at the left side, choose pricing plan and click on 'Create' button at the bottom of the page.
  4. Click on 'Service Credentials' tab to see your username and password.

IBMWatsonLanguageTranslator.translate

Translates input text from the source language to the target language.

Field Type Description
username credentials Username obtained from IBM Bluemix.
password credentials Password obtained from IBM Bluemix.
source String Used in combination with target as an alternative way to select the model for translation. When target and source are set, and model_id is not set, the system choose a default model with the right language pair to translate (usually the model based on the news domain).
target String Translation target language in 2 or 5 letter language code. Should use 2 letter codes except for when clarifying between multiple supported languages. When model_id is used directly, it will override the source-target language combination. Also, when a 2 letter language code is used, and no suitable default is found (such as “zh”), it returns an error.
text String Input text in UTF-8 encoding. Multiple text query parameters indicate multiple input paragraphs, and a single string is valid input.

IBMWatsonLanguageTranslator.translateByModelId

Translates input text from the source language to the target language.

Field Type Description
username credentials Username obtained from IBM Bluemix.
password credentials Password obtained from IBM Bluemix.
modelId String The unique modelid of the translation model used to translate text. The modelid inherently specifies source, target language, and domain. If the model_id is specified, there is no need for the source and target parameters, and the values will be ignored.
text String Input text in UTF-8 encoding. Multiple text query parameters indicate multiple input paragraphs, and a single string is valid input.

IBMWatsonLanguageTranslator.getIdentifiableLanguages

Return the list of languages it can detect.

Field Type Description
username credentials Username obtained from IBM Bluemix.
password credentials Password obtained from IBM Bluemix.

IBMWatsonLanguageTranslator.identifyLanguage

Identify the language in which a text is written.

Field Type Description
username credentials Username obtained from IBM Bluemix.
password credentials Password obtained from IBM Bluemix.
text String Input text in UTF-8 format.

IBMWatsonLanguageTranslator.getModels

Lists available models for the Language translator service with option to filter by source or by target language.

Field Type Description
username credentials Username obtained from IBM Bluemix.
password credentials Password obtained from IBM Bluemix.
default Boolean Valid values are leaving it unset, 'true' and 'false'. When 'true', it filters models to return the default model or models. When 'false' it returns the non-default model or models. If not set, all models (default and non-default) return.
source String Define with target. Filters models by source language.
target String Define with source. Filters models by target language.

IBMWatsonLanguageTranslator.createModel

Uploads a TMX glossary file on top of a domain to customize a translation model.Depending on the size of the file, training can range from minutes for a glossary to several hours for a large parallel corpus. Glossary files must be less than 10 MB. The cumulative file size of all uploaded glossary and corpus files is limited to 250 MB.

Field Type Description
username credentials Username obtained from IBM Bluemix.
password credentials Password obtained from IBM Bluemix.
baseModelId String Specifies the domain model that is used as the base for the training. To see current supported domain models, use getModels method.
name String The model name. Valid characters are letters, numbers, -, and _. No spaces.
forcedGlossary File A TMX file with your customizations. Anything that is specified in this file completely overwrites the domain data translation. You can upload only one glossary with a file size less than 10 MB per call.
parallelCorpus File A TMX file that contains entries that are treated as a parallel corpus instead of a glossary.
monolingualCorpus File A UTF-8 encoded plain text file that is used to customize the target language model.

IBMWatsonLanguageTranslator.deleteModel

Deletes trained translation models.

Field Type Description
username credentials Username obtained from IBM Bluemix.
password credentials Password obtained from IBM Bluemix.
modelId String The model identifier.

IBMWatsonLanguageTranslator.getModelDetails

Returns information, including training status, about a specified translation model.

Field Type Description
username credentials Username obtained from IBM Bluemix.
password credentials Password obtained from IBM Bluemix.
modelId String The model identifier.

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication