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, toString
public 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)Classifier
public void deleteClassifier(String classifierId)
classifierId
- the classifier IDClassifier
public Classifier getClassifier(String classifierId)
classifierId
- the classifier IDClassifier
public Classifiers getClassifiers()
Classifier
Copyright © 2015–2016. All rights reserved.