コード例 #1
0
ファイル: Program.cs プロジェクト: Orekhov/SentenceBreaking
        static void Main(string[] args)
        {
            try
            {
                TextStorage ts = TextStorage.Instance;
                Console.WriteLine(" \n Text with all separators: ");
                ts.showTextWithSeparators(false);

                TextAnalyser ta = new FiltersAnalyser(ts, 1);
                ta.check();
                ta = new ExclusionsAnalyser(ts, -1);
                ta.check();

                Console.WriteLine(" \n\n Result: ");
                ts.showTextWithSeparators(true, ConsoleColor.DarkMagenta);
                Console.ReadLine();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: HandWang/SentenceBreaking
        static void Main(string[] args)
        {
            try
            {
                TextStorage ts = TextStorage.Instance;
                Console.WriteLine(" \n Text with all separators: ");
                ts.showTextWithSeparators(false);

                TextAnalyser ta = new FiltersAnalyser(ts, 1);
                ta.check();
                ta = new ExclusionsAnalyser(ts, -1);
                ta.check();

                Console.WriteLine(" \n\n Result: ");
                ts.showTextWithSeparators(true, ConsoleColor.DarkMagenta);
                Console.ReadLine();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }