Andrea Spinelli > Text-Document-1.07 > Text::Document
Annotate this POD   New  1 Open  0 View/Report Bugs Module
Version: 1.05   Source       Text::Document - a text document
subject to statistical analysis      my @freqList =
$t->KeywordFrequency();   Text::Document allows to perform
simple Information-Retrieval-oriented statistics on pure-text
documents.  Text can be added in chunks, so that the document
may be incrementally built, for instance by a class like
HTML::Parser.  A simple algorithm splits the text into terms;
the algorithm may be redefined by subclassing and redefining
ScanV.  The KeywordFrequency function computes term frequency
over the whole document.      The creator method. The optional
arguments are in the (key,value) form and allow to specify
whether all keywords are trasformed to lowercase (default) and
whether the string representation (WriteToString) will be
compressed (default).    Take a string written by WriteToString
(see below) and create a new Text::Document with the same cont