示例#1
0
 internal NISTAlign_2(NISTAlign nistalign)
 {
     this_0 = nistalign;
 }
示例#2
0
        public static void main(string[] args)
        {
            NISTAlign nistalign = new NISTAlign(true, true);

            System.Exception ex4 = null;
            try
            {
                BufferedReader bufferedReader  = new BufferedReader(new InputStreamReader(new FileInputStream(args[0])));
                BufferedReader bufferedReader2 = new BufferedReader(new InputStreamReader(new FileInputStream(args[1])));
                try
                {
                    for (;;)
                    {
                        string text  = bufferedReader.readLine();
                        string text2 = bufferedReader2.readLine();
                        if (text == null)
                        {
                            break;
                        }
                        if (text2 == null)
                        {
                            break;
                        }
                        nistalign.align(text, text2);
                        nistalign.printNISTSentenceSummary();
                    }
                }
                catch (IOException)
                {
                }
            }
            catch (System.Exception ex2)
            {
                ex4 = ex2;
                goto IL_80;
            }
            goto IL_85;
IL_80:
            System.Exception ex5 = ex4;
            goto IL_A6;
IL_85:
            System.Exception ex8 = null;
            try
            {
                nistalign.printNISTTotalSummary();
            }
            catch (System.Exception ex6)
            {
                ex8 = ex6;
                goto IL_A0;
            }
            return;

IL_A0:
            ex5 = ex8;
IL_A6:
            java.lang.System.err.println(ex5);
            Throwable.instancehelper_printStackTrace(ex5);
            [email protected]();
            [email protected]("Usage: align <reference file> <hypothesis file>");
            [email protected]();
        }