N1904-TF

Text-Fabric dataset of the Greek New Testament, based on the Nestle 1904 (7th printing) edition.

About this dataset
Transcription
Featureset
Optional features
Viewtypes
Textformats
Syntaxtrees
Tutorial
Latest release

Nestle 1904 GNT - Feature: num

Feature 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

Feature description

This feature provides the sequential number for the various node type. The context depends on the node type (see next section).

Feature values

For node type:

Notes

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.

Source description

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.


Browse all features by name, node type, data type, feature group or feature type.