AI::Classifier::Text::FileLearner - Training data reader for AI::NaiveBayes
version 0.02
use AI::Classifier::Text::FileLearner; my $learner = AI::Classifier::Text::FileLearner->new( training_dir => 't/data/training_set_ordered/' ); my $classifier = $learner->classifier;
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
Internal method for traversing the training data directory.
Returns a trained classifier.
Zbigniew Lukasiak <zlukasiak@opera.com>, Tadeusz Sośnierz <tsosnierz@opera.com>
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:
Non-ASCII character seen before =encoding in 'Sośnierz'. Assuming UTF-8
To install AI::Classifier::Text, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AI::Classifier::Text
CPAN shell
perl -MCPAN -e shell install AI::Classifier::Text
For more information on module installation, please visit the detailed CPAN module installation guide.