This repository offers a set of features built specifically for use with the BHSA Text-Fabric dataset. Text-Fabric is a powerful platform for analyzing biblical texts with linguistic and structural detail. To complement this, our this feature set focus on the parashot, the weekly portions into which the Torah is divided. A parasha is a designated section of the Torah, read during weekly synagogue services. Together, the 54 parashot divide the entire five books of the Torah, forming a yearly cycle of reading that is central to Jewish liturgy and tradition.
The following features are provided:
Feature name | Data type | Available on node | Description | Examples |
---|---|---|---|---|
aliyotnum | Integer |
verse |
Sequence number of the aliyot within the parasha | 1 ... 7 |
maftir | String |
verse |
Set to '1' if this verse is part of a maftir | 1 |
parashahebr | String |
verse |
The name of the parasha in Hebrew | בְּרֵאשִׁית נֹחַ |
parashanum | Integer |
verse |
The sequence number of the parasha | 1 ... 54 <empty> |
parashatrans | String |
verse |
Transliteration of the Hebrew parasha name | Bereshit Noach |
parashaverse | Integer |
verse |
The sequence number of the verse within the parasha | 1 2 ... |
wordboundary | String |
word |
This feature indicates wordboudaries (spaces OR maqaf) | 1 |
By default, the additional features of the BHSA Text-Fabric dataset are not loaded. To include them, use the mod
option during invocation, as shown below:
# Load the BHSA app and data with additional parasha features
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:
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 ...