public class NaturalLanguageClassifier extends WatsonService
defaultHeaders, MESSAGE_CODE, MESSAGE_ERROR, skipAuthentication, VERSION| Constructor and Description | 
|---|
| NaturalLanguageClassifier()Instantiates a new `NaturalLanguageClassifier`. | 
| NaturalLanguageClassifier(java.lang.String username,
                         java.lang.String password)Instantiates a new `NaturalLanguageClassifier` with username and password. | 
| Modifier and Type | Method and Description | 
|---|---|
| ServiceCall<Classification> | classify(ClassifyOptions classifyOptions)Classify a phrase. | 
| ServiceCall<Classification> | classify(java.lang.String classifierId,
        java.lang.String text)Classify. | 
| ServiceCall<Classifier> | createClassifier(CreateClassifierOptions createClassifierOptions)Create classifier. | 
| ServiceCall<Classifier> | createClassifier(java.lang.String name,
                java.lang.String language,
                java.io.File trainingData)Create classifier. | 
| ServiceCall<java.lang.Void> | deleteClassifier(DeleteClassifierOptions deleteClassifierOptions)Delete classifier. | 
| ServiceCall<java.lang.Void> | deleteClassifier(java.lang.String classifierId)Delete classifier. | 
| ServiceCall<Classifier> | getClassifier(GetClassifierOptions getClassifierOptions)Get information about a classifier. | 
| ServiceCall<Classifier> | getClassifier(java.lang.String classifierId)Get information about a classifier. | 
| ServiceCall<ClassifierList> | getClassifiers()List classifiers. | 
| ServiceCall<ClassifierList> | listClassifiers()List classifiers. | 
| ServiceCall<ClassifierList> | listClassifiers(ListClassifiersOptions listClassifiersOptions)List classifiers. | 
configureHttpClient, createServiceCall, getApiKey, getEndPoint, getName, getPassword, getToken, getUsername, processServiceCall, setApiKey, setAuthentication, setDefaultHeaders, setDefaultHeaders, setEndPoint, setSkipAuthentication, setUsernameAndPassword, toStringpublic NaturalLanguageClassifier()
public NaturalLanguageClassifier(java.lang.String username,
                                 java.lang.String password)
username - the usernamepassword - the passwordpublic ServiceCall<Classification> classify(ClassifyOptions classifyOptions)
classifyOptions - the ClassifyOptions containing the options for the callServiceCall with a response type of Classificationpublic ServiceCall<Classifier> createClassifier(CreateClassifierOptions createClassifierOptions)
createClassifierOptions - the CreateClassifierOptions containing the options for the callServiceCall with a response type of Classifierpublic ServiceCall<java.lang.Void> deleteClassifier(DeleteClassifierOptions deleteClassifierOptions)
deleteClassifierOptions - the DeleteClassifierOptions containing the options for the callServiceCall with a response type of Voidpublic ServiceCall<Classifier> getClassifier(GetClassifierOptions getClassifierOptions)
getClassifierOptions - the GetClassifierOptions containing the options for the callServiceCall with a response type of Classifierpublic ServiceCall<ClassifierList> listClassifiers(ListClassifiersOptions listClassifiersOptions)
listClassifiersOptions - the ListClassifiersOptions containing the options for the callServiceCall with a response type of ClassifierListpublic ServiceCall<ClassifierList> listClassifiers()
ServiceCall with a response type of ClassifierListpublic ServiceCall<Classification> classify(java.lang.String classifierId, java.lang.String text)
classifierId - the classifier IDtext - the submitted phrase to classifypublic ServiceCall<Classifier> createClassifier(java.lang.String name, java.lang.String language, java.io.File trainingData) throws java.io.FileNotFoundException
name - the classifier namelanguage - IETF primary language for the classifier. for example: 'en'trainingData - the set of questions and their "keys" used to adapt a system to a domain (the ground truth)java.io.FileNotFoundException - if the file could not be foundpublic ServiceCall<java.lang.Void> deleteClassifier(java.lang.String classifierId)
classifierId - the classifier IDpublic ServiceCall<Classifier> getClassifier(java.lang.String classifierId)
classifierId - the classifier IDpublic ServiceCall<ClassifierList> getClassifiers()