<?xml version="1.0" encoding="UTF-8"?>
<oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
  <dc:title>Threshold-Based and Iterative Threshold-Based Naive Bayes
Classifier</dc:title>
  <dc:title>R package tbnb version 0.1.0</dc:title>
  <dc:description>Implements the Threshold-Based Naive Bayes (Tb-NB) classifier
    and its iterative refinement (iTb-NB) for binary sentiment / text
    classification problems. The classifier computes a continuous
    log-likelihood ratio score per document and uses a data-driven decision
    threshold estimated via K-fold cross-validation on a user-selected
    criterion (accuracy, F1 score, Matthews correlation coefficient,
    balanced error, etc.). An optional
    iterative refinement procedure locally re-estimates the threshold in
    regions of class overlap using either Gaussian kernel density estimation
    or a Central Limit Theorem bootstrap approximation. The package exposes
    an idiomatic R formula + data.frame interface together with a
    'quanteda'-based text preprocessing pipeline, supports user-supplied
    document-feature matrices, and includes an optional word-embedding
    extension that augments the Bag-of-Words with K nearest semantic
    neighbours of each token. The package additionally implements the
    p-value extension proposed by Romano (2025) for both document- and
    feature-level interpretability via tbnb_pvalues(). Methods are
    described in Romano, Contu, Mola, Conversano (2024)
    &lt;doi:10.1007/s11634-023-00536-8&gt;,
    Romano, Zammarchi, Conversano (2024)
    &lt;doi:10.1007/s10260-023-00721-1&gt;, and Romano (2025)
    &lt;doi:10.1007/978-3-031-96736-8_41&gt;.</dc:description>
  <dc:type>Software</dc:type>
  <dc:relation>Depends: R (&gt;= 4.0)</dc:relation>
  <dc:relation>Imports: Matrix, methods, stats, grDevices, graphics, quanteda (&gt;=
3.0.0)</dc:relation>
  <dc:relation>Suggests: text2vec, stopwords, SnowballC, cld2, cld3, dbscan,
viridisLite, testthat (&gt;= 3.0.0), ggplot2</dc:relation>
  <dc:creator>Maurizio Romano &lt;romano.maurizio@unica.it&gt;</dc:creator>
  <dc:publisher>Comprehensive R Archive Network (CRAN)</dc:publisher>
  <dc:contributor>Maurizio Romano [aut, cre]</dc:contributor>
  <dc:rights>GPL (&gt;= 3)</dc:rights>
  <dc:date>2026-07-21</dc:date>
  <dc:format>application/tgz</dc:format>
  <dc:identifier>https://CRAN.R-project.org/package=tbnb</dc:identifier>
  <dc:identifier>doi:10.32614/CRAN.package.tbnb</dc:identifier>
  <dc:language>en-GB</dc:language>
</oai_dc:dc>
