Zbigniew Łukasiak > AI-Classifier-0.03 > AI::Classifier::Text::FileLearner

Download:
AI-Classifier-0.03.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.03   Source  

NAME ^

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

VERSION ^

version 0.03

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.

syntax highlighting: