
cc.mallet.classify.ClassifierEnsembleTrainer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jcore-mallet-2.0.9 Show documentation
Show all versions of jcore-mallet-2.0.9 Show documentation
MALLET is a Java-based package for statistical natural language processing, document classification, clustering, topic modeling, information extraction, and other machine learning applications to text.
The newest version!
package cc.mallet.classify;
import cc.mallet.types.InstanceList;
/* Copyright (C) 2005 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensource.org. For further
information, see the file `LICENSE' included with this distribution. */
/**
* @author Andrew McCallum
*/
public class ClassifierEnsembleTrainer extends ClassifierTrainer
{
Classifier[] classifiers;
ClassifierEnsemble classifier;
public ClassifierEnsemble getClassifier () { return classifier; }
public ClassifierEnsembleTrainer (Classifier[] classifiers)
{
this.classifiers = (Classifier[]) classifiers.clone();
}
public ClassifierEnsemble train (InstanceList trainingSet)
{
//if (initialClassifier != null) throw new IllegalArgumentException("initialClassifier not yet supported");
// Make an instance list, with features being the outputs of the ensemble classifiers
//return null;
throw new IllegalStateException ("Not yet implemented.");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy