google-cloud-translate 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1bde62209f68a59b16ce7f3ace99c5044005946a
4
- data.tar.gz: 5a261c85781c7451ed215c003c7a06142fba1962
3
+ metadata.gz: baa4ef9d4e57fa267c4a87b3dc644a845f18f576
4
+ data.tar.gz: bbc46f7fe1a421d614cec10f86feed394e3de2b3
5
5
  SHA512:
6
- metadata.gz: 148d9fd304b8c317d87235e9c8d3e2f06af8a90df523009271b4704b6b5a8ee24cf9aae2d678f919580c045791335464122b9c7734517e1ed4648d5d6cc2fe2d
7
- data.tar.gz: 8776c503f0895b610b5f83b1d48808e14f9c2f22e5bcb3a475fd99857edd86096bb19369cfb0feaa0cfec380fd2b048599973a24b1d0d5c3eb141f4a5b9f1deb
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. The neural machine translation model (`nmt`) is billed
111
- # as a premium edition feature. If this is set to `base`, then the
112
- # service will return translation using the current standard model.
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
- # Acceptable values are:
116
- #
117
- # * `nmt` - Use the neural machine translation model
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 used by the service to perform the translation. When this is
74
- # set to `nmt`, the translation was performed using premium neural
75
- # machine translation model. If it is not set or model is set to `base`,
76
- # then the translation was done using standard model. In almost all
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
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Translate
19
- VERSION = "1.0.0"
19
+ VERSION = "1.0.1"
20
20
  end
21
21
  end
22
22
  end
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.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-06-29 00:00:00.000000000 Z
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