SPHINX_LM_EVAL(1)
β¨ SPHINX_LM_EVAL β¨
ok so bestie, this one lives in the General Commands Manual section and it's called sphinx_lm_eval, and it's here to do exactly one iconic thing: tell you how perplexed a transcription is π
πΈ NAME πΈ
sphinx_lm_eval β evaluate perplexity of a transcription
π¦ SYNOPSIS π¦
sphinx_lm_eval [ options ]...
π DESCRIPTION π
So here's the vibe: this program evaluates the perplexity of a text file according to a given language model. That's the whole main character moment. π₯
And the text file? It's assumed to be in transcript format, meaning one utterance per line, delimited by <s> and </s>. Like, every single line is its own little utterance, wrapped up all cozy. No cap.
π the options (yes, all of them, we're not skipping a single one) π
-helpβ Shows the usage of the tool. that's it, that's the flag, it just tells you how to use it π«Ά-lmmodel file β the model file, bestie. your language model lives here.-lmctlfnβ file listing a set of language models. it's giving "control file" energy. iykyk.-lmnameβ of language model in-lmctlfnto use for all utterances. literally every single utterance gets this one.-logbaseβ Base in which all log-likelihoods calculated. pick your base, it's your world β¨-lsnfile to evaluate β this is the file you're gonna evaluate. the moment of truth.-lwβ Language model weight. how much say does the LM get? your call.-mmapβ Use memory-mapped I/O for reading binary LM files. fancy. fast. obsessed.-probdefβ definition file for classes in LM. classes gotta be defined somewhere, so.-textstring to evaluate β string to evaluate. yes, you can just hand it a string directly instead of a whole file, slay.-uwβ Unigram probability weight (interpolated with uniform distribution). it's getting blended in there with the uniform distribution, periodt.-verboseβ Print details of perplexity calculation. turn this on if you wanna see everything the math is doing. not me being nosy about my own perplexity calc π-wipβ Word insertion probability. that's the whole thing. the words, the inserting, the probability. π«
π AUTHOR π
David Huggins-Daines <dhdaines@gmail.com>
π COPYRIGHT π
Copyright Β© 2007-2008 Carnegie Mellon University. See the file COPYING included with this package for more information.
ok and one last thing before you go β this whole page is from the 2008-05-12 era, so shoutout to that date for keeping it real all these years π©· go evaluate some perplexity bestie, you got this πβ¨
π¦ where this page comes from
- epel 10: pocketsphinx 2:5.0.4-1.el10_2 Β· BSD-2-Clause AND BSD-3-Clause AND MIT
- fedora 43: pocketsphinx 2:5.0.4-2.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND MIT
- fedora 43: pocketsphinx 2:5.0.4-3.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND MIT
- fedora 44: pocketsphinx 2:5.0.4-5.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND MIT
- nixos 26.05: pocketsphinx 5.0.4
- opensuse-leap 16.0: pocketsphinx 5.0.3+git20241211.69167fb-bp160.1.9 Β· BSD-2-Clause
- opensuse-leap 16.0: pocketsphinx 5.0.3+git20241211.69167fb-bp160.1.9 Β· BSD-2-Clause
- opensuse-leap 16.0: pocketsphinx 5.0.3+git20241211.69167fb-bp160.1.9 Β· BSD-2-Clause
- opensuse-leap 16.0: pocketsphinx 5.0.3+git20241211.69167fb-bp160.1.9 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms