Click or drag to resize

NaturalLanguageClassifierTrainClassifier Method

Train a new classifier.

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 TrainClassifier(
	NaturalLanguageClassifierSuccessCallback<Classifier> successCallback,
	NaturalLanguageClassifierFailCallback failCallback,
	string classifierName,
	string language,
	string trainingData,
	Dictionary<string, Object> customData = null
)

Parameters

successCallback
Type: IBM.Watson.DeveloperCloud.Services.NaturalLanguageClassifier.v1NaturalLanguageClassifierSuccessCallbackClassifier
The success callback.
failCallback
Type: IBM.Watson.DeveloperCloud.Services.NaturalLanguageClassifier.v1NaturalLanguageClassifierFailCallback
The fail callback.
classifierName
Type: SystemString
A name to give the classifier.
language
Type: SystemString
Language of the classifier.
trainingData
Type: SystemString
CSV training data.
customData (Optional)
Type: System.Collections.GenericDictionaryString, Object

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

Return Value

Type: Boolean
Returns true if training data was submitted correctly.
See Also