All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cc.mallet.pipe.iterator.EmptyInstanceIterator Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 2.0.12
Show newest version
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