ibm_watson 2.1.1 → 2.1.2

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
  SHA256:
3
- metadata.gz: 4855d1f0d0409f6fcf35241392746eeebf914f291324de8800aa887f9e8ee96c
4
- data.tar.gz: 70ca55c6305cd18b96830799be213fdd2aa33d35252cf7016cb4582e6eafe29c
3
+ metadata.gz: '08786135f16d0697bb35f5f5b4148b7a88e2bbe5556d1a4df985c53838ac6d94'
4
+ data.tar.gz: b25c954a235340297d6651557cea70c1d25de4961b51e25e1399952e683eaf8c
5
5
  SHA512:
6
- metadata.gz: 4465338e55529801fb063053aac73c41270d83e258a6bd9f0005f4bdaa511786cfdea38e1b5419d4f276382980f7f1aeb4be376f6ca099266e5d1cf46086f10f
7
- data.tar.gz: 38beeb9ca5a85c78d0419cbae8868d0cfb2f4200ea3e7ee34f897e86b314049977e790d0302d5ebba268bb869ba2f83bdd586f97ad0cf76f1fbaf93308cd491a
6
+ metadata.gz: 20108693a6c776d391c4bb4fc909c5420e3cc1692a9823e415d40f7d1ec5561bce9ed79a320c3e32e9b3dfa63d1ddc4a1e7783d36a0cd428712f55299bb556b6
7
+ data.tar.gz: 66d2fc62d900fd8d5afb4ea90825c5d4af96f91addbca78ff241a48e669587bd66fc4776a7d206a4b124e6d7a5d60aa001b27c3d8d506042adb779b7166106d0
data/README.md CHANGED
@@ -14,31 +14,12 @@
14
14
 
15
15
  Ruby gem to quickly get started with the various [IBM Watson][wdc] services.
16
16
 
17
- <details>
18
- <summary>Table of Contents</summary>
19
-
20
- * [Before you begin](#before-you-begin)
21
- * [Installation](#installation)
22
- * [Examples](#examples)
23
- * [Discovery v2 only on CP4D](#discovery-v2-only-on-cp4d)
24
- * [Running in IBM Cloud](#running-in-ibm-cloud)
25
- * [Authentication](#authentication)
26
- * [Getting credentials](#getting-credentials)
27
- * [IAM](#iam)
28
- * [Username and password](#username-and-password)
29
- * [Sending requests asynchronously](#sending-requests-asynchronously)
30
- * [Sending request headers](#sending-request-headers)
31
- * [Parsing HTTP response info](#parsing-http-response-info)
32
- * [Configuring the HTTP client](#configuring-the-http-client)
33
- * [Using Websockets](#using-websockets)
34
- * [Ruby version](#ruby-version)
35
- * [Contributing](#contributing)
36
- * [License](#license)
37
- * [Featured Projects](#featured-projects)
38
-
39
- </details>
40
-
41
17
  ## Announcements
18
+ ### Natural Language Classifier deprecation
19
+ On 9 August 2021, IBM announced the deprecation of the Natural Language Classifier service. The service will no longer be available from 8 August 2022. As of 9 September 2021, you will not be able to create new instances. Existing instances will be supported until 8 August 2022. Any instance that still exists on that date will be deleted.
20
+
21
+ As an alternative, we encourage you to consider migrating to the Natural Language Understanding service on IBM Cloud that uses deep learning to extract data and insights from text such as keywords, categories, sentiment, emotion, and syntax, along with advanced multi-label text classification capabilities, to provide even richer insights for your business or industry. For more information, see [Migrating to Natural Language Understanding](https://cloud.ibm.com/docs/natural-language-classifier?topic=natural-language-classifier-migrating).
22
+
42
23
  ### Support for 2.7 ruby
43
24
  To support 2.7 the http gem dependency is updated to 4.4.0. Since it conflicted with the dependency in the ruby-sdk-core that gem was also updated. Using 2.0.2 or above ruby sdk will require a core of 1.1.3 or above.
44
25
 
@@ -84,10 +65,6 @@ require "ibm_watson"
84
65
 
85
66
  The [examples][examples] folder has basic and advanced examples. The examples within each service assume that you already have [service credentials](#getting-credentials).
86
67
 
87
- ## Discovery v2 only on CP4D
88
-
89
- Discovery v2 is only available on Cloud Pak for Data.
90
-
91
68
  ## Running in IBM Cloud
92
69
 
93
70
  If you run your app in IBM Cloud, the SDK gets credentials from the [`VCAP_SERVICES`][vcap_services] environment variable.
@@ -16,7 +16,13 @@
16
16
  #
17
17
  # IBM OpenAPI SDK Code Generator Version: 3.31.0-902c9336-20210504-161156
18
18
  #
19
- # IBM Watson&trade; Natural Language Classifier uses machine learning algorithms to
19
+ # IBM Watson&trade; Natural Language Classifier is discontinued. On 9 August 2021, IBM announced the deprecation of
20
+ # the Natural Language Classifier service. The service will no longer be available from 8 August 2022.
21
+ # As of 9 September 2021, you will not be able to create new instances. Existing instances will be supported until
22
+ # 8 August 2022. Any instance that still exists on that date will be deleted.
23
+ # {: deprecated}
24
+ #
25
+ # Natural Language Classifier uses machine learning algorithms to
20
26
  # return the top matching predefined classes for short text input. You create and train a
21
27
  # classifier to connect predefined classes to example texts so that the service can apply
22
28
  # those classes to new inputs.
@@ -45,6 +51,7 @@ module IBMWatson
45
51
  # @option args service_name [String] The name of the service to configure. Will be used as the key to load
46
52
  # any external configuration, if applicable.
47
53
  def initialize(args = {})
54
+ warn "On 9 August 2021, IBM announced the deprecation of the Natural Language Classifier service. The service will no longer be available from 8 August 2022. As of 9 September 2021, you will not be able to create new instances. Existing instances will be supported until 8 August 2022. Any instance that still exists on that date will be deleted. For more information, see https://github.com/watson-developer-cloud/ruby-sdk#natural-language-classifier-deprecation."
48
55
  @__async_initialized__ = false
49
56
  defaults = {}
50
57
  defaults[:service_url] = DEFAULT_SERVICE_URL
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IBMWatson
4
- VERSION = "2.1.1"
4
+ VERSION = "2.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ibm_watson
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Nussbaum
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-02 00:00:00.000000000 Z
11
+ date: 2021-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby