コード例 #1
0
 /// <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;
 }
コード例 #2
0
ファイル: Tokens.cs プロジェクト: raear/html-zoning
 /// <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;
 }
コード例 #3
0
 /// <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;
 }
コード例 #4
0
ファイル: SentenceCount.cs プロジェクト: raear/html-zoning
 /// <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;
 }
コード例 #5
0
 /// <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);
 }