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

cc.mallet.util.InstanceListPrinter 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.

The newest version!
package cc.mallet.util;

import cc.mallet.types.*;
import java.io.*;

public class InstanceListPrinter {

	public static void main(String[] args) throws Exception {
		InstanceList instances = InstanceList.load(new File(args[0]));

		for (Instance instance: instances) {
			System.out.println("Name: " + instance.getName());
			System.out.println("Target: " + instance.getTarget());
			System.out.println("Data: " + instance.getData());
		}
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy