Beispiel #1
0
        static void Main(string[] args)
        {
            string refString = "abcdefghijklmnop";
            string hypString = "abbcxefxhxjkllmnp";
            MED    med       = new MED();

            med.Run(refString, hypString);
        }
Beispiel #2
0
        private string CompareFile(string refFilePath, string hypFilePath, string folderName)
        {
            string refString = File.ReadAllText(refFilePath).Replace("[XXX]", string.Empty);
            string hypString = File.ReadAllText(hypFilePath).Replace("[XXX]", string.Empty);
            MED    med       = new MED();

            med.Run(refString, hypString);
            string refFileName = refFilePath.Split('\\').Last();
            string hypFileName = hypFilePath.Split('\\').Last();

            return(folderName + "\t" + refFileName + "\t" + hypFileName + "\t"
                   + med.INS + "\t" + med.DEL + "\t" + med.SUB + "\t"
                   + med.ERR + "\t" + med.REF + "\t" + (med.ErrorRate * 100).ToString("0.00"));
        }