GeezerVison is showing github.com — fix(nlc): add a deprecation message (#1185) · SvetSkills/java-sdk@b460cdd
File tree
Expand file treeCollapse file tree
Open diff view settings
natural-language-classifier/src/main/java/com/ibm/watson/natural_language_classifier/v1
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: natural-language-classifier/src/main/java/com/ibm/watson/natural_language_classifier/v1/NaturalLanguageClassifier.java +14Lines changed: 14 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
52 | 52 | * @see <a href="https://cloud.ibm.com/docs/natural-language-classifier">Natural Language |
53 | 53 | * Classifier</a> |
54 | 54 | */ |
| 55 | + |
| 56 | + /** |
| 57 | + * @deprecated On 9 August 2021, IBM announced the deprecation of the Natural Language Classifier service. |
| 58 | + * 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. |
| 59 | + * Existing instances will be supported until 8 August 2022. Any instance that still exists on that date will be deleted. |
| 60 | + * (https://github.com/watson-developer-cloud/java-sdk/tree/master#natural-language-classifier-deprecation). |
| 61 | + */ |
| 62 | +@Deprecated |
55 | 63 | public class NaturalLanguageClassifier extends BaseService { |
56 | 64 |
|
57 | 65 | public static final String DEFAULT_SERVICE_NAME = "natural_language_classifier"; |
@@ -100,6 +108,12 @@ public NaturalLanguageClassifier(String serviceName, Authenticator authenticator |
100 | 108 | super(serviceName, authenticator); |
101 | 109 | setServiceUrl(DEFAULT_SERVICE_URL); |
102 | 110 | this.configureService(serviceName); |
| 111 | + |
| 112 | + System.err.println( |
| 113 | + "On 9 August 2021, IBM announced the deprecation of the Natural Language Classifier service." |
| 114 | + + "\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." |
| 115 | + + "\nExisting instances will be supported until 8 August 2022. Any instance that still exists on that date will be deleted." |
| 116 | + + "\n(https://github.com/watson-developer-cloud/java-sdk/tree/master#natural-language-classifier-deprecation)."); |
103 | 117 | } |
104 | 118 |
|
105 | 119 | /** |
|