PYNLPL-COMPUTEPMI(1)
PYNLPL-COMPUTEPMI π
okay bestie, so this is the manual page for pynlpl-computepmi β it's a User Commands situation, version 0.7.7, and it lives in the pynlpl family. pull up a chair, we're computing co-occurrences and we're gonna have a time. π¦
β¨ NAME β¨
computepmi β the manual page for pynlpl-computepmi 0.7.7, no cap, that's literally what it says on the tin. π
πΈ DESCRIPTION πΈ
so like. the usage is this, exactly this, character for character, don't come for me:
pynlpl-computepmi [-h] -f INPUTTEXT [-s] [-t THRESHOLD] [-a] [-A]
[--pmi] [--npmi] [--jaccard] [--dice]
and what does it do? simple cooccurence computation. that's the whole pitch. that's the vibe. π«Ά
π optional arguments π
these are the little knobs you get to twist. every single one, in order, nobody's getting left behind:
-h,--helpβ shows this help message and then exits. it's giving "ask and you shall receive". π (default: it just does the thing)-f INPUTTEXT,--inputtext INPUTTEXTβ the input file, bestie. and be specific about what it wants: plaintext, tokenised, utf-8, and one sentence per line. that's the format, periodt. (default: empty, i.e.(default: )) π-s,--sortedβ output sorted by co-occurrence score. if you want your results looking all neat and ranked and main-character, this is the one. (default:False) β-t THRESHOLD,--threshold THRESHOLDβ the joined occurrence threshold. words that occur less than this? not considered. not even a little bit. it's giving gatekeeping but make it statistics. (default:1) π₯-a,--adjacencyβ computes the adjacency fraction, which is how many co-occurrence are immediate bigrams. yes bestie, we're counting the neighbours. (default:False) π-A,--discountadjacencyβ do not take immediately adjacent fragments (bigrams) into account when computing mutual information. β οΈ heads up: this one requires-a. (default:False) π--pmiβ computes pointwise mutual information. the whole reason we're here tbh. (default:False) π--npmiβ computes normalised pointwise mutual information. pmi but it went to finishing school. (default:False) π§--jaccardβ computes the jaccard similarity coefficient. (default:False) π--diceβ computes the dice coefficient. (default:False) π²
ngl bestie, that's the whole page. every flag, every default, every threshold β accounted for. go compute something iconic. π
and that's a wrap! π«Ά this was pynlpl-computepmi 0.7.7, dated February 2016, and honestly? she's still slaying. bye babes β¨π
π¦ where this page comes from
- debian bookworm: python3-pynlpl 1.2.9-1 Β· GPL-3.0-only
- debian trixie: python3-pynlpl 1.2.9-2 Β· GPL-3.0-only
- ubuntu jammy: python3-pynlpl 1.2.9-1 Β· GPL-3.0-only
- ubuntu noble: python3-pynlpl 1.2.9-1 Β· GPL-3.0-only
- ubuntu resolute: python3-pynlpl 1.2.9-2 Β· GPL-3.0-only
- ubuntu stonking: python3-pynlpl 1.2.9-3 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms