Esempio n. 1
0
        static void Main(string[] args)
        {
            string[] inputs =
            {
                File.OpenText("../../../Input/input.txt").ReadToEnd(),
                File.OpenText("../../../Input/pride-and-prejudice.txt").ReadToEnd(),
                File.OpenText("../../../Input/test.txt").ReadToEnd()
            };

            TermFrequency m = new TermFrequency();

            foreach (string input in inputs)
            {
                m.ProcessInput(input);

                Console.WriteLine();
                Console.ReadKey();
            }
        }
        static void Main(string[] args)
        {
            string[] inputs =
            {
                File.OpenText("../../../Input/input.txt").ReadToEnd(),
                File.OpenText("../../../Input/pride-and-prejudice.txt").ReadToEnd(),
                File.OpenText("../../../Input/test.txt").ReadToEnd()
            };

            TermFrequency m = new TermFrequency();

            foreach (string input in inputs)
            {
                m.ProcessInput(input);

                Console.WriteLine();
                Console.ReadKey();
            }
        }