diff --git a/.env.enc b/.env.enc index d0c31ac54..02c838857 100644 Binary files a/.env.enc and b/.env.enc differ diff --git a/examples/language_translation_v2.py b/examples/language_translation_v2.py deleted file mode 100644 index c66e56598..000000000 --- a/examples/language_translation_v2.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -import json -from watson_developer_cloud import LanguageTranslationV2 - -# Language translation was deprecated use Language Translator. - -language_translation = LanguageTranslationV2( - username='YOUR SERVICE USERNAME', - password='YOUR SERVICE PASSWORD') - -# create new custom model -# with open('../resources/language_translator_model.tmx', 'rb') as custom_model: -# print(json.dumps(language_translator.create_model( -# base_model_id='en-fr', name='test_glossary', forced_glossary=custom_model), indent=2)) - -print(json.dumps(language_translation.get_models(), indent=2)) - -print(json.dumps(language_translation.get_model('en-es-conversational'), indent=2)) - -# delete custom model -# print(json.dumps(language_translator.delete_model('13860c86-ec3f-4e60-8cbe-3ef0048f92af'), indent=2)) - -print(json.dumps(language_translation.translate('Hola, cómo estás? €', source='es', target='en'), indent=2, - ensure_ascii=False)) - -print(json.dumps(language_translation.translate('Messi is the best ever', model_id='en-es-conversational'), indent=2)) - -print(json.dumps(language_translation.identify('Hello how are you?'), indent=2)) - -print(json.dumps(language_translation.get_identifiable_languages(), indent=2))