C# Класс 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 .
Наследование: BoilerpipeFilter
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
INSTANCE TerminatingBlocksFinder

Открытые методы

Метод Описание
GetInstance ( ) : TerminatingBlocksFinder

Returns the singleton instance for TerminatingBlocksFinder.

Returns the singleton instance for TerminatingBlocksFinder.

Process ( NBoilerpipe.Document.TextDocument doc ) : bool

Приватные методы

Метод Описание
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.

Описание методов

GetInstance() публичный статический Метод

Returns the singleton instance for TerminatingBlocksFinder.
Returns the singleton instance for TerminatingBlocksFinder.
public static GetInstance ( ) : TerminatingBlocksFinder
Результат TerminatingBlocksFinder

Process() публичный Метод

public Process ( NBoilerpipe.Document.TextDocument doc ) : bool
doc NBoilerpipe.Document.TextDocument
Результат bool

Описание свойств

INSTANCE публичное статическое свойство

public static TerminatingBlocksFinder,NBoilerpipe.Filters.English INSTANCE
Результат TerminatingBlocksFinder