Text-Fabric dataset of the Greek New Testament, based on the Nestle 1904 (7th printing) edition.
About this datasetFeature group | Feature type | Data type | Available for node types | Used by viewtypes |
---|---|---|---|---|
Sectional |
Node |
Integer |
chapter verse sentence group clause wg phrase subphrase word |
syntax-view wg-view |
This feature indicates the chapter number within a book.
An integer.
Not all nodetypes provide this feature. To determine the chapter for nodetypes sentence
, wg
, phrase
, subphrase
, or group
, the following snippet can be used.
# the node number of the wordgroup is stored in wgNode
wgNode=390658 # this is a wg in Matt. 1:1
chapterNode=L.u(wgNode,otype='chapter')[0] # returns a tuple
chapter=F.chapter.v(chapterNode)
print (chapter) # Output: 1
This snippet returns 1 as the value for the chapter feature.
The chapter information is calculated from the XML attribute ref of the w (word) tag.