POCKETSPHINX_LM_EVAL(1)
β¨ 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.-lmmodel 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-lmctlfnto 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 π-lsnfile 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.-textstring 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 π
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
- nixpkgs unstable: pocketsphinx 5.1.1
- ubuntu resolute: pocketsphinx 5.0.4-3ubuntu1 Β· BSD-2-Clause
- ubuntu stonking: pocketsphinx 5.1.1-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms