Package: textclassificationtutorial 0.1.2

textclassificationtutorial: Reproducible Text Classification Workflows

Dependency-light tools and tutorials for teaching reproducible text classification. The package covers HTML text extraction, sentence segmentation, text preprocessing, document-term matrices, TF-IDF, keyword extraction, cosine similarity, stratified cross-validation, classification metrics, and a multinomial Naive Bayes classifier. It modernizes the code accompanying Kobayashi, V. B., Berkers, H. A., Mol, S. T. Kismihok, G., and Den Hartog, D. N. (2017) <doi:10.1177/1094428117719322> The package replaces the original scripts in the paper.

Authors:Vladimer Kobayashi [aut, cre], Stefan Mol [aut], Gabor Kismihok [aut]

textclassificationtutorial_0.1.2.tar.gz
textclassificationtutorial_0.1.2.zip(r-4.7-any)textclassificationtutorial_0.1.2.zip(r-4.6-any)textclassificationtutorial_0.1.2.zip(r-4.5-any)
textclassificationtutorial_0.1.2.tgz(r-4.6-any)textclassificationtutorial_0.1.2.tgz(r-4.5-any)
textclassificationtutorial_0.1.2.tar.gz(r-4.7-any)textclassificationtutorial_0.1.2.tar.gz(r-4.6-any)
textclassificationtutorial_0.1.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
textclassificationtutorial/json (API)

# Install 'textclassificationtutorial' in R:
install.packages('textclassificationtutorial', repos = c('https://vkobayashi.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/vkobayashi/textclassificationtutorial/issues

On CRAN:

Conda:

3.00 score 355 downloads 13 exports 0 dependencies

Last updated from:9338ed09b2. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK122
source / vignettesOK201
linux-releaseOK119
macos-releaseOK150
macos-oldrelOK194
windows-develOK77
windows-releaseOK68
windows-oldrelOK66
wasm-releaseOK102

Exports:classification_metricscosine_similaritydocument_term_matrixextract_html_dirextract_html_textextract_keywordsf_measurefit_naive_bayespreprocess_textread_label_filesplit_sentencesstratified_foldstf_idf

Dependencies:

Evaluating a Text Classifier
Why evaluation design matters | Stratified folds | Cross-validation loop | Interpret the metrics | From tutorial to research

Last update: 2026-08-26
Started: 2026-08-26

Getting Started with Text Classification
Overview | Extract text from HTML | Segment and normalize | Create document features | Explore similarity | Train a classifier | Reproducible research checklist

Last update: 2026-08-26
Started: 2026-08-26