public class NaturalLanguageClassifier
extends com.ibm.cloud.sdk.core.service.BaseService
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SERVICE_NAME |
static String |
DEFAULT_SERVICE_URL |
Constructor and Description |
---|
NaturalLanguageClassifier()
Constructs an instance of the `NaturalLanguageClassifier` client.
|
NaturalLanguageClassifier(com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Constructs an instance of the `NaturalLanguageClassifier` client.
|
NaturalLanguageClassifier(String serviceName)
Constructs an instance of the `NaturalLanguageClassifier` client.
|
NaturalLanguageClassifier(String serviceName,
com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Constructs an instance of the `NaturalLanguageClassifier` client.
|
Modifier and Type | Method and Description |
---|---|
com.ibm.cloud.sdk.core.http.ServiceCall<Classification> |
classify(ClassifyOptions classifyOptions)
Classify a phrase.
|
com.ibm.cloud.sdk.core.http.ServiceCall<ClassificationCollection> |
classifyCollection(ClassifyCollectionOptions classifyCollectionOptions)
Classify multiple phrases.
|
com.ibm.cloud.sdk.core.http.ServiceCall<Classifier> |
createClassifier(CreateClassifierOptions createClassifierOptions)
Create classifier.
|
com.ibm.cloud.sdk.core.http.ServiceCall<Void> |
deleteClassifier(DeleteClassifierOptions deleteClassifierOptions)
Delete classifier.
|
com.ibm.cloud.sdk.core.http.ServiceCall<Classifier> |
getClassifier(GetClassifierOptions getClassifierOptions)
Get information about a classifier.
|
com.ibm.cloud.sdk.core.http.ServiceCall<ClassifierList> |
listClassifiers()
List classifiers.
|
com.ibm.cloud.sdk.core.http.ServiceCall<ClassifierList> |
listClassifiers(ListClassifiersOptions listClassifiersOptions)
List classifiers.
|
public static final String DEFAULT_SERVICE_NAME
public static final String DEFAULT_SERVICE_URL
public NaturalLanguageClassifier()
public NaturalLanguageClassifier(com.ibm.cloud.sdk.core.security.Authenticator authenticator)
authenticator
- the Authenticator
instance to be configured for this clientpublic NaturalLanguageClassifier(String serviceName)
serviceName
- the service name to be used when configuring the client instancepublic NaturalLanguageClassifier(String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)
serviceName
- the service name to be used when configuring the client instanceauthenticator
- the Authenticator
instance to be configured for this clientpublic com.ibm.cloud.sdk.core.http.ServiceCall<Classification> classify(ClassifyOptions classifyOptions)
Returns label information for the input. The status must be `Available` before you can use the classifier to classify text.
classifyOptions
- the ClassifyOptions
containing the options for the callServiceCall
with a result of type Classification
public com.ibm.cloud.sdk.core.http.ServiceCall<ClassificationCollection> classifyCollection(ClassifyCollectionOptions classifyCollectionOptions)
Returns label information for multiple phrases. The status must be `Available` before you can use the classifier to classify text.
Note that classifying Japanese texts is a beta feature.
classifyCollectionOptions
- the ClassifyCollectionOptions
containing the options
for the callServiceCall
with a result of type ClassificationCollection
public com.ibm.cloud.sdk.core.http.ServiceCall<Classifier> createClassifier(CreateClassifierOptions createClassifierOptions)
Sends data to create and train a classifier and returns information about the new classifier.
createClassifierOptions
- the CreateClassifierOptions
containing the options for
the callServiceCall
with a result of type Classifier
public com.ibm.cloud.sdk.core.http.ServiceCall<ClassifierList> listClassifiers(ListClassifiersOptions listClassifiersOptions)
Returns an empty array if no classifiers are available.
listClassifiersOptions
- the ListClassifiersOptions
containing the options for the
callServiceCall
with a result of type ClassifierList
public com.ibm.cloud.sdk.core.http.ServiceCall<ClassifierList> listClassifiers()
Returns an empty array if no classifiers are available.
ServiceCall
with a result of type ClassifierList
public com.ibm.cloud.sdk.core.http.ServiceCall<Classifier> getClassifier(GetClassifierOptions getClassifierOptions)
Returns status and other information about a classifier.
getClassifierOptions
- the GetClassifierOptions
containing the options for the
callServiceCall
with a result of type Classifier
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteClassifier(DeleteClassifierOptions deleteClassifierOptions)
deleteClassifierOptions
- the DeleteClassifierOptions
containing the options for
the callServiceCall
with a void resultCopyright © 2021 IBM Cloud. All rights reserved.