static void Main(String[] args) { /* * One time operation to load labeled data(alignments) and * sequence data(training data, in the form of previous, current, next character sequence along with label) */ GenerateLabeledData.loadData(); Database db = new Database(); DataTable dt = db.readLabeledData(); db.writeSequenceData(dt); }
//Loads labaled data from scan6i1970 to labeledData public static void loadData() { Database db = new Database(); DataTable dt = db.readInputData(); foreach (DataRow row in dt.Rows) { string[] alignments = NeedlemanWunsch.findSimScore(row["tesseractv"].ToString(), row["dictionary"].ToString()); db.writeLabeledData(alignments[0], alignments[1]); } }