public void TestCase() { SpellingSuggestionsHandler handler = new SpellingSuggestionsHandler(); handler.Prepare("/Users/jrising/projects/virsona/github/data"); foreach (string sugg in handler.Handle("bufallo")) Console.WriteLine(sugg); Console.WriteLine("Next"); foreach (string sugg in handler.Handle("buffalo")) Console.WriteLine(sugg); handler.Destroy(); }
public void TestCase() { SpellingSuggestionsHandler handler = new SpellingSuggestionsHandler(); handler.Prepare("/Users/jrising/projects/virsona/github/data"); foreach (string sugg in handler.Handle("bufallo")) { Console.WriteLine(sugg); } Console.WriteLine("Next"); foreach (string sugg in handler.Handle("buffalo")) { Console.WriteLine(sugg); } handler.Destroy(); }
public SpellingBeeWordComparer(string datadir) { cache = new Dictionary<string, List<string>>(); handler = new SpellingSuggestionsHandler(); handler.Prepare(datadir); }