C# Class NBoilerpipe.Filters.English.TerminatingBlocksFinder

Finds blocks which are potentially indicating the end of an article text and marks them with NBoilerpipe.Labels.DefaultLabels.INDICATES_END_OF_TEXT . This can be used in conjunction with a downstream IgnoreBlocksAfterContentFilter .
Inheritance: BoilerpipeFilter
Afficher le fichier Open project: oganix/NBoilerpipe

Méthodes publiques

Свойство Type Description
INSTANCE TerminatingBlocksFinder

Méthodes publiques

Méthode Description
GetInstance ( ) : TerminatingBlocksFinder

Returns the singleton instance for TerminatingBlocksFinder.

Returns the singleton instance for TerminatingBlocksFinder.

Process ( NBoilerpipe.Document.TextDocument doc ) : bool

Private Methods

Méthode Description
IsDigit ( char c ) : bool
StartsWithNumber ( string t, int len ) : bool

Checks whether the given text t starts with a sequence of digits, followed by one of the given strings.

Checks whether the given text t starts with a sequence of digits, followed by one of the given strings.

Method Details

GetInstance() public static méthode

Returns the singleton instance for TerminatingBlocksFinder.
Returns the singleton instance for TerminatingBlocksFinder.
public static GetInstance ( ) : TerminatingBlocksFinder
Résultat TerminatingBlocksFinder

Process() public méthode

public Process ( NBoilerpipe.Document.TextDocument doc ) : bool
doc NBoilerpipe.Document.TextDocument
Résultat bool

Property Details

INSTANCE public_oe static_oe property

public static TerminatingBlocksFinder,NBoilerpipe.Filters.English INSTANCE
Résultat TerminatingBlocksFinder