|
NAMEAI::Categorizer::Collection::Files - One document per file SYNOPSIS my $c = new AI::Categorizer::Collection::Files
(path => '/tmp/docs/training',
category_file => '/tmp/docs/cats.txt');
print "Total number of docs: ", $c->count_documents, "\n";
while (my $document = $c->next) {
...
}
$c->rewind; # For further operations
DESCRIPTIONThis implements a Collection class in which each document exists as a single file on a filesystem. The documents can exist in a single directory, or in several directories. METHODSThis is a subclass of the abstract AI::Categorizer::Collection class, so any methods mentioned in its documentation are available here.
AUTHORKen Williams, ken@mathforum.org COPYRIGHTCopyright 2002-2003 Ken Williams. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSOAI::Categorizer::Collection(3)
|