The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

AI::Classifier::Text::FileLearner - Training data reader for AI::NaiveBayes

VERSION

version 0.02

SYNOPSIS

    use AI::Classifier::Text::FileLearner;

    my $learner = AI::Classifier::Text::FileLearner->new( training_dir => 't/data/training_set_ordered/' );

    my $classifier = $learner->classifier;

DESCRIPTION

This is a trainer of text classifiers. It traverses a directory filled, interprets the subdirectories in it as category names, reads all files in them and adds them as examples for the classifier being trained.

head1 METHODS

next

Internal method for traversing the training data directory.

classifier

Returns a trained classifier.

AUTHOR

Zbigniew Lukasiak <zlukasiak@opera.com>, Tadeusz Sośnierz <tsosnierz@opera.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Opera Software ASA.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 202:

Non-ASCII character seen before =encoding in 'Sośnierz'. Assuming UTF-8