POCKETSPHINX_LM_EVAL(1)

πŸ“¦ version 5.1.1, in nixpkgs unstable, ubuntu resolute, ubuntu stonking

✨ pocketsphinx_lm_eval ✨

okay bestie, so this is a page from the General Commands Manual, and it's literally about a little tool called pocketsphinx_lm_eval β€” and no, you don't need to be a linguistics girlie to get it πŸ’…


πŸŽ€ NAME πŸŽ€

pocketsphinx_lm_eval β€” evaluate perplexity of a transcription

like. it grades how confused a language model is by your text. that's the whole job. iconic.


🌸 SYNOPSIS 🌸

pocketsphinx_lm_eval [ options ]...

that's it. options only. no positional args, no drama πŸ¦‹


πŸ’– DESCRIPTION πŸ’–

So here's the vibe: this program evaluates the perplexity of a text file according to a given language model. Perplexity = the "how shook is the model by this sentence" number. Lowkey the whole point of running this thing.

The text file is assumed to be in transcript format, meaning: one utterance per line, delimited by <s> and </s>. So every line gets its own little <s> ... </s> hug, fr fr. 🫢

Now the options, and yes we're doing all of them, no skipping:

  • -help β€” Shows the usage of the tool. Your classic "wait what do I type again" button.
  • -lm model file β€” the model file. your LM. the moment.
  • -lmctlfn β€” file listing a set of language models. a whole roster, like a group chat of LMs.
  • -lmname β€” of language model in -lmctlfn to use for all utterances. pick your main character from the roster ✨
  • -logbase β€” Base in which all log-likelihoods calculated. math girlies, this one's for you πŸ’œ
  • -lsn file to evaluate β€” file to evaluate. yes, the text file from before.
  • -lw β€” Language model weight. how much say the LM gets.
  • -mmap β€” Use memory-mapped I/O for reading binary LM files. fancy and fast, no cap.
  • -probdef β€” definition file for classes in LM.
  • -text string to evaluate β€” string to evaluate. skip the file, just hand it a string, diva behavior πŸ’…
  • -uw β€” Unigram probability weight (interpolated with uniform distribution). that's the whole description, I'm just the messenger πŸ“
  • -verbose β€” Print details of perplexity calculation. not me wanting to see the receipts 😭
  • -wip β€” Word insertion probability.

πŸ‘‘ AUTHOR πŸ‘‘

David Huggins-Daines <dhdaines@gmail.com> β€” king behavior, honestly 🫢


Copyright Β© 2007-2008 Carnegie Mellon University. See the file COPYING included with this package for more information.

real talk: that COPYING file is not a vibe, it's a legal document. go read it if you're doing anything with this.

and that's the whole page bestie!! πŸ’– the source is the General Commands Manual, version vibes of pocketsphinx_lm_eval(1), dated 2008-05-12 β€” an absolute elder of a manpage, still slaying. mwah πŸ’‹

πŸ“¦ where this page comes from