What is topic modelling?
Topic modelling is a family of unsupervised methods that extracts hidden topics from words occurring together in an unlabelled document collection and shows which topics each document contains.
It is also spelt topic modeling. It differs from text classification in labels: classification assigns predefined categories, while topic modelling discovers the categories from the data. Clustering puts each document in one group; in classic topic models a document can be a mix of several topics.
- Topic
- Natural language processing and Turkish
- Also known as
- Topic modeling
How topic modelling works
- Documents are preprocessed; for Turkish lemmatisation and removing very common words make topics easier to read.
- In probabilistic methods such as LDA each document is modelled as a distribution over topics and each topic as a distribution over words.
- Newer approaches turn documents into embeddings, cluster them and take each cluster's distinctive words as its topic label.
- The resulting topics are word lists; naming them and tuning the number of topics needs human judgement.
In more detail
Topic coherence and evaluation metrics
Topic model quality is commonly evaluated using coherence metrics (such as NPMI and C_v) alongside topic diversity, which measure whether the top words in a topic appear together meaningfully and stay distinct across topics. Because automated metrics do not always match human judgement, especially in neural topic models, quantitative scores should be paired with domain-expert inspection.
Morphology and embeddings in agglutinative languages
Classical bag-of-words models like LDA struggle with agglutinative languages such as Turkish because a single root can spawn dozens of surface forms that dilute word co-occurrence statistics. Subword embedding models capture semantic similarity across inflected forms much better, yet morphological normalisation remains valuable when extracting readable c-TF-IDF topic keywords.
LLM-assisted labelling, guided and dynamic topic modelling
Modern topic modelling workflows combine embedding clusters with local large language models to generate concise, human-readable topic labels and summaries instead of raw word lists. For known business categories, seeded or guided topic modelling steers discovery towards priority themes, while dynamic topic modelling tracks how theme prevalence shifts over time.
Commonly confused terms
| Term | How it differs |
|---|---|
| Keyword extraction | Keyword extraction identifies salient words or phrases inside an individual document, while topic modelling uncovers recurring thematic word distributions across an entire corpus. |
Why topic modelling matters for on-premises AI
Organisations accumulate large piles of unread text: complaints, call centre notes, internal requests. Without labels, topic modelling shows what kinds of topics appear and how often; it also helps define categories for a classifier built later. It can run on in-house servers without data leaving the organisation. Results are exploratory; they are a starting point for human interpretation rather than direct input to decisions.
A public agency applies topic modelling to a year of citizen complaints, feeds the leading topics into its service improvement plan and later uses the same topics as categories for automatic classification.
Common questions
Can topic modelling outputs be used directly for decisions?
Usually not. Topics are word lists that feed decisions only after people interpret and name them.
How is the number of topics chosen?
In classic methods it is set in advance and tuned by trying values against coherence measures. Density-based embedding methods such as BERTopic can find it from clustering.
Related terms
- Clustering
- Text classification
- Natural language processing
- Unsupervised learning
- Information extraction
- Text summarisation
- Lemmatisation
Sources
- Blei, Ng and Jordan, Latent Dirichlet Allocation, 2003
- Grootendorst, BERTopic: Neural topic modeling with a class-based TF-IDF procedure, 2022
In the glossary: Glossary, R to Z