Esempio n. 1
0
    public static void Main(string[] args)
    {
        if (!File.Exists("big.txt"))
        {
            Console.Error.WriteLine("Cannot find big.txt.");
            return;
        }

        var sample = File.ReadAllText("big.txt");
        var corpus = new Corpus(sample);

        corrector = new SpellCorrect(corpus);

        ReadFromStdIn();
    }
Esempio n. 2
0
    public static void Main(string[] args)
    {
        if (!File.Exists("big.txt"))
        {
            Console.Error.WriteLine("Cannot find big.txt.");
            return;
        }

        var sample = File.ReadAllText("big.txt");
        var corpus = new Corpus(sample);
        corrector = new SpellCorrect(corpus);

        ReadFromStdIn();
    }