public class NaturalLanguageClassifier extends WatsonService
| Modifier and Type | Field and Description |
|---|---|
static String |
LANGUAGE_EN
The Constant LANGUAGE_EN.
|
FORWARD_SLASH| Constructor and Description |
|---|
NaturalLanguageClassifier()
Instantiates a new Natural Language Classifier service.
|
| Modifier and Type | Method and Description |
|---|---|
Classification |
classify(String classifierId,
String text)
Returns classification information for a classifier on a phrase.
|
Classifier |
createClassifier(String name,
String language,
List<TrainingData> trainingData)
Sends data to create and train a classifier, and returns information about the new
classifier.
|
void |
deleteClassifier(String classifierId)
Deletes a classifier.
|
Classifier |
getClassifier(String classifierId)
Retrieves a classifier.
|
Classifiers |
getClassifiers()
Retrieves the list of classifiers for the user.
|
String |
toString() |
execute, executeRequest, executeWithoutResponse, getApiKey, getDefaultContentType, getDefaultRequestParams, getEndPoint, getHttpClient, getThreadSafeClient, setApiKey, setAuthentication, setEndPoint, setUsernameAndPasswordpublic static final String LANGUAGE_EN
public NaturalLanguageClassifier()
public Classification classify(String classifierId, String text)
classifierId - The classifier idtext - The submitted phrase to classifypublic Classifier createClassifier(String name, String language, List<TrainingData> trainingData)
name - the classifier namelanguage - IETF primary language for the classifiertrainingData - The set of questions and their "keys" used to adapt a system to a domain
(the ground truth)Classifierpublic void deleteClassifier(String classifierId)
classifierId - the classifier IDClassifierpublic Classifier getClassifier(String classifierId)
classifierId - the classifier IDClassifierpublic Classifiers getClassifiers()
Classifierpublic String toString()
toString in class WatsonServiceCopyright © 2015. All rights reserved.