GETWORDFREQ(1)
π GETWORDFREQ π
okay so bestie, this is a Perl script from the sunpinyin corner of the universe β getwordfreq β and it's literally just here to spill the tea on your language model's vocabulary π«Ά
β¨ NAME β¨
getwordfreq β prints word freq info straight out of a language model, no cap π₯
πΈ SYNOPSIS πΈ
getwordfreq [option]... -m slm-file -l lexicon
like, that's the whole vibe check: some options, an -m slm-file, and an -l lexicon. periodt β¨
π¦ DESCRIPTION π¦
So what does it actually do? It prints out the word string and its freq for all the words in a language model π β every single one, one per line, word + freq. It's giving "let me read the whole dictionary out loud" but make it statistical. Iconic, honestly.
π OPTIONS π
-scorpus-size β tells it how big the training corpus was. If you don't pass it, the defaultcorpus-sizeis300000000. yes, three hundred million, she's not being shy about it π-vβ be verbose! After the word and freq on each line, it also outputs other information. extra lore, we love to see it π-eβ give format for ervin. that's it, that's the whole description, iykyk π-mslm-file β specify the language model file. the main character of this whole operation, ngl π-llexicon β specify the lexicon file. and if you forget, there's a default lexicon waiting for you at/usr/share/sunpinyin-slm/dict.utf8π (literally just sitting there, ready to be your bestie)
π§ AUTHOR π§
Originally written by Phill.Zhang <phill.zhang@sun.com>. Currently maintained by Kov.Chai <tchaikov@gmail.com>. legends, both of them ππ
β SEE ALSO β
slmthread(1)β go check on her too, she's part of the fam
okay quick reminder bestie:-mand-lare in the synopsis for a reason β don't come crying to me if you leave them out π
and that's the page! π brought to you by Perl v5.36.0, dated 2023-08-08 β mwah, slay, bye πβ¨
π¦ where this page comes from
- ubuntu noble: sunpinyin-utils 3.0.0~rc2+ds1-5 Β· LGPL-2.1-only OR CDDL
- ubuntu questing: sunpinyin-utils 3.0.0~rc2+ds1-5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms