Skip to content

Is there a way to include Psalm superscriptions in a UsfmFileTextCorpus that uses English versification?  #101

Open
@robertsonbrinker

Description

@robertsonbrinker

When I load an English Bible into a UsfmFileTextCorpus and then look at the Psalms, I notice that the superscriptions are not included in the corpus. For example, using the Berean Standard Bible and versification from Berean Bible: Free Downloads, when printing out Psalm 3 there is no superscription.

from machine.corpora import UsfmFileTextCorpus
from machine.scripture import Versification

targetVersification = Versification.load("./resources/bsb_usx/release/versification.vrs", fallback_name="web")
corpus = UsfmFileTextCorpus("./resources/bsb_usfm", versification = targetVersification, include_markers=True)

for row in corpus:
    if(row.ref.bbbcccvvvs[:6] == "019003"):
        print(row)

What printed:
PSA 3:1 - O LORD, how my foes have increased! How many rise up against me!
PSA 3:2 - Many say of me, “God will not deliver him.” Selah
PSA 3:3 - But You, O LORD, are a shield around me, my glory, and the One who lifts my head.
PSA 3:4 - To the LORD I cry aloud, and He answers me from His holy mountain. Selah
PSA 3:5 - I lie down and sleep; I wake again, for the LORD sustains me.
PSA 3:6 - I will not fear the myriads set against me on every side.
PSA 3:7 - Arise, O LORD! Save me, O my God! Strike all my enemies on the jaw; break the teeth of the wicked.
PSA 3:8 - Salvation belongs to the LORD; may Your blessing be on Your people. Selah

Is there a way to access or include Psalm superscriptions in a corpus that uses English versification when using machine?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions