コード例 #1
0
 public MessageReceivedHandler(
     ILogger <MessageReceivedHandler> log,
     IPersonRepository peopleRepo,
     ILanguageUnderstanding language,
     ITextAnalyzer textAnalyzer,
     IEntityRepository <PhoneSystem> phoneDir,
     IWorkflowSelector selector)
 => (this.log, this.peopleRepo, this.language, this.textAnalyzer, this.phoneDir, this.selector)
コード例 #2
0
        public TextProcessor(long languageId)
        {
            _languageId = languageId;

            _textAnalyzer       = TextAnalyzerFactory.Create();
            _wordsQuery         = new WordsQuery();
            _sentencesQuery     = new SentencesQuery();
            _sentenceWordsQuery = new SentenceWordsQuery(_languageId);
        }
コード例 #3
0
 public TagCloudTextAnalyzer(IFontAnalyzer fontAnalyzer, ITextAnalyzer textAnalyzer,
                             IEnumerable <IWordFilter> wordFilters, IEnumerable <IWordConverter> wordConverters, IWordCounter wordCounter)
 {
     this.fontAnalyzer   = fontAnalyzer;
     this.textAnalyzer   = textAnalyzer;
     this.wordFilters    = wordFilters;
     this.wordConverters = wordConverters;
     this.wordCounter    = wordCounter;
 }
コード例 #4
0
 public TextProcessingService(
     ITextProcessingDataContextFactory dataContextFactory,
     IUniqueWordsAddingStrategy uniqueWorsAddingStrategy,
     ITextAnalyzer textAnalyzer,
     ILogger <TextProcessingService> logger)
 {
     _dataContextFactory       = dataContextFactory;
     _uniqueWorsAddingStrategy = uniqueWorsAddingStrategy;
     _textAnalyzer             = textAnalyzer;
     _logger = logger;
 }
コード例 #5
0
        public MainWindow()
        {
            ISpeaker speaker = new Speaker();

            _speechRecognitionEngine = new SpeechRecognition();
            _textHandler             = new TextHandler(speaker, _speechRecognitionEngine);
            _kebabManager            = new KebabManager(_speechRecognitionEngine, _textHandler);

            InitializeComponent();
            _worker.DoWork += Run;
            _worker.RunWorkerAsync();
        }
コード例 #6
0
        public ITextAnalyzer build_analyzer()
        {
            ITextAnalyzer analyzer = null;

            switch (this.analyzer)
            {
            case "word":
                analyzer = new WordTextAnalyzer();
                break;
            }

            return(analyzer);
        }
コード例 #7
0
 public KontentWebhook(
     ILogger <KontentWebhook> logger,
     IWebhookValidator webhookValidator,
     IKontentRepository kontentRepository,
     ITranslationService translationService,
     ITextAnalyzer textAnalyzer
     ) : base(logger)
 {
     this.webhookValidator   = webhookValidator;
     this.kontentRepository  = kontentRepository;
     this.translationService = translationService;
     this.textAnalyzer       = textAnalyzer;
 }
コード例 #8
0
        public static ITextAnalyzer Create()
        {
            if (_instance == null)
            {
                lock (_sync) {
                    if (_instance == null)
                    {
                        //TODO: изменить пути
                        var nativeTextAnalyzer = new NativeTextAnalyzer(@"C:\Projects\StudyLanguages\NLP\Models\",
                                                                        @"C:\Projects\StudyLanguages\NLP\Dictionaries\");

                        _instance = new TextAnalyzer(nativeTextAnalyzer);
                    }
                }
            }
            return(_instance);
        }
コード例 #9
0
 internal SentencesSearchEngine(ISentenceWordsQuery sentenceWordsQuery,
                                ITextAnalyzer textAnalyzer)
 {
     _sentenceWordsQuery = sentenceWordsQuery;
     _textAnalyzer       = textAnalyzer;
 }
コード例 #10
0
 public WordVisualizer(ITextAnalyzer analyzer, ICloudLayouter layouter, ICloudVisualizer visualizer)
 {
     Layouter   = layouter;
     Visualizer = visualizer;
     Analyzer   = analyzer;
 }
コード例 #11
0
 public DocumentDataProvider(IStopWordProvider stopWordProvider, IXmlService xmlService, ITextAnalyzer textAnalyzer)
 {
     this.stopWordProvider = stopWordProvider;
     this.xmlService       = xmlService;
     this.textAnalyzer     = textAnalyzer;
 }
コード例 #12
0
 public CommentFactory(ICommentFormFactory commentFormFactory, ITextAnalyzer textAnalyzer)
 {
     _commentFormFactory = commentFormFactory;
     _textAnalyzer       = textAnalyzer;
 }
コード例 #13
0
 public JobService(ITextAnalyzer textAnalyzer, ICommentRepository commentRepository, IJobRepository jobRepository)
 {
     _textAnalyzer      = textAnalyzer;
     _commentRepository = commentRepository;
     _jobRepository     = jobRepository;
 }
コード例 #14
0
 public TextParser()
 {
     _textAnalyzer = TextAnalyzerFactory.Create();
 }
コード例 #15
0
 public ApplicationSettings(ITextAnalyzer[] analyzers)
 {
     TextAnalyzers       = analyzers;
     CurrentTextAnalyzer = TextAnalyzers.FirstOrDefault();
 }
コード例 #16
0
 public void Register(string metricName, ITextAnalyzer analyzer)
 => _analyzers.Add(metricName, analyzer);
コード例 #17
0
 public KebabManager(ISpeechRecognition speechRecognition, ITextAnalyzer textAnalyzer)
 {
     _speechRecognition = speechRecognition;
     _textAnalyzer      = textAnalyzer;
 }
コード例 #18
0
 public PageAnalyzer(ITextAnalyzer textAnalyzer)
 {
     this.textAnalyzer = textAnalyzer;
 }