/// <summary> /// Initializes a new instance of the <see cref="ArticleContentLabeler" /> class /// </summary> /// <param name="naturalLanguageProcessor">The natural language processor to use</param> /// <param name="paragraphLabel">The paragraph label</param> /// <param name="articleContentLabel">The article content label</param> /// <param name="tokenFeatureName">The token feature name</param> public ArticleContentLabeler(INaturalLanguageProcessing naturalLanguageProcessor, string paragraphLabel, string articleContentLabel, string tokenFeatureName) { _naturalLanguageProcessor = naturalLanguageProcessor; _paragraphLabel = paragraphLabel; _articleContentLabel = articleContentLabel; _tokenFeatureName = tokenFeatureName; }
/// <summary> /// Initializes a new instance of the <see cref="Tokens"/> class /// </summary> /// <param name="naturalLanguageProcessor">The natural language processor to use</param> public Tokens(INaturalLanguageProcessing naturalLanguageProcessor) { _naturalLanguageProcessor = naturalLanguageProcessor; }
/// <summary> /// Initializes a new instance of the <see cref="ParagraphLabeler" /> class /// </summary> /// <param name="naturalLanguageProcessor">The natural language processor to use</param> /// <param name="paragraphLabel">The paragraph label</param> public ParagraphLabeler(INaturalLanguageProcessing naturalLanguageProcessor, string paragraphLabel) { _naturalLanguageProcessor = naturalLanguageProcessor; _paragraphLabel = paragraphLabel; }
/// <summary> /// Initializes a new instance of the <see cref="SentenceCount"/> class /// </summary> /// <param name="naturalLanguageProcessor">The natural language processor to use</param> public SentenceCount(INaturalLanguageProcessing naturalLanguageProcessor) { _naturalLanguageProcessor = naturalLanguageProcessor; }
/// <summary> /// Initializes a new instance of the <see cref="ZoneTreeArticleContentLabeler" /> class. /// </summary> /// <param name="naturalLanguageProcessor">The natural language processor.</param> /// <param name="paragraphLabel">The paragraph label.</param> /// <param name="articleContentLabel">The article content label.</param> /// <param name="tokenFeatureName">The tokens feature name</param> public ZoneTreeArticleContentLabeler(INaturalLanguageProcessing naturalLanguageProcessor, string paragraphLabel, string articleContentLabel, string tokenFeatureName) { _labeler = new ArticleContentLabeler(naturalLanguageProcessor, paragraphLabel, articleContentLabel, tokenFeatureName); }