Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
AI::Categorizer::ColleUsernContributed PeAI::Categorizer::Collection::Files(3)

NAME
       AI::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

DESCRIPTION
       This 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.

METHODS
       This is a subclass of the abstract AI::Categorizer::Collection class,
       so any methods mentioned	in its documentation are available here.

       new()
	   Creates a new Collection object and returns it.  In addition	to the
	   parameters accepted by the superclass, the following	parameters are
	   accepted:

	   path
	       Indicates a location on disk where the documents	can be found.
	       The path	may be specified as a string giving the	name of	a
	       directory, or as	a reference to an array	of such	strings	if the
	       documents are located in	more than one directory.

	   recurse
	       Indicates whether subdirectories	of the directory (or
	       directories) in the "path" parameter should be descended	into.
	       If set to a true	value, they will be descended into.  If	false,
	       they will be ignored.  The default is false.

AUTHOR
       Ken Williams, ken@mathforum.org

COPYRIGHT
       Copyright 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 ALSO
       AI::Categorizer::Collection(3)

perl v5.32.0			  2020-08AI::Categorizer::Collection::Files(3)

NAME | SYNOPSIS | DESCRIPTION | METHODS | AUTHOR | COPYRIGHT | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=AI::Categorizer::Collection::Files&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help