Package cc.mallet.fst.MEMM

Examples of cc.mallet.fst.MEMM.State



  public void printInstanceLists ()
  {
    for (int i = 0; i < memm.numStates(); i++) {
      State state = (State) memm.getState (i);
      InstanceList training = state.trainingSet;
      System.out.println ("State "+i+" : "+state.getName());
      if (training == null) {
        System.out.println ("No data");
        continue;
      }
      for (int j = 0; j < training.size(); j++) {
        Instance inst = training.get (j);
        System.out.println ("From : "+state.getName()+" To : "+inst.getTarget());
        System.out.println ("Instance "+j);
        System.out.println (inst.getTarget());
        System.out.println (inst.getData());
      }
    }
View Full Code Here

TOP

Related Classes of cc.mallet.fst.MEMM.State

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.