Skip to content

Biterm Topic Models for Short Text

0packages dependsuggested by 2
6.2Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.3.8
  • fix some R CMD check NOTEs about the use of itemize in the documentation

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.8 min · r-devel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 0.3.8
READMEYes · 385 wordsVignettesNoNEWSYes · 100% structured · mentions 0.3.8Citation fileNoWebsitenot declared in DESCRIPTION
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

6.2K
CRAN downloads in the past year
Rank #6,130 · ~17/day · ~514/mo
Daily download trend is not available in this view yet.
56430 days
1.3K90 days
6.2K1 year
Compare downloads with other packages →
Also on427 r2u13 autocran86 c2d4u

Repository

bnosac/btm ↗Organization: bnosac
98Stars
15Forks
4Open issues
0Open PRs
9Releases
59Commits
2Commit identities
rtopic-modelingnatural-language-processingbiterm-topic-modelling
License file reads as Apache-2.0 · 59 commits · Last activity 2025-11-26 · 0% stars, 30d
Responsiveness
How these are sampled
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

2025-05-23 · 952026-07-07 · 98
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux and macOS, and on R-devel

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
4 external dependencies (excludes base and recommended)

Installing BTM adds 1 package (1 with compiled code, 1.8 MB of source tarballs). Heaviest: Rcpp 1.8 MB.

Depends (0)
none
Imports (2)
Rcpputils
LinkingTo (1)
Suggests (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 2
Suggests, most downloaded first

People & History

People (3)
Author, Maintainer since 0.2 (2018), Copyright holder
R wrapper
Contributor, Copyright holder
BTM C++ library
Copyright holder
R wrapper
Releases (10)

Pick two releases to compare their code metrics.

Show 3 earlier eventsHide 3 earlier events
  • R
    R 3.6.0 released · 2019-04-26
  • 0.2
    record
    2018-12-28
  • R
    R 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
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("BTM")
Wijffels, J., BNOSAC, & Xiaohui Yan. (2025). BTM: Biterm Topic Models for Short Text (Version 0.3.8) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for BTM version 0.3.8 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy