Package de.l3s.boilerpipe.document
Class TextDocumentStatistics
- java.lang.Object
-
- de.l3s.boilerpipe.document.TextDocumentStatistics
-
public final class TextDocumentStatistics extends java.lang.ObjectProvides shallow statistics on a given TextDocument
-
-
Constructor Summary
Constructors Constructor Description TextDocumentStatistics(TextDocument doc, boolean contentOnly)Computes statistics on a givenTextDocument.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatavgNumWords()Returns the average number of words at block-level (= overall number of words divided by the number of blocks).intgetNumWords()Returns the overall number of words in all blocks.
-
-
-
Constructor Detail
-
TextDocumentStatistics
public TextDocumentStatistics(TextDocument doc, boolean contentOnly)
Computes statistics on a givenTextDocument.- Parameters:
doc- TheTextDocument.contentOnly- if true then o
-
-