get_ngram_distribution

lexnlp.nlp.en.transforms.tokens.get_ngram_distribution(text: str, n: int, lowercase=False, stopword=False) → Dict[str, int]

Get n-gram distribution of text, potentially lowercasing and stopwording first.