System.out.println("Training Accuracy before training = " + memm.averageTokenAccuracy(lists[0]));
System.out.println("Testing Accuracy before training = " + memm.averageTokenAccuracy(lists[1]));
System.out.println("Training...");
memmt.train(lists[0], 1);
System.out.println("Training Accuracy after training = " + memm.averageTokenAccuracy(lists[0]));
System.out.println("Testing Accuracy after training = " + memm.averageTokenAccuracy(lists[1]));
System.out.println("Training results:");
for (int i = 0; i < lists[0].size(); i++) {
Instance inst = lists[0].get(i);
Sequence input = (Sequence) inst.getData ();
Sequence output = memm.transduce (input);