tommy.model.custom_name_model

Classes

class tommy.model.custom_name_model.TopicNameModel[source]

Bases: object

A class to store custom topic names for each configuration.

clear_topic_names() None[source]

Function to clear all custom topic names in a config when rerunning topic modelling. :return: None

get_topic_name(index: int) str[source]

Function to get the custom name of a topic. If no custom name is set, the default name is returned. :param config_name: The name of the configuration :param index: The index of the topic :return: The name of the topic

set_topic_name(index: int, name: str) None[source]

Function to set a custom name for a topic. :param config_name: The name of the configuration :param index: The index of the topic :param name: The custom name to set :return: None