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