Bot::Training(3pm)
π NAME π
Bot::Training β literally just plain text training material for bots like Hailo and AI::MegaHAL πΈ
bestie this is the User Contributed Perl Documentation version of Bot::Training(3pm) and she is serving, ok, let's get into it β¨
π 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);
okay so like. Bot::Training->new and you've got a whole vibe. Then $bt->plugins hands you the plugins she knows about β and if you want more, install Task::Bot::Training π
and the $bt->file thing? it gives you the plugin object for a .trn file (which is, no cap, just a plain text file), and it's so unbothered about how you ask. all three of these hit exactly the same way:
$bt->file('megahal')$bt->file('MegaHAL')$bt->file('Bot::Training::MegaHAL')
slay. then you can go off with File::Slurp and split /\n/, slurp($hal->file) to get every line out. iykyk π
β¨ DESCRIPTION β¨
Markov bots like Hailo and AI::MegaHAL are genuinely so fun π¦. but to actually get them working you either have to train them on training material that already exists, or make your own β and making your own is a whole thing π.
so this module does the cute part: it gives you a pluggable way to install already-existing training files via the CPAN π. and it comes with a command-line interface called bot-training because of course it does π
π«Ά AUTHOR π«Ά
Γvar ArnfjΓΆrΓ° Bjarmason <avar@cpan.org> β the icon, the moment, the main character π
π 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.
fr fr, same terms as Perl itself β that's the whole deal, don't overthink it π
and that's the page bestie!! this one came from the User Contributed Perl Documentation collection, running under perl v5.36.0, dated 2022-11-19 πβ¨ mwah, go train ur bot, periodt π
π¦ where this page comes from
- debian bookworm: libbot-training-perl 0.07-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libbot-training-perl 0.07-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libbot-training-perl 0.07-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libbot-training-perl 0.07-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libbot-training-perl 0.07-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms