CoolFace
Modelpublic

LoveJesus/intertextual-classifier-chirho

sourceHugging Facemitupdated 7mo agoView on Hugging Face
0likes17downloads
Model Card

Intertextual Classifier (Chirho)

RoBERTa-base fine-tuned for classifying biblical cross-reference connection types.

"For God so loved the world that he gave his only begotten Son, that whoever believes in him should not perish but have eternal life." - John 3:16

Model Description

Given two Bible passages that are cross-referenced, this model classifies the type of intertextual connection between them into one of 7 categories:

LabelDescription
thematic_parallelPassages share the same theme or topic
direct_quoteOne passage directly quotes another
prophetic_fulfillmentOT prophecy fulfilled in NT
typologicalOT type foreshadowing NT antitype
contrastPassages present contrasting ideas
historical_narrativeShared historical events or figures
theological_expansionLater passage expands on earlier theology

Training Details

  • —Base model: roberta-base (125M params)
  • —Training data: 19,164 balanced examples (Grok-labeled from TSK cross-references)
  • —Class balancing: WeightedTrainer with inverse-frequency CrossEntropyLoss + majority class capping
  • —Epochs: 8
  • —Best epoch: 8 (by eval loss)

Metrics (v2 - Retrained Feb 2026)

MetricValue
Macro F10.761
Micro F10.853
Precision0.665
Recall0.939
Eval Loss0.501

Improvement over v1

Metricv1 (Original)v2 (Retrained)Change
Macro F10.420.761+81%
Micro F10.720.853+18%

Root cause of v1 weakness: 76% class imbalance (thematic_parallel dominated). Fixed with:

  1. 1.Balanced dataset (cap majority class, keep all minority examples)
  2. 2.WeightedTrainer with inverse-frequency class weights

Usage

python
from transformers import pipeline

classifier = pipeline(
    "text-classification",
    model="LoveJesus/intertextual-classifier-chirho",
    top_k=None,
)

text = "[CLS] Genesis 3:15 And I will put enmity between thee and the woman, and between thy seed and her seed; it shall bruise thy head, and thou shalt bruise his heel. [SEP] Galatians 4:4 But when the fulness of the time was come, God sent forth his Son, made of a woman, made under the law [SEP]"

result = classifier(text)
print(result)
# [{'label': 'prophetic_fulfillment', 'score': 0.95}, ...]

Part of Bible ML Pipeline

This model is part of the Intertextual Reference Network pipeline:

  1. 1.Embedder (LoveJesus/intertextual-embedder-chirho): Finds similar passages
  2. 2.Classifier (this model): Classifies the connection type

Dataset: LoveJesus/intertextual-dataset-chirho