Biterm Topic Models for Short Text
Overview
Biterm Topic Models find topics in collections of short texts. It is a word co-occurrence based topic model that learns topics by modeling word-word co-occurrences patterns which are called biterms. This in contrast to traditional topic models like Latent Dirichlet Allocation and Probabilistic Latent Semantic Analysis which are word-document co-occurrence topic models. A biterm consists of two words co-occurring in the same short text window. This context window can for example be a twitter message, a short answer on a survey, a sentence of a text or a document identifier. The techniques are explained in detail in the paper 'A Biterm Topic Model For Short Text' by Xiaohui Yan, Jiafeng Guo, Yanyan Lan, Xueqi Cheng (2013) https://github.com/xiaohuiyan/xiaohuiyan.github.io/blob/master/paper/BTM-WWW13.pdf.
- fix some R CMD check NOTEs about the use of itemize in the documentation
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
- OK14 OK2026-04-08
Show 2 earlier changesHide 2 earlier changes
- ERROR13 OK, 1 ERROR2026-04-07
- OK14 OK2026-03-10
Documentation
- Help pages
- 5
- Examples that run
- 100%5 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 40%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 2
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
3 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/bnosac/btm on 2026-10-18.
The R CMD check workflow runs on Linux and macOS, and on R-devel
Dependencies
Installing BTM adds 1 package (1 with compiled code, 1.8 MB of source tarballs). Heaviest: Rcpp 1.8 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.3.8Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.3.72023-02-11 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.3.62021-07-02 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 0.3.52021-02-18 · diff ↗
- 0.3.42020-10-12 · diff ↗
- 0.3.32020-10-10 · diff ↗
- 0.3.12020-05-02 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.32020-03-15 · diff ↗
- 0.2.12019-05-31 · diff ↗
Show 3 earlier eventsHide 3 earlier events
- RR 3.6.0 released · 2019-04-26
- 0.22018-12-28
- RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2018-12-28
- Total releases
- 10 / 8 yrs
- License
- Apache License 2.0 OSI
- Download size
- 111 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("BTM")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.