// test driver
        public static void MainTest(string[] args)
        {
            if (args.Length > 0)
            {
                Console.WriteLine("Usage: java LeadingDigitSplitter");
                Environment.Exit(0);
            }

            // init
            string inFile = "../data/Misc/informalExpression.data";
            Dictionary <string, string> informalExpMap = InformalExpHandler.GetInformalExpMapFromFile(inFile);

            // init
            TestProcessWord(informalExpMap);
            TestProcess(informalExpMap);
        }
Beispiel #2
0
        // test driver
        public static void MainTest(string[] args)
        {
            string inFile = "../data/Misc/informalExpression.data";

            if (args.Length == 1)
            {
                inFile = args[0];
            }
            else if (args.Length > 0)
            {
                Console.WriteLine("Usage: java InformalExpHandler <inFile>");
                Environment.Exit(0);
            }

            // init
            Dictionary <string, string> informalExpMap = InformalExpHandler.GetInformalExpMapFromFile(inFile);

            // test
            TestProcessWord(informalExpMap);
            TestProcess(informalExpMap);
        }