Package io

Examples of io.PartOfSpeechReader


public class PartOfSpeech {

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

TOP

Related Classes of io.PartOfSpeechReader

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.