From cd9bf8cc9c234b4038490b8e8782a24c3fae4ede Mon Sep 17 00:00:00 2001 From: Jeffrey Stylos Date: Tue, 6 Dec 2016 17:05:06 -0500 Subject: [PATCH] removing deprecated language translation example --- .env.enc | Bin 2480 -> 2304 bytes examples/language_translation_v2.py | 30 ---------------------------- 2 files changed, 30 deletions(-) delete mode 100644 examples/language_translation_v2.py diff --git a/.env.enc b/.env.enc index d0c31ac547f1ef88efe8591cdeb28ebacf5e5170..02c8388571f4d2dbbf66cb4b193d96c647543e12 100644 GIT binary patch literal 2304 zcmV+b3IF!X0hq2byWX6uK()bRw|C#X>xDWWJMRmh`uR68MCJgsYl&0Kep6yic<2@Y z{TH5JuI+AC!~Ib)P@+Hz7hg%fP>t^zw-C2sSBy29zr7Z7Ox6E7P>CgiId%{2jt6gk zK@&-Y{)Sm)OSENQb?&*1j#kHC8u}rp72=nFMGQAVpyI-nZ+jI4XDZXt{}EvUf`e}b z7^!>urB0A$7!eyq(T;4E><}9`Q)Ym8q=O{o4~fBKaEo|wC^-=OS}g}S@`jU|x%0kg zB9L+S#d*-*8lL+cNu>76$Up=tr+&jkB)^5CIOg}(d+a8Yu!0gloD=8-X$bl$Ntadj zZWCy4;CUr0o8DSPVoT0C23>Le!i3h=3Z*8-jg8N`ea(K=aV72b9IfHLg`Wf+z54Rn z!!Ol;gL{!G(F6jEuxofG^gtz2mEcM76dau!bgO$4ka1K*?jf?o34P0=?<+<}OX`l@ zp9ME1B?sX3(n8^Z7Q^8yyKhIt=q>onO|cRSxWllvvCP1KiJkqRLs$wMQ7fg1iNrX(jDtg@}~2ruiZssy$6twJqw^9)<%ar^O~8h9=W8(n?$UORaD>zYgIuITT+ zX{ck58(X}L^4U2nRZx*lD(_=1=TAnYRJiJP zhr!RS>f>3VdXqd0pT&V*4TDC;@icgbg!JNAyir~cYCkb`Y%|+o`PT< ztBzo$7)oi`W!kG!@G4xj5#d=66L`8>_J_Y-1t@cz<2ZBU!AnE^f>Mgn-nM29@ z>~6k1Pr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1^)!Vt-)K(0j z0|${;v!sdq_IfjD;>O&wkNXfxDi33*Q<6Wq@%7`nYQQ5*0v=DUT(J@2Af>ndTSX%) z^`w_`nlkz|37TT*={eS`I42mH7&#*+qB%M40@iVQ)$Hjrn=)yAG2asYe1qfoQiHbc zQz5np+V4Ggan01cMW8zGq5GD%@^!ZQ+=4|GDb-i23)%LucICLsyUf?)908_0_?W4) z1;1;WA0J4v$nTsEErlzE#gYno_V?rb6>$?QoK0^X<$c@mHmWq+@$w us&EG%7zCxPbmE2L(QS}lwxqxnam@TG9bd5vwb>0!?LiMzRc^WxJno@=h}A^^ 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))