Code to compute a word's probability using the fixes from "How to Compute the Probability of a Word"
git clone git@github.com:tpimentelms/probability-of-a-word.git cd probability-of-a-word pip install -e .
Returns the probability of a pattern of word length N followed by a word derived from a given corpus. Parsing done by nltk. NOTE: some special characters throw it out of whack. > python ngram.py ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results