Construct a NaturalLanguageClassifierV1 object.
Name | Type | Attribute | Description |
---|---|---|---|
options |
UserOptions |
Options for the service. |
Classify a phrase.
Returns label information for the input. The status must be Available
before you can use the classifier to
classify text.
Name | Type | Attribute | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
ClassifyParams |
The parameters to send to the service. Properties
|
|||||||||||||||||
callback |
Callback<Classification> | Optional |
Classify multiple phrases.
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.
Name | Type | Attribute | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
ClassifyCollectionParams |
The parameters to send to the service. Properties
|
|||||||||||||||||
callback |
Callback<ClassificationCollection> | Optional |
Create classifier.
Sends data to create and train a classifier and returns information about the new classifier.
Name | Type | Attribute | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
CreateClassifierParams |
The parameters to send to the service. Properties
|
|||||||||||||||||
callback |
Callback<Classifier> | Optional |
Delete classifier.
Name | Type | Attribute | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
DeleteClassifierParams |
The parameters to send to the service. Properties
|
|||||||||||||
callback |
Callback<Empty> | Optional |
Get the instance of the authenticator set on the service.
Get information about a classifier.
Returns status and other information about a classifier.
Name | Type | Attribute | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
GetClassifierParams |
The parameters to send to the service. Properties
|
|||||||||||||
callback |
Callback<Classifier> | Optional |
List classifiers.
Returns an empty array if no classifiers are available.
Name | Type | Attribute | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
params |
ListClassifiersParams | Optional |
Properties
|
||||||||
callback |
Callback<ClassifierList> | Optional |
Set the service URL to send requests to.
Name | Type | Attribute | Description |
---|---|---|---|
url |
string |
The base URL for the service. |
Generated using TypeDoc
IBM Watson™ Natural Language Classifier uses machine learning algorithms to return the top matching predefined classes for short text input. You create and train a classifier to connect predefined classes to example texts so that the service can apply those classes to new inputs. interfaces