BHSaddons

BHSaddons — additional features layered on the BHSA dataset

Additional features for the BHSA Text-Fabric dataset.

Using BHSaddons

Adding the features

from tf.app import use

A = use("etcbc/BHSA", version="2021",
        mod="tonyjurg/BHSaddons/tf/", hoist=globals())

To use this functionality, the Text-Fabric package must support downloading files from GitHub. If it was installed without GitHub functionality, you might encounter errors like the following when trying to load the additional features:

The requested data is not available offline
	~/text-fabric-data/github/tonyjurg/BHSaddons/tf/2021 not found
Backend provider github not supported.
Cannot reach online data on github
Try installing text-fabric one of the following:
pip install text-fabric[github]
pip install text-fabric[all]

To resolve this issue, ensure that GitHub support is added to Text-Fabric by running:

!pip install text-fabric[github]

Since GitHub implemented a API rate limit of 60 requests per hour, it is recommended to use a personal access token to increase this rate limit. Refer to the following resources for guidance:

Example use case

The following python snippet allows for easy selection of all verse nodes of the first parasha, Bereshit.

# find all word nodes for parasha Bereshit
parashaQuery = '''
verse parashatrans=Bereshit
  word
'''
parashaResults = A.search(parashaQuery)
for verse, node in parashaResults:
    # do some interesting stuff ...