Turftopic: Topic Modelling with Contextual Representations from Sentence Transformers
Open Access
- 3 July 2025
- journal article
- Published by The Open Journal in Journal of Open Source Software
- Vol. 10 (111) , 8183
Abstract
Topic models are machine learning techniques that are able to discover themes in a set of documents. Turftopic is a topic modelling library including a number of recent developments in topic modelling that go beyond bag-of-words models and can understand text in context, utilizing representations from transformers. Turftopic focuses on ease of use, providing a unified interface for a number of different modern topic models, and boasting both model-specific and model-agnostic interpretation and visualization utilities. While the user is afforded great flexibility in model choice and customization, the library comes with reasonable defaults, so as not to needlessly overwhelm first-time users. In addition, Turftopic allows the user to: a) model topics as they change over time, b) learn topics on-line from a stream of texts, c) find hierarchical structure in topics, d) learning topics in multilingual texts and corpora. Users can utilize the power of large language models (LLMs) to give human-readable names to topics. Turftopic also comes with built-in utilities for generating topic descriptions based on key-phrases or lemmas rather than individual words.Keywords
This publication has 20 references indexed in Scilit:
- Mining social media data via supervised topic model: Can social media posts inform customer satisfaction?Decision Sciences, 2025
- Quantitative text analysisNature Reviews Methods Primers, 2024
- Towards the TopMost: A Topic Modeling System Toolkit2024
- Analysing online customer experience in hotel sector using dynamic topic modelling and net promoter scoreJournal of Hospitality and Tourism Technology, 2023
- Unsupervised document classification integrating web scraping, one-class SVM and LDA topic modellingJournal of Applied Statistics, 2021
- Cross-lingual Contextualized Topic Models with Zero-shot Learning2021
- Pre-training is a Hot Topic: Contextualized Document Embeddings Improve Topic Coherence2021
- Topic models meet discourse analysis: a quantitative tool for a qualitative approachInternational Journal of Social Research Methodology, 2019
- Comparing LDA and LSA Topic Models for Content-Based Movie Recommendation Systems2015
- A Comparative Study of Utilizing Topic Models for Information Retrieval2009