AI::Classifier::Text::FileLearner - Training data reader for AI::NaiveBayes
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.
Internal method for traversing the training data directory.
Returns a trained classifier.
Zbigniew Lukasiak <firstname.lastname@example.org>, Tadeusz SoÅnierz <email@example.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.