google-cloud-translate 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: baa4ef9d4e57fa267c4a87b3dc644a845f18f576
|
4
|
+
data.tar.gz: bbc46f7fe1a421d614cec10f86feed394e3de2b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b604d808b98dbf4c6dbbdb2a6b73ddeacfa288f04a19cb4d17ec7acd7822950a74906169329108f08f5c077a11461dd0fab381ce14e43c60c66ef72be68b044e
|
7
|
+
data.tar.gz: eae5a477536f242613f890a04eab7952792104b08932ee0758170d4a76bed6c2653fe12dd160e9de39f67edb334810eec76a1506e2b0469d88a41efd0eff58c0
|
@@ -34,17 +34,6 @@ module Google
|
|
34
34
|
# with translated text back. You don't need to extract your source text or
|
35
35
|
# reassemble the translated content.
|
36
36
|
#
|
37
|
-
# ## Premium Edition
|
38
|
-
#
|
39
|
-
# Using the `model` parameter, you can set the model used by the service to
|
40
|
-
# perform the translation. The neural machine translation model (`nmt`) is
|
41
|
-
# billed as a premium edition feature. Because neural machine translation is
|
42
|
-
# computationally significantly more resource intensive than the standard
|
43
|
-
# model, the price for the premium edition is higher than the standard
|
44
|
-
# edition. If the `model` parameter not set or is set to `base`, then the
|
45
|
-
# service will return translation using the current standard model and
|
46
|
-
# standard edition pricing.
|
47
|
-
#
|
48
37
|
# ## Authenticating
|
49
38
|
#
|
50
39
|
# Like other Cloud Platform services, Google Cloud Translation API supports
|
@@ -107,15 +107,13 @@ module Google
|
|
107
107
|
# `:text` and `:html`. This is optional. The Translation API default
|
108
108
|
# is `:html`.
|
109
109
|
# @param [String] model The model used by the service to perform the
|
110
|
-
# translation.
|
111
|
-
#
|
112
|
-
#
|
113
|
-
# The default value is `base`.
|
110
|
+
# translation. Can be either `base` to use the Phrase-Based Machine
|
111
|
+
# Translation (PBMT) model, or `nmt` to use the Neural Machine
|
112
|
+
# Translation (NMT) model. The default is `nmt`.
|
114
113
|
#
|
115
|
-
#
|
116
|
-
#
|
117
|
-
#
|
118
|
-
# * `base` - Use the current standard model
|
114
|
+
# If the model is `nmt`, and the requested language translation pair
|
115
|
+
# is not supported for the NMT model, then the request is translated
|
116
|
+
# using the PBMT model.
|
119
117
|
#
|
120
118
|
# @param [String] cid The customization id for translate. This is
|
121
119
|
# optional.
|
@@ -70,18 +70,10 @@ module Google
|
|
70
70
|
alias_method :source, :from
|
71
71
|
|
72
72
|
##
|
73
|
-
# The model
|
74
|
-
#
|
75
|
-
#
|
76
|
-
#
|
77
|
-
# cases, the model type in response should match the model type
|
78
|
-
# requested. However, in some limited situations this might not be the
|
79
|
-
# case. In these cases, the request had `nmt` parameter, but the
|
80
|
-
# response has `base` set or model is not returned. This happens when
|
81
|
-
# neural translation did not give a satisfactory translation and we
|
82
|
-
# completed the translation using the standard model. If this happens,
|
83
|
-
# you will charged at the standard edition rate and not at the premium
|
84
|
-
# rate.
|
73
|
+
# The translation model. Can be either `base` for the Phrase-Based
|
74
|
+
# Machine Translation (PBMT) model, or `nmt` for the Neural Machine
|
75
|
+
# Translation (NMT) model. If you did not include a model parameter with
|
76
|
+
# your request, then this field is not included in the response.
|
85
77
|
#
|
86
78
|
# @return [String]
|
87
79
|
attr_reader :model
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-translate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Moore
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-07-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-core
|