C# Class NBoilerpipe.Document.TextDocumentStatistics

Provides shallow statistics on a given TextDocument
Show file Open project: oganix/NBoilerpipe Class Usage Examples

Public Methods

Method Description
AvgNumWords ( ) : float

Returns the average number of words at block-level (= overall number of words divided by the number of blocks).

Returns the average number of words at block-level (= overall number of words divided by the number of blocks).

GetNumWords ( ) : int

Returns the overall number of words in all blocks.

Returns the overall number of words in all blocks.

TextDocumentStatistics ( NBoilerpipe.Document.TextDocument doc, bool contentOnly ) : NBoilerpipe.Document

Computes statistics on a given TextDocument .

Method Details

AvgNumWords() public method

Returns the average number of words at block-level (= overall number of words divided by the number of blocks).
Returns the average number of words at block-level (= overall number of words divided by the number of blocks).
public AvgNumWords ( ) : float
return float

GetNumWords() public method

Returns the overall number of words in all blocks.
Returns the overall number of words in all blocks.
public GetNumWords ( ) : int
return int

TextDocumentStatistics() public method

Computes statistics on a given TextDocument .
public TextDocumentStatistics ( NBoilerpipe.Document.TextDocument doc, bool contentOnly ) : NBoilerpipe.Document
doc NBoilerpipe.Document.TextDocument /// The /// TextDocument /// . ///
contentOnly bool if true then o
return NBoilerpipe.Document