Package io

Examples of io.NewsgroupsReader


public class Newsgroups {

  public static void main(String[] args) throws IOException {
    // read in the data.
    ArrayList<ClassificationInstance> allData = (new NewsgroupsReader(
        new Alphabet(), new Alphabet())).readFile(args[0]);
    StaticUtils.shuffle(allData, 0);
    // randomly split data into training and testing part
    ArrayList<ClassificationInstance>[] tmp = StaticUtils.split(allData,
        (10));
View Full Code Here

TOP

Related Classes of io.NewsgroupsReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.