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