Skip to content

Commit d1ec209

Browse files
Hsaylorapaparazzi0329
authored andcommitted
fix(nlc): add deprecation warning
add deprecation warning to NLC constructor fix #9624
1 parent b111b79 commit d1ec209

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ibm_watson/natural_language_classifier_v1.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,15 @@ def classify(self, classifier_id: str, text: str,
8484
:rtype: DetailedResponse with `dict` result representing a `Classification` object
8585
"""
8686

87+
print(
88+
"""
89+
On 9 August 2021, IBM announced the deprecation of the Natural Language Classifier service.
90+
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.
91+
Existing instances will be supported until 8 August 2022. Any instance that still exists on that date will be deleted.
92+
For more information, see https://cloud.ibm.com/docs/natural-language-classifier?topic=natural-language-classifier-migrating
93+
"""
94+
)
95+
8796
if classifier_id is None:
8897
raise ValueError('classifier_id must be provided')
8998
if text is None:

0 commit comments

Comments
 (0)