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 - Viewtype: syntax-view

The syntax viewtype displays the syntax tree using separate node types for clauses, phrases and subphrases, while annotiting them with terms common for linguistic research. This is the default viewtype, so it is automaticaly set upon invocation of the TF dataset.

Swithing to a specific viewtype can be done by providing the proper argument to command A.viewtype(). This command is specific to this dataset and automaticaly loaded upon invocation of the TF dataset.

The relation between node types and view types is shown in the following table.

Viewtype Invocation Associated node types
wg-view A.viewtype(‘wg’) wg
syntax-view (this view) A.viewtype(‘syntax’) subphrase phrase clause group

Note: the node types Word, Sentence, verse, chapter, and Book are common for both views.

The following features are created to be specificaly used in this viewtype:

The following images show John 1:1 using the syntas-view:

Note that for some features from the wg-view, such as cls, junction, role, rule, and type, are shown in parallel to the syntax-view information on the right side of the symbol \, while on the left side, it shows the values of the features typ, function, and rela.

Impact on using parent and sibling feature

Understanding the distinctions between these views is especialy important when building queries that involve parent-child relations. E.g. when using the edge features parent and sibling. See following image for details:

This image compares the parent (arrows) and sibling features (connector with circle) for the first phrase of the book of John (John 1:1) for the WordGroup view and the Syntax view for the data. The parent feature for a specific node can be obtained using E.parent.f(node) and the sibling feature can be calculated using E.sibling.b(node), where node stands for the number of the node. The direction of the arrow indicates the parent node of a given node. The dotted lines indicate that the wg nodes share the same data as the sentence, clause, and phrase. The subphrase, verse, and chapter nodes are not nested in the calculation of the parent and sibling features.

Implementatation

The following actions are performed when the command A.viewtype(‘syntax’) is issued:

The code for the A.viewtype() command is located in file app.py.

In this file, the line ‘app.viewtype(‘syntax’)’ within the __init__() function is called after loading all corpus data and creating the API object, to set the default viewtype to ‘syntax’.