dist/multilabel/MulticlassSegmentation.js
function(dataset) {
		for ( var i = 0; i < dataset.length; ++i) {
			dataset[i] = {
				input: this.sampleToFeatures(dataset[i].input, this.featureExtractor),
				output: (Array.isArray(dataset[i].output)? dataset[i].output[0]: dataset[i].output)
			};
		}
		
		this.multiclassClassifier.trainBatch(dataset);
	}
function(dataset) {
		for ( var i = 0; i < dataset.length; ++i) {
			dataset[i] = {
				input: this.sampleToFeatures(dataset[i].input, this.featureExtractor),
				output: (Array.isArray(dataset[i].output)? dataset[i].output[0]: dataset[i].output)
			};
		}
		
		this.multiclassClassifier.trainBatch(dataset);
	}
Train the classifier with all the given documents.

@param dataset
an array with objects of the format:
{input: sample1, output: [class11, class12...]}