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 |
book sentence group clause wg phrase subphrase word |
syntax-view wg-view |
This feature provides the sequential number for the various node type. The context depends on the node type (see next section).
For node type:
book
: Sequence within the Greek New Testament corpus (Matthew=1, Mark=2, …, Revelation=27)sentence
: Sentence sequence number within a book.group
: Group sequence number within a book.clause
: Clause sequence number within a book.phrase
: Phrase sequence number within a book.subphrase
: Subphrase sequence number within a book.word
: Word numbered inside the verse (matching the last part of feature ref).To determine the sequence number of a word inside a sentence, the following snippet can be used:
# the node number of the word is stored in wordNode
wordNode=32048 # first word of Luke 3:24
sentenceNode=L.u(wordNode,otype='sentence') # returns a tuple
E.oslots.s(sentenceNode[0]).index(wordNode)
Running this code returns 7
. Since the index starts with zero, this means this word is the eigth one in the verse.
To find the sequence number inside a book, use the following snippet:
# the node number of the word is stored in wordNode
wordNode=29588 # first word of Luke 1:2
sentenceNode=L.u(wordNode,otype='book') # returns a tuple
E.oslots.s(sentenceNode[0]).index(wordNode)
This returns 11
since this is the 12th word in the Gospel of Luke.
The num feature is calculated and not present in the source XML data, but derived from the structure of the corpus and is calculated based on the sequence of elements.