HAILO(1)
π HAILO(1) β the Hailo Markov bot, command-line edition
okay so bestie, this is hailo, the command-line interface to the Hailo Markov bot. Yes, the manual name is Hailo, yes it's a Perl thing, no you don't have to be scared. sit down, drink some water, we're doing this π«Ά
β¨ USAGE β¨
usage: hailo [-abEfhLlopRrSsTtuv] [long options...]
usage: hailo [-abEfhLlopRrSsTtuv] [long options...]
-v --version Print version and exit
-u --ui Use UI CLASS
-t --train Learn from all the lines in FILE, use - for STDIN
-s --stats Print statistics about the brain
-r --reply Reply to STRING
-p --progress Display progress during the import
-o --order Markov order; How deep the rabbit hole goes
-l --learn Learn from STRING
-h --help You're soaking it in
-f --train-fast Train with aggressive caching (memory-hungry!)
-b --brain Load/save brain to/from FILE
-a --autosave Save the brain on exit (on by default)
-T --tokenizer Use tokenizer CLASS
-S --storage Use storage CLASS
-R --random-reply Like --reply but takes no STRING; Babble at random
-L --learn-reply Learn from STRING and reply to it
-E --engine Use engine CLASS
--ui-args Arguments for the UI class
--tokenizer-args Arguments for the Tokenizer class
--storage-args Arguments for the Storage class
--examples Print examples along with the help message
--engine-args Arguments for the Engine class
--brain-resource Alias for `brain' for backwards compatibility
Note: All input/output and files are assumed to be UTF-8 encoded.
β οΈ heads up queen: all input/output and files are assumed to be UTF-8 encoded. like, that's the whole vibe. don't come at it with weird encodings, it will simply not slay.
π¦ SYNOPSIS π¦
train in-memory using bot-training's megahal.trn and reply
bot-training -f megahal | hailo --brain :memory: --train - --random-reply
# ==> Time flies like a banana.
literally the whole thing in one pipe, it's giving efficiency π
create an on-disk brain for later use
bot-training -f megahal > megahal.trn
hailo --brain hailo.sqlite --train megahal.trn
hailo --brain hailo.sqlite --reply 'Reply to this, silly robot!'
# ==> No way! I don't want to think.
yes bestie, hailo.sqlite is the brain file here β write it down, you'll use it again π§
interact with the brain using readline
hailo --brain hailo.sqlite
Welcome to the Hailo interactive shell!
Enter ".help" to show the built-in commands.
Input that's not a command will be passed to Hailo to learn, and it'll
reply back.
Hailo> Hello there
# ==> Wife asked "what have you got there?" replied he, "just my cup of fur".
the interactive shell is lowkey the main character here. type .help and it shows you the built-in commands, and anything that isn't a command gets passed to Hailo β it learns from it AND replies back. so you're basically feeding it and hearing it talk at the same time, which is iconic honestly π
πΈ DESCRIPTION πΈ
See the documentation for Hailo for more information.
(that's it. that's the description. they really said "go read the other docs" and honestly? respect. if you want the deep lore, the Hailo documentation is where it lives πβ¨)
π OPTIONS π
okay here's the full menu, no skips, no cuts, every single one:
-v,--versionβ print the version and dip. that's the whole job π«‘-u,--uiβ use UI CLASS. pick your interface, choose your fighter.-t,--trainβ learn from all the lines in FILE; use-for STDIN. feed the bot, it's hungry.-s,--statsβ print statistics about the brain. brain tea β-r,--replyβ reply to STRING. give it a prompt, get a reply.-p,--progressβ display progress during the import. so you're not just staring at a cursor like an idiot π-o,--orderβ Markov order; "How deep the rabbit hole goes". yes that's the official description and yes it ate π-l,--learnβ learn from STRING. one little snack for the brain.-h,--helpβ "You're soaking it in". iconic line, no notes. shows you the help.-f,--train-fastβ train with aggressive caching. π¨ memory-hungry! the manpage put an exclamation mark on it so I'm putting one too β it will eat your RAM, bestie.-b,--brainβ load/save brain to/from FILE. this is your brain file, guard it with your life π-a,--autosaveβ save the brain on exit. on by default, so it's already doing it for you, you're welcome.-T,--tokenizerβ use tokenizer CLASS.-S,--storageβ use storage CLASS.-R,--random-replyβ like--replybut takes no STRING; babble at random β¨ chaos mode activated.-L,--learn-replyβ learn from STRING and reply to it. two things at once, multitasking queen π-E,--engineβ use engine CLASS.--ui-argsβ arguments for the UI class.--tokenizer-argsβ arguments for the Tokenizer class.--storage-argsβ arguments for the Storage class.--examplesβ print examples along with the help message. yes please, show me the receipts π₯--engine-argsβ arguments for the Engine class.--brain-resourceβ alias for`brain'for backwards compatibility. old code still gets love π«Ά
π‘ fr fr note, repeated because it matters: all input/output and files are assumed to be UTF-8 encoded.
π AUTHOR π
Γvar ArnfjΓΆrΓ° Bjarmason <avar@cpan.org>
(and yes I copy-pasted that name exactly, don't @ me, accents matter π)
β 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.
so like, free software, same terms as Perl itself, go forth and redistribute responsibly π§
and that's the whole page bestie!! no cap, every flag, every example, every line β we got it all. This page ships with perl v5.42.3, dated 2018-11-28, and it's the HAILO(1) page from User Contributed Perl Documentation. mwah, go train a bot ππ
π¦ where this page comes from
- nixos 26.05: perl5.42.3-Hailo 0.75
- nixpkgs unstable: perl5.42.3-Hailo 0.75
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms