Datasets:
UBS Paratext Parallel Passages Database
Source-faithful projection of the official UBS Paratext Parallel Passages Database, including Old Testament parallels, New Testament parallels, and Old Testament quotations in the New Testament.
Hugging Face: NuBerea/ubs-parallel-passages.
Dataset structure
Use passage_group_id to join groups to members and passage_member_id to
join members to word marks. References retain the upstream Paratext notation,
such as MAT 27:61.
passage_references supplies normalized book_id, book_num, chapter,
start_chapter, start_verse, end_chapter, end_verse, osis_start,
osis_end and osis_ref fields. Discontinuous references get separate rows:
LUK 6:27-28,35 does not match a lookup for Luke 6:30.
upstream_revision identifies the pinned UBS GitHub revision.
The dataset contains references and match annotations, not biblical text or pairwise word alignments. A full-match mark in a group with several members means a match in at least one other member, not necessarily every member.
Query layout
Schema version 2 removes the embedded official_xml column. No query table
contains XML; the original document remains available at the pinned upstream
URL recorded with its SHA-256 in SOURCE.json.
All configs use Zstandard-compressed Parquet with 32-bit integer fields and
column statistics. Row groups contain up to 512 rows, or 2,048 for word marks.
Reference rows are sorted by
book_id, chapter, start_verse, end_verse and passage_group_id;
members and marks are clustered by their join identifiers. This enables
predicate pushdown and row-group pruning without producing tiny per-book files.
For example, DuckDB can query the published reference table directly:
SELECT passage_group_id, passage_member_id, osis_ref
FROM read_parquet(
'https://huggingface.co/datasets/NuBerea/ubs-parallel-passages/resolve/main/data/passage_references/train-00000-of-00001.parquet'
)
WHERE book_id = 'Luke' AND chapter = 6
AND start_verse <= 30 AND end_verse >= 30;
OSIS formatting does not convert the source's verse numbering to another edition. Word masks remain source-edition annotations, not token alignments.
Usage
For private access, first authenticate with hf auth login.
from datasets import load_dataset
groups = load_dataset(
"NuBerea/ubs-parallel-passages", "passage_groups", split="train"
)
members = load_dataset(
"NuBerea/ubs-parallel-passages", "passage_members", split="train"
)
marks = load_dataset(
"NuBerea/ubs-parallel-passages", "word_marks", split="train"
)
references = load_dataset(
"NuBerea/ubs-parallel-passages", "passage_references", split="train"
)
# Gospel parallels are part of the NT-only groups.
nt_parallels = groups.filter(lambda row: row["group_type"] == "nt_parallel")
Rebuild
From the external-contributions repository root:
python -m pip install -r requirements.txt
python ubs-parallel-passages-dataset/create_dataset.py
The builder pins the source revision, verifies its SHA-256 and coverage, and
records the generated Parquet checksums in SOURCE.json.
Match masks
Each source digit represents one source-edition orthographic word:
0: no match1: partial match2: full match
Codes 3–5 and 6–8 carry the same match classes plus one or two
presentation line breaks. The projection separates match_class from
line_breaks_before.
Edition identities
The XML attribute alone does not determine the edition:
| Context | Attribute | Mask edition |
|---|---|---|
| OT-only group | HEB |
BHS |
| Mixed OT/NT quotation group | HEB |
LXX |
| Any Greek NT member | GRK |
UBSGNT5 |
These masks are not projected onto NuBerea's WLC, Rahlfs, or SBLGNT tokens in this source dataset. Such projection requires separate edition concordances.
Configs
passage_groups: one official parallel grouppassage_members: one referenced passage and complete word maskword_marks: one decoded source-edition word markpassage_references: one normalized contiguous reference span
Coverage
- 2,193 groups
- 5,266 passage members
- 93,419 word marks
- 5,276 reference spans
- 1,184 OT-only groups
- 760 NT-only groups
- 249 OT/NT quotation groups
Frozen source
- Upstream: https://github.com/ubsicap/ubs-open-license
- Revision:
33dcc8c671511151551804e073f1d461bc5d5b1a - Source:
parallel passages/ParallelPassages.xml
License
UBS Parallel Passage Database © 2023 United Bible Societies. Licensed under CC BY-SA 4.0. See the upstream documentation. NuBerea reformats the XML into linked Parquet tables and decodes the word marks; the source references and masks are preserved.
Citation
@dataset{ubs_parallel_passages,
title={UBS Parallel Passage Database},
author={{United Bible Societies}},
url={https://github.com/ubsicap/ubs-open-license/tree/main/parallel%20passages},
note={Copyright 2023 United Bible Societies; source references and word masks preserved},
license={CC-BY-SA-4.0}
}
- Downloads last month
- 1,294