package mpqareader; import se.lth.cs.nlp.nlputils.core.*; import se.lth.cs.nlp.nlputils.depgraph.*; import se.lth.cs.nlp.depsrl.format.*; import java.util.*; import java.io.*; public class ToLines { public static void main(String[] argv) { try { System.out.println("DUMMY"); Scanner sc = new Scanner(new File(argv[0])); Triple> g = CoNLL2008Format.readNextGraph(sc); while(g != null) { StringBuilder sb = new StringBuilder(); for(int i = 1; i < g.first.nodes.length; i++) { if(i > 1) sb.append(" "); sb.append(g.first.nodes[i].word); } System.out.println(sb); g = CoNLL2008Format.readNextGraph(sc); } } catch(Exception e) { e.printStackTrace(); } } }