Example #1
0
 public NumberExtractor(
     IDecoratedNumberParser decoratedNumberParser,
     Regex titleBlackRegex,
     Regex blackParagraphRegex,
     IEnumerable <IPostprocessor> postprocessors)
 {
     _decoratedNumberParser = decoratedNumberParser;
     _titleBlackRegex       = titleBlackRegex;
     _blackParagraphRegex   = blackParagraphRegex;
     _postprocessors        = postprocessors;
 }
Example #2
0
 public NumberExtractor(IDecoratedNumberParser decoratedNumberParser)
 {
     _decoratedNumberParser = decoratedNumberParser;
     _postprocessors        = new List <IPostprocessor>
     {
         new ChoiceQuestionPostprocessor(),
         new QuestionScorePostprocessor(),
         new RemoveArticleNumberPostprocessor(),
         new RemoveCommentNumberPostprocessor(),
         new SelectiveQuestionPostprocessor(),
     };
 }