Click or drag to resize

NaturalLanguageClassifierClassify Method

Classifies the given text, invokes the callback with the results.

Namespace:  IBM.Watson.DeveloperCloud.Services.NaturalLanguageClassifier.v1
Assembly:  unity-documentation (in unity-documentation.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public bool Classify(
	NaturalLanguageClassifierSuccessCallback<ClassifyResult> successCallback,
	NaturalLanguageClassifierFailCallback failCallback,
	string classifierId,
	string text,
	Dictionary<string, Object> customData = null
)

Parameters

successCallback
Type: IBM.Watson.DeveloperCloud.Services.NaturalLanguageClassifier.v1NaturalLanguageClassifierSuccessCallbackClassifyResult
The success callback.
failCallback
Type: IBM.Watson.DeveloperCloud.Services.NaturalLanguageClassifier.v1NaturalLanguageClassifierFailCallback
The fail callback.
classifierId
Type: SystemString
The ID of the classifier to use.
text
Type: SystemString
The text to classify.
customData (Optional)
Type: System.Collections.GenericDictionaryString, Object

[Missing <param name="customData"/> documentation for "M:IBM.Watson.DeveloperCloud.Services.NaturalLanguageClassifier.v1.NaturalLanguageClassifier.Classify(IBM.Watson.DeveloperCloud.Services.NaturalLanguageClassifier.v1.NaturalLanguageClassifier.SuccessCallback{IBM.Watson.DeveloperCloud.Services.NaturalLanguageClassifier.v1.ClassifyResult},IBM.Watson.DeveloperCloud.Services.NaturalLanguageClassifier.v1.NaturalLanguageClassifier.FailCallback,System.String,System.String,System.Collections.Generic.Dictionary{System.String,System.Object})"]

Return Value

Type: Boolean
Returns false if we failed to submit the request.
See Also