private IEnumerable <string> GetPhrases() { var preprocessor = new PreprocessorFactory().GetIPreprocessor(); var phrases = preprocessor.GetVariations(preprocessor.GetNormalizedPhrase(_searchPhrase)); return(phrases); }
public IRecognitionConfigurationBuilder AddPreprocessor(Type preprocessorType, Func <IPreprocessorConfigurationBuilder, IPreprocessorConfigurationBuilder> func = null) { if (preprocessorType == null) { throw new ArgumentNullException(nameof(preprocessorType)); } // ToDo testability? var manifest = PreprocessorFactory.GetManifest(preprocessorType); return(AddPreprocessor(manifest.Name, func)); }
public void Initialize() { IPreprocessorFactory factory = new PreprocessorFactory(); _preprocessor = (Preprocessor)factory.GetIPreprocessor(); }
public void Initialize() { IPreprocessorFactory factory = new PreprocessorFactory(); _preprocessor = (Preprocessor) factory.GetIPreprocessor(); }