Skip to content

Commit b8f3355

Browse files
committed
fix(nlc): add deprecation warning
add deprecation warning to NLC constructor fix #9627
1 parent 5956c9f commit b8f3355

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Scripts/Services/NaturalLanguageClassifier/V1/NaturalLanguageClassifierService.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ namespace IBM.Watson.NaturalLanguageClassifier.V1
3535
{
3636
public partial class NaturalLanguageClassifierService : BaseService
3737
{
38+
[System.Obsolete("On 9 August 2021, IBM announced the deprecation of the Natural Language Classifier service." +
39+
"\nThe service will no longer be available from 8 August 2022. As of 9 September 2021, you will not be able to create new instances." +
40+
"\nExisting instances will be supported until 8 August 2022. Any instance that still exists on that date will be deleted." +
41+
"\nFor more information, see https://cloud.ibm.com/docs/natural-language-classifier?topic=natural-language-classifier-migrating")]
42+
3843
private const string defaultServiceName = "natural_language_classifier";
3944
private const string defaultServiceUrl = "https://api.us-south.natural-language-classifier.watson.cloud.ibm.com";
4045

0 commit comments

Comments
 (0)