Skip to content

Commit 4df86f3

Browse files
authored
Merge pull request #121 from watson-developer-cloud/nlc-deprecation
Add a Deprecation Message for Natural Language Classifier
2 parents af542b6 + 4f75b17 commit 4df86f3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/ibm_watson/natural_language_classifier_v1.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@
1616
#
1717
# IBM OpenAPI SDK Code Generator Version: 3.31.0-902c9336-20210504-161156
1818
#
19-
# IBM Watson™ Natural Language Classifier uses machine learning algorithms to
19+
# IBM Watson™ 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
2026
# return the top matching predefined classes for short text input. You create and train a
2127
# classifier to connect predefined classes to example texts so that the service can apply
2228
# those classes to new inputs.
@@ -45,6 +51,7 @@ class NaturalLanguageClassifierV1 < IBMCloudSdkCore::BaseService
4551
# @option args service_name [String] The name of the service to configure. Will be used as the key to load
4652
# any external configuration, if applicable.
4753
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."
4855
@__async_initialized__ = false
4956
defaults = {}
5057
defaults[:service_url] = DEFAULT_SERVICE_URL

0 commit comments

Comments
 (0)