Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(nlc): add a deprecation message #1185

Merged
merged 4 commits into from
Sep 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@
* @see <a href="https://cloud.ibm.com/docs/natural-language-classifier">Natural Language
* Classifier</a>
*/

/**
* @deprecated 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.
* (https://github.com/watson-developer-cloud/java-sdk/tree/master#natural-language-classifier-deprecation).
*/
@Deprecated
public class NaturalLanguageClassifier extends BaseService {

public static final String DEFAULT_SERVICE_NAME = "natural_language_classifier";
Expand Down Expand Up @@ -100,6 +108,12 @@ public NaturalLanguageClassifier(String serviceName, Authenticator authenticator
super(serviceName, authenticator);
setServiceUrl(DEFAULT_SERVICE_URL);
this.configureService(serviceName);

System.err.println(
"On 9 August 2021, IBM announced the deprecation of the Natural Language Classifier service."
+ "\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."
+ "\nExisting instances will be supported until 8 August 2022. Any instance that still exists on that date will be deleted."
+ "\n(https://github.com/watson-developer-cloud/java-sdk/tree/master#natural-language-classifier-deprecation).");
}

/**
Expand Down