@@ -0,0 +1,859 @@
+/*%0A * See the file %22LICENSE%22 for the full license governing this code.%0A */%0Apackage sdp.tools;%0A%0Aimport sdp.graph.Graph;%0Aimport sdp.io.GraphReader;%0Aimport sdp.io.GraphWriter;%0A%0A/**%0A *%0A * @author Marco Kuhlmann %3Cmarco.kuhlmann@liu.se%3E%0A */%0Apublic class Splitter %7B%0A%0A    public static void main(String%5B%5D args) throws Exception %7B%0A        GraphReader reader = new GraphReader(args%5B0%5D);%0A        GraphWriter writerTrain = new GraphWriter(args%5B1%5D);%0A        GraphWriter writerDevel = new GraphWriter(args%5B2%5D);%0A        Graph graph;%0A        while ((graph = reader.readGraph()) != null) %7B%0A            if (graph.id.substring(2, 4).equals(%2220%22)) %7B%0A                writerDevel.writeGraph(graph);%0A            %7D else %7B%0A                writerTrain.writeGraph(graph);%0A            %7D%0A        %7D%0A        reader.close();%0A        writerTrain.close();%0A        writerDevel.close();%0A    %7D%0A%7D%0A

Add a tool to split the training data into train/dev data according to the recommendations in our README.