public class NaturalLanguageClassifier extends WatsonService
| Modifier and Type | Field and Description |
|---|---|
static String |
LANGUAGE_EN |
VERSION| 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,
File 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.
|
configureHttpClient, execute, executeRequest, executeWithoutResponse, getApiKey, getEndPoint, getName, getToken, setApiKey, setAuthentication, setDefaultHeaders, setEndPoint, setUsernameAndPassword, toStringpublic 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, File trainingData)
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)Classifierpublic void deleteClassifier(String classifierId)
classifierId - the classifier IDClassifierpublic Classifier getClassifier(String classifierId)
classifierId - the classifier IDClassifierpublic Classifiers getClassifiers()
ClassifierCopyright © 2015–2016. All rights reserved.