HAILO(1)

πŸ“¦ version 0.75, in nixos 26.05, nixpkgs unstable

πŸ’… 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 --reply but 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 πŸ’œ)


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