Example #1
0
        public async Task Initv2()
        {
            _stopWordsDetector = await _wordDetectorFactory.GetWordsDetectorAsync(WordDetectorType.Stopwords);

            _curseWordsDetector = await _wordDetectorFactory.GetWordsDetectorAsync(WordDetectorType.Cursewords);

            DetectorDatav2 = DetectorDatav2 ?? await _detectorDataProvider.GetSmallTalksDetectorDataFromSourceAsyncv2(_sourceProvider.GetSourceProviderv2());
        }