Bot::Training(3pm)

Bot::Training3pm

Plain text training material for bots like hailo and ai::megahal

Usage

    use Bot::Training;
    use File::Slurp qw< slurp >;
    my $bt = Bot::Training->new;
    # Plugins I know about. Install Task::Bot::Training for more:
    my @plugins = $bt->plugins
    # Get the plugin object of a .trn file (which is just a plain text
    # file). These all work just as well:
    my $hal = $bt->file('megahal');
    my $hal = $bt->file('MegaHAL');
    my $hal = $bt->file('Bot::Training::MegaHAL');
    # Get all lines in the file with File::Slurp:
    my @test = split /\n/, slurp($hal->file);

Overview

Markov bots like Hailo and AI::MegaHAL are fun. But to get them working you either need to train them on existing training material or make your own.

This module provides a pluggable way to install already existing training files via the CPAN. It also comes with a command-line interface called "bot-training".

Releases

7 releases since Debian 7 (Wheezy); the text changed 5 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12–13

Author

Ævar Arnfjörð Bjarmason <[email protected]>

From libbot-training-perl 0.07-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.