watson_developer_cloud.language_translation_v2 module

The v2 Language Translation service (https://www.ibm.com/watson/developercloud/language-translation.html)

class LanguageTranslationV2(url='https://gateway.watsonplatform.net/language-translation/api', **kwargs)[source]

Bases: watson_developer_cloud.watson_service.WatsonService

default_url = 'https://gateway.watsonplatform.net/language-translation/api'
identify(text)[source]

Identifies the language of given source text

get_identifiable_languages()[source]
get_models(default=None, source=None, target=None)[source]

Get the available models for translation

create_model(base_model_id, name=None, forced_glossary=None, parallel_corpus=None, monolingual_corpus=None)[source]
get_model(model_id)[source]
delete_model(model_id)[source]
translate(text, source=None, target=None, model_id=None)[source]

Translates text from a source language to a target language