tommy.datatypes.topics.Topic

class tommy.datatypes.topics.Topic(topic_id: int, top_words: list[str])[source]

Bases: object

A dataclass representing a topic resulting from modelling run, holding a number of top words per topic.

property n_words: int

Get the number of top words saved in this topic object

top_words: list[str]
topic_id: int