Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.8k
Translate GA#3650
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Translate GA #3650
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # Copyright 2017 Google Inc. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| """Google Cloud Translation API wrapper.""" | ||
| from google.cloud.translate_v2 import __version__ | ||
| from google.cloud.translate_v2.client import Client | ||
| # These constants are essentially deprecated; strings should be used instead. | ||
| # They are imported here for backwards compatibility. | ||
| from google.cloud.translate_v2.client import BASE | ||
| from google.cloud.translate_v2.client import NMT | ||
| __all__ = ( | ||
| '__version__', | ||
| 'BASE', | ||
| 'Client', | ||
| 'NMT', | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -35,7 +35,7 @@ | ||
| 'include_package_data': True, | ||
| 'zip_safe': False, | ||
| 'classifiers': [ | ||
| 'Development Status :: 4 - Beta', | ||
| 'Development Status :: 5 - Production/Stable', | ||
| 'Intended Audience :: Developers', | ||
| 'License :: OSI Approved :: Apache Software License', | ||
| 'Operating System :: OS Independent', | ||
| @@ -56,7 +56,7 @@ | ||
| setup( | ||
| name='google-cloud-translate', | ||
| version='0.25.0', | ||
| version='1.0.0', | ||
This comment was marked as spam.Sorry, something went wrong. Uh oh!There was an error while loading. Please reload this page.
This comment was marked as spam.Sorry, something went wrong. Uh oh!There was an error while loading. Please reload this page. | ||
| description='Python Client for Google Cloud Translation API', | ||
| long_description=README, | ||
| namespace_packages=[ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -56,7 +56,7 @@ def test_translate(self): | ||
| values = ['hvala ti', 'dankon', | ||
| 'Me llamo Jeff', 'My name is Jeff'] | ||
| translations = Config.CLIENT.translate( | ||
| values, target_language='de', model=translate.NMT) | ||
| values, target_language='de', model='nmt') | ||
This comment was marked as spam.Sorry, something went wrong. Uh oh!There was an error while loading. Please reload this page.
This comment was marked as spam.Sorry, something went wrong. Uh oh!There was an error while loading. Please reload this page. | ||
| self.assertEqual(len(values), len(translations)) | ||
| self.assertEqual( | ||
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.