Example #1
0
        /*public static void Test_CommandList()
         * {
         *  Console.WriteLine(CommandDictonary.GetCommandList().Count);
         *  foreach (KeyValuePair<string, string> item in CommandDictonary.GetCommandList())
         *  {
         *      Console.WriteLine("{0} : {1}", item.Key, item.Value);
         *  }
         * }*/

        public static void Test_Tokenisation()
        {
            Console.WriteLine("\n: Raw Input : ");
            Console.WriteLine(UserInput.GetRawInput());
            Console.WriteLine("\nCleaned Tokens");

            foreach (string line in UserInput.GetCleanedInputTokens())
            {
                Console.WriteLine(line);
            }

            Console.WriteLine("\nStemmed Tokens");
            foreach (string line in UserInput.GetStemmedInputTokens())
            {
                Console.WriteLine(line);
            }
        }
Example #2
0
        public ProcessCommands()
        {
            rawInput           = UserInput.GetRawInput();
            cleanedInputTokens = UserInput.GetCleanedInputTokens().Clone() as string[];
            stemmedInputTokens = UserInput.GetStemmedInputTokens().Clone() as string[];
            #region DEBUGGING PRINTOUTS of Variables.

            /*
             * Console.WriteLine("ProcessCommands Constructor");
             * Console.WriteLine("rawInput : " + rawInput);
             * foreach (string word in cleanedInputTokens)
             *  Console.WriteLine("cleanedInputTokens : " + word);
             * foreach (string word in stemmedInputTokens)
             *  Console.WriteLine("stemmedInputTokens : " + word);
             */
            //ProcessInputData(); // Moved to UserInputs.GetInput()
            //examine
            //Console.WriteLine("DEBUG 'examine': "+ CommandDictonary.actionsConstant["examine"]);
            //string Stemmed = TextUtils.StemWord.Stem("examine").Value;
            //Console.WriteLine("Stemmed Command : "+Stemmed);
            #endregion
        }