dariah package¶
Subpackages¶
Submodules¶
dariah.api module¶
dariah.api¶
This module implements the high-level API.
-
dariah.api.
topics
(directory, stopwords, num_topics, num_iterations, **kwargs)¶ Train a topic model.
- Parameters:
directory (str): Path to corpus directory. stopwords (int, list): Either a threshold for most frequent words,
or a list of stopwords.
num_topics (int): Number of topics. num_iterations (int): Number of iterations. alpha (float): TODO. Defaults to 0.1. eta (float): TODO. Defaults to 0.01. random_state (int): TODO. Defaults to None. mallet (str): TODO. Defaults to None.
- Returns:
A topic model and its visualizations.