public AutoCorrectTestResults(SuggestionMethods autoCompleteMethod, IEnumerable <SpellingCorrectionTestResult> results, long memorySize) { AutoCompleteMethod = autoCompleteMethod; Results = results; MemorySize = memorySize; }
public DictionaryService(SuggestionMethods suggestionMethod) { this.suggestionMethod = suggestionMethod; MigrateLegacyDictionaries(); LoadDictionary(); //Subscribe to changes in the keyboard language to reload the dictionary Settings.Default.OnPropertyChanges(settings => settings.KeyboardAndDictionaryLanguage).Subscribe(_ => LoadDictionary()); }
public SpellingCorrectionTester(SuggestionMethods SuggestionMethod, Languages language) { switch (SuggestionMethod) { case SuggestionMethods.NGram: managedSuggestion = new NGramAutoComplete(); break; case SuggestionMethods.Basic: managedSuggestion = new BasicAutoComplete(); break; case SuggestionMethods.Presage: managedSuggestion = new PresageSuggestions(); break; default: throw new ArgumentOutOfRangeException("SuggestionMethod", SuggestionMethod, null); } Configure(language); }