File: README

package info (click to toggle)
libbot-training-perl 0.07-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 144 kB
  • sloc: perl: 176; makefile: 11
file content (45 lines) | stat: -rw-r--r-- 1,301 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
NAME

    Bot::Training - Plain text training material for bots like Hailo and
    AI::MegaHAL

SYNOPSIS

        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);

DESCRIPTION

    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.

AUTHOR

    Ævar Arnfjörð Bjarmason <avar@cpan.org>

LICENSE AND COPYRIGHT

    Copyright 2010 Ævar Arnfjörð Bjarmason <avar@cpan.org>

    This program is free software, you can redistribute it and/or modify it
    under the same terms as Perl itself.