nimare.extract.download_mallet

download_mallet(data_dir=None, overwrite=False, verbose=1)[source]

Download the MALLET toolbox for LDA topic modeling.

Parameters:
  • data_dir (str, optional) – Location in which to place MALLET. Default is None, which uses the package’s default path for downloaded data.
  • overwrite (bool, optional) – Whether to overwrite existing files or not. Default is False.
  • verbose (int, optional) – Default is 1.
Returns:

data_dir – Updated data directory pointing to MALLET files.

Return type:

str