예제 #1
0
        private IEnumerable <string> GetPhrases()
        {
            var preprocessor = new PreprocessorFactory().GetIPreprocessor();
            var phrases      = preprocessor.GetVariations(preprocessor.GetNormalizedPhrase(_searchPhrase));

            return(phrases);
        }
예제 #2
0
        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));
        }
예제 #3
0
        public void Initialize()
        {
            IPreprocessorFactory factory = new PreprocessorFactory();

            _preprocessor = (Preprocessor)factory.GetIPreprocessor();
        }
예제 #4
0
 public void Initialize()
 {
     IPreprocessorFactory factory = new PreprocessorFactory();
     _preprocessor = (Preprocessor) factory.GetIPreprocessor();
 }