Bot::Training(3pm)

πŸ“¦
version 0.07 Β· 2 versions
  • 0.07 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.07 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 πŸ‘‘


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