C# Class NBoilerpipe.Filters.Simple.MinClauseWordsFilter

Keeps only blocks that have at least one segment fragment ("clause") with at least k words (default: 5).
Keeps only blocks that have at least one segment fragment ("clause") with at least k words (default: 5). NOTE: You might consider using the SplitParagraphBlocksFilter upstream.
Inheritance: BoilerpipeFilter
Datei anzeigen Open project: oganix/NBoilerpipe

Public Properties

Property Type Description
INSTANCE NBoilerpipe.Filters.Simple.MinClauseWordsFilter

Public Methods

Method Description
MinClauseWordsFilter ( int minWords ) : NBoilerpipe
MinClauseWordsFilter ( int minWords, bool acceptClausesWithoutDelimiter ) : NBoilerpipe
Process ( NBoilerpipe.Document.TextDocument doc ) : bool

Private Methods

Method Description
IsClause ( Sharpen.CharSequence text ) : bool

Method Details

MinClauseWordsFilter() public method

public MinClauseWordsFilter ( int minWords ) : NBoilerpipe
minWords int
return NBoilerpipe

MinClauseWordsFilter() public method

public MinClauseWordsFilter ( int minWords, bool acceptClausesWithoutDelimiter ) : NBoilerpipe
minWords int
acceptClausesWithoutDelimiter bool
return NBoilerpipe

Process() public method

public Process ( NBoilerpipe.Document.TextDocument doc ) : bool
doc NBoilerpipe.Document.TextDocument
return bool

Property Details

INSTANCE public_oe static_oe property

public static NBoilerpipe.Filters.Simple.MinClauseWordsFilter INSTANCE
return NBoilerpipe.Filters.Simple.MinClauseWordsFilter