C# 클래스 NBoilerpipe.Filters.Heuristics.KeepLargestBlockFilter

Keeps the largest NBoilerpipe.Document.TextBlock only (by the number of words). In case of more than one block with the same number of words, the first block is chosen. All discarded blocks are marked "not content" and flagged as NBoilerpipe.Labels.DefaultLabels.MIGHT_BE_CONTENT . Note that, by default, only TextBlocks marked as "content" are taken into consideration.
상속: BoilerpipeFilter
파일 보기 프로젝트 열기: oganix/NBoilerpipe

공개 프로퍼티들

프로퍼티 타입 설명
INSTANCE NBoilerpipe.Filters.Heuristics.KeepLargestBlockFilter
INSTANCE_EXPAND_TO_SAME_TAGLEVEL NBoilerpipe.Filters.Heuristics.KeepLargestBlockFilter

공개 메소드들

메소드 설명
KeepLargestBlockFilter ( bool expandToSameLevelText ) : System.Collections.Generic
Process ( NBoilerpipe.Document.TextDocument doc ) : bool

메소드 상세

KeepLargestBlockFilter() 공개 메소드

public KeepLargestBlockFilter ( bool expandToSameLevelText ) : System.Collections.Generic
expandToSameLevelText bool
리턴 System.Collections.Generic

Process() 공개 메소드

public Process ( NBoilerpipe.Document.TextDocument doc ) : bool
doc NBoilerpipe.Document.TextDocument
리턴 bool

프로퍼티 상세

INSTANCE 공개적으로 정적으로 프로퍼티

public static NBoilerpipe.Filters.Heuristics.KeepLargestBlockFilter INSTANCE
리턴 NBoilerpipe.Filters.Heuristics.KeepLargestBlockFilter

INSTANCE_EXPAND_TO_SAME_TAGLEVEL 공개적으로 정적으로 프로퍼티

public static NBoilerpipe.Filters.Heuristics.KeepLargestBlockFilter INSTANCE_EXPAND_TO_SAME_TAGLEVEL
리턴 NBoilerpipe.Filters.Heuristics.KeepLargestBlockFilter