infineac.topic_extractor.map_topics_to_categories#

infineac.topic_extractor.map_topics_to_categories(topics: list[int], mapping: DataFrame) list[str][source]#

Maps a list of topics to the corresponding categories.

The topics -1 and -2 are mapped to the “standard” and “empty” categories.

topicslist[int]

List of topics.

mappingpl.DataFrame

DataFrame containing the mapping from topics to categories.

list[str]

List of categories.