dhlab.text.dispersion

Module Contents

Classes

Dispersion

Count occurrences of words in the given URN object.

API

class dhlab.text.dispersion.Dispersion(urn: str = None, wordbag: list = None, window: int = 1000, pr: int = 100)

Bases: dhlab.text.dhlab_object.DhlabObj

Count occurrences of words in the given URN object.

Initialization

Wrapper class for get_dispersion

Parameters:
  • urn (str, optional) – urn, defaults to None

  • wordbag (list, optional) – words, defaults to None

  • window (int, optional) – The number of tokens to search through per row, defaults to 1000

  • pr (int, optional) – defaults to 100

plot(**kwargs)
classmethod from_df(df)