Skip to content

Commit 5b269ae

Browse files
Hsaylorapaparazzi0329
authored andcommitted
fix(nlc): add deprecation warning
add deprecation warning to NLC constructor fix #9622
1 parent 3038543 commit 5b269ae

File tree

1 file changed

+5
-0
lines changed
  • natural-language-classifier

1 file changed

+5
-0
lines changed

natural-language-classifier/v1.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ class NaturalLanguageClassifierV1 extends BaseService {
4747
* @returns {NaturalLanguageClassifierV1}
4848
*/
4949
constructor(options: UserOptions) {
50+
console.warn(`On 9 August 2021, IBM announced the deprecation of the Natural Language Classifier service.
51+
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.
52+
Existing instances will be supported until 8 August 2022. Any instance that still exists on that date will be deleted.
53+
For more information, see https://cloud.ibm.com/docs/natural-language-classifier?topic=natural-language-classifier-migrating`)
54+
5055
options = options || {};
5156

5257
if (!options.serviceName) {

0 commit comments

Comments
 (0)