|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.l3s.boilerpipe.document.TextDocumentStatistics
public final class TextDocumentStatistics
Provides shallow statistics on a given TextDocument
Constructor Summary | |
---|---|
TextDocumentStatistics(TextDocument doc,
boolean contentOnly)
Computes statistics on a given TextDocument . |
Method Summary | |
---|---|
float |
avgNumWords()
Returns the average number of words at block-level (= overall number of words divided by the number of blocks). |
int |
getNumWords()
Returns the overall number of words in all blocks. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextDocumentStatistics(TextDocument doc, boolean contentOnly)
TextDocument
.
doc
- The TextDocument
.contentOnly
- if true then oMethod Detail |
---|
public float avgNumWords()
public int getNumWords()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |