get_character_distribution

lexnlp.nlp.en.transforms.characters.get_character_distribution(text, lowercase=False, stopword=False)

Get character distribution of text, potentially lowercasing and stopwording first. N.B. This method does not include or count whitespace.

Parameters:
  • text
  • lowercase
  • stopword
Returns: