
cc.mallet.pipe.iterator.EmptyInstanceIterator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mallet Show documentation
Show all versions of mallet 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.
package cc.mallet.pipe.iterator;
import java.util.Iterator;
import cc.mallet.types.Instance;
public class EmptyInstanceIterator implements Iterator {
public boolean hasNext() { return false; }
public Instance next () { throw new IllegalStateException ("This iterator never has any instances."); }
public void remove () { throw new IllegalStateException ("This iterator does not support remove()."); }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy