"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# Loading-the-New-Testament-Text-Fabric (from local disk)\n",
"NA = use (\"tjurg/NA1904\", checkData=\"clone\", hoist=globals())"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 2 Perform some basic display \n",
"\n",
"note: the implementation with regards how phrases need to be displayed (esp. with regards to conjunctions) is still to be done."
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" 0.01s 25 results\n"
]
},
{
"data": {
"text/html": [
"verse 1"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"verse
clause #1
clausetype=S-V-O
phrase #1
phrasefunction_long=Predicate functionphrasetype=N2NP
Βίβλος
chapter=1gloss_EN=[The] bookgn=Femininenumber=Singularsp_full=noun
γενέσεως
chapter=1gloss_EN=of [the] genealogygn=Femininenumber=Singularsp_full=noun
Ἰησοῦ
chapter=1gloss_EN=of Jesusgn=Masculinenumber=Singularsp_full=noun
Χριστοῦ
chapter=1gloss_EN=Christgn=Masculinenumber=Singularsp_full=noun
υἱοῦ
chapter=1gloss_EN=songn=Masculinenumber=Singularsp_full=noun
Δαυεὶδ
chapter=1gloss_EN=of Davidgn=Masculinenumber=Singularsp_full=noun
υἱοῦ
chapter=1gloss_EN=songn=Masculinenumber=Singularsp_full=noun
Ἀβραάμ.
chapter=1gloss_EN=of Abrahamgn=Masculinenumber=Singularsp_full=noun
"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"verse 2"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"verse
clause #2
clausetype=Conj13CL
phrase #2
phrasefunction_long=Subject functionphrasetype=N2NP
Ἀβραὰμ
chapter=1gloss_EN=Abrahamgn=Masculinenumber=Singularsp_full=noun
phrase #3
phrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
chapter=1gloss_EN=begatmood=Indicativenumber=Singularperson=Thirdsp_full=verbtense=Aoristvoice=Active
phrase #4
phrasefunction_long=Object functionphrasetype=N2NP
τὸν
chapter=1gloss_EN=-gn=Masculinenumber=Singularsp_full=determiner
Ἰσαάκ,
chapter=1gloss_EN=Isaacgn=Masculinenumber=Singularsp_full=noun
clause #3
clausetype=Conj13CL
phrase #5
phrasefunction_long=Object functionphrasetype=N2NP
δὲ
chapter=1gloss_EN=thensp_full=conjunction
phrase #6
phrasefunction_long=Subject functionphrasetype=N2NP
Ἰσαὰκ
chapter=1gloss_EN=Isaacgn=Masculinenumber=Singularsp_full=noun
phrase #7
phrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
chapter=1gloss_EN=begatmood=Indicativenumber=Singularperson=Thirdsp_full=verbtense=Aoristvoice=Active
phrase #8
phrasefunction_long=Object functionphrasetype=N2NP
τὸν
chapter=1gloss_EN=-gn=Masculinenumber=Singularsp_full=determiner
Ἰακώβ,
chapter=1gloss_EN=Jacobgn=Masculinenumber=Singularsp_full=noun
clause #4
clausetype=Conj13CL
phrase #9
phrasefunction_long=Object functionphrasetype=N2NP
δὲ
chapter=1gloss_EN=thensp_full=conjunction
phrase #10
phrasefunction_long=Subject functionphrasetype=N2NP
Ἰακὼβ
chapter=1gloss_EN=Jacobgn=Masculinenumber=Singularsp_full=noun
phrase #11
phrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
chapter=1gloss_EN=begatmood=Indicativenumber=Singularperson=Thirdsp_full=verbtense=Aoristvoice=Active
phrase #12
phrasefunction_long=Object functionphrasetype=Pron2NP
τὸν
chapter=1gloss_EN=-gn=Masculinenumber=Singularsp_full=determiner
Ἰούδαν
chapter=1gloss_EN=Judahgn=Masculinenumber=Singularsp_full=noun
καὶ
chapter=1gloss_EN=andsp_full=conjunction
τοὺς
chapter=1gloss_EN=thegn=Masculinenumber=Pluralsp_full=determiner
ἀδελφοὺς
chapter=1gloss_EN=brothersgn=Masculinenumber=Pluralsp_full=noun
αὐτοῦ,
chapter=1gloss_EN=of himgn=Masculinenumber=Singularsp_full=pronoun
"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"verse 3"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"verse
clause #5
clausetype=Conj13CL
phrase #13
phrasefunction_long=Object functionphrasetype=Pron2NP
δὲ
chapter=1gloss_EN=thensp_full=conjunction
phrase #14
phrasefunction_long=Subject functionphrasetype=N2NP
Ἰούδας
chapter=1gloss_EN=Judahgn=Masculinenumber=Singularsp_full=noun
phrase #15
phrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
chapter=1gloss_EN=begatmood=Indicativenumber=Singularperson=Thirdsp_full=verbtense=Aoristvoice=Active
phrase #16
phrasefunction_long=Object functionphrasetype=N2NP
τὸν
chapter=1gloss_EN=-gn=Masculinenumber=Singularsp_full=determiner
Φαρὲς
chapter=1gloss_EN=Perezgn=Masculinenumber=Singularsp_full=noun
καὶ
chapter=1gloss_EN=andsp_full=conjunction
τὸν
chapter=1gloss_EN=-gn=Masculinenumber=Singularsp_full=determiner
Ζαρὰ
chapter=1gloss_EN=Zerahgn=Masculinenumber=Singularsp_full=noun
phrase #17
phrasefunction_long=Adverbial functionphrasetype=N2NP
ἐκ
chapter=1gloss_EN=out ofsp_full=preposition
τῆς
chapter=1gloss_EN=-gn=Femininenumber=Singularsp_full=determiner
Θάμαρ,
chapter=1gloss_EN=Tamargn=Femininenumber=Singularsp_full=noun
clause #6
clausetype=Conj13CL
phrase #18
phrasefunction_long=Adverbial functionphrasetype=N2NP
δὲ
chapter=1gloss_EN=thensp_full=conjunction
phrase #19
phrasefunction_long=Subject functionphrasetype=N2NP
Φαρὲς
chapter=1gloss_EN=Perezgn=Masculinenumber=Singularsp_full=noun
phrase #20
phrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
chapter=1gloss_EN=begatmood=Indicativenumber=Singularperson=Thirdsp_full=verbtense=Aoristvoice=Active
phrase #21
phrasefunction_long=Object functionphrasetype=N2NP
τὸν
chapter=1gloss_EN=-gn=Masculinenumber=Singularsp_full=determiner
Ἐσρώμ,
chapter=1gloss_EN=Hezrongn=Masculinenumber=Singularsp_full=noun
clause #7
clausetype=Conj13CL
phrase #22
phrasefunction_long=Object functionphrasetype=N2NP
δὲ
chapter=1gloss_EN=thensp_full=conjunction
phrase #23
phrasefunction_long=Subject functionphrasetype=N2NP
Ἐσρὼμ
chapter=1gloss_EN=Hezrongn=Masculinenumber=Singularsp_full=noun
phrase #24
phrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
chapter=1gloss_EN=begatmood=Indicativenumber=Singularperson=Thirdsp_full=verbtense=Aoristvoice=Active
phrase #25
phrasefunction_long=Object functionphrasetype=N2NP
τὸν
chapter=1gloss_EN=-gn=Masculinenumber=Singularsp_full=determiner
Ἀράμ,
chapter=1gloss_EN=Ramgn=Masculinenumber=Singularsp_full=noun
"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"verse 4"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"verse
clause #8
clausetype=Conj13CL
phrase #26
phrasefunction_long=Object functionphrasetype=N2NP
δὲ
chapter=1gloss_EN=thensp_full=conjunction
phrase #27
phrasefunction_long=Subject functionphrasetype=N2NP
Ἀρὰμ
chapter=1gloss_EN=Ramgn=Masculinenumber=Singularsp_full=noun
phrase #28
phrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
chapter=1gloss_EN=begatmood=Indicativenumber=Singularperson=Thirdsp_full=verbtense=Aoristvoice=Active
phrase #29
phrasefunction_long=Object functionphrasetype=N2NP
τὸν
chapter=1gloss_EN=-gn=Masculinenumber=Singularsp_full=determiner
Ἀμιναδάβ,
chapter=1gloss_EN=Amminadabgn=Masculinenumber=Singularsp_full=noun
clause #9
clausetype=Conj13CL
phrase #30
phrasefunction_long=Object functionphrasetype=N2NP
δὲ
chapter=1gloss_EN=thensp_full=conjunction
phrase #31
phrasefunction_long=Subject functionphrasetype=N2NP
Ἀμιναδὰβ
chapter=1gloss_EN=Amminadabgn=Masculinenumber=Singularsp_full=noun
phrase #32
phrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
chapter=1gloss_EN=begatmood=Indicativenumber=Singularperson=Thirdsp_full=verbtense=Aoristvoice=Active
phrase #33
phrasefunction_long=Object functionphrasetype=N2NP
τὸν
chapter=1gloss_EN=-gn=Masculinenumber=Singularsp_full=determiner
Ναασσών,
chapter=1gloss_EN=Nahshongn=Masculinenumber=Singularsp_full=noun
clause #10
clausetype=Conj13CL
phrase #34
phrasefunction_long=Object functionphrasetype=N2NP
δὲ
chapter=1gloss_EN=thensp_full=conjunction
phrase #35
phrasefunction_long=Subject functionphrasetype=N2NP
Ναασσὼν
chapter=1gloss_EN=Nahshongn=Masculinenumber=Singularsp_full=noun
phrase #36
phrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
chapter=1gloss_EN=begatmood=Indicativenumber=Singularperson=Thirdsp_full=verbtense=Aoristvoice=Active
phrase #37
phrasefunction_long=Object functionphrasetype=N2NP
τὸν
chapter=1gloss_EN=-gn=Masculinenumber=Singularsp_full=determiner
Σαλμών,
chapter=1gloss_EN=Salmongn=Masculinenumber=Singularsp_full=noun
"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"verse 5"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"verse
clause #11
clausetype=Conj13CL
phrase #38
phrasefunction_long=Object functionphrasetype=N2NP
δὲ
chapter=1gloss_EN=thensp_full=conjunction
phrase #39
phrasefunction_long=Subject functionphrasetype=N2NP
Σαλμὼν
chapter=1gloss_EN=Salmongn=Masculinenumber=Singularsp_full=noun
phrase #40
phrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
chapter=1gloss_EN=begatmood=Indicativenumber=Singularperson=Thirdsp_full=verbtense=Aoristvoice=Active
phrase #41
phrasefunction_long=Object functionphrasetype=N2NP
τὸν
chapter=1gloss_EN=-gn=Masculinenumber=Singularsp_full=determiner
Βόες
chapter=1gloss_EN=Boazgn=Masculinenumber=Singularsp_full=noun
phrase #42
phrasefunction_long=Adverbial functionphrasetype=N2NP
ἐκ
chapter=1gloss_EN=out ofsp_full=preposition
τῆς
chapter=1gloss_EN=-gn=Femininenumber=Singularsp_full=determiner
Ῥαχάβ,
chapter=1gloss_EN=Rahabgn=Femininenumber=Singularsp_full=noun
clause #12
clausetype=Conj13CL
phrase #43
phrasefunction_long=Adverbial functionphrasetype=N2NP
δὲ
chapter=1gloss_EN=thensp_full=conjunction
phrase #44
phrasefunction_long=Subject functionphrasetype=N2NP
Βόες
chapter=1gloss_EN=Boazgn=Masculinenumber=Singularsp_full=noun
phrase #45
phrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
chapter=1gloss_EN=begatmood=Indicativenumber=Singularperson=Thirdsp_full=verbtense=Aoristvoice=Active
phrase #46
phrasefunction_long=Object functionphrasetype=N2NP
τὸν
chapter=1gloss_EN=-gn=Masculinenumber=Singularsp_full=determiner
Ἰωβὴδ
chapter=1gloss_EN=Obedgn=Masculinenumber=Singularsp_full=noun
phrase #47
phrasefunction_long=Adverbial functionphrasetype=N2NP
ἐκ
chapter=1gloss_EN=out ofsp_full=preposition
τῆς
chapter=1gloss_EN=-gn=Femininenumber=Singularsp_full=determiner
Ῥούθ,
chapter=1gloss_EN=Ruthgn=Femininenumber=Singularsp_full=noun
clause #13
clausetype=Conj13CL
phrase #48
phrasefunction_long=Adverbial functionphrasetype=N2NP
δὲ
chapter=1gloss_EN=thensp_full=conjunction
phrase #49
phrasefunction_long=Subject functionphrasetype=N2NP
Ἰωβὴδ
chapter=1gloss_EN=Obedgn=Masculinenumber=Singularsp_full=noun
phrase #50
phrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
chapter=1gloss_EN=begatmood=Indicativenumber=Singularperson=Thirdsp_full=verbtense=Aoristvoice=Active
phrase #51
phrasefunction_long=Object functionphrasetype=N2NP
τὸν
chapter=1gloss_EN=-gn=Masculinenumber=Singularsp_full=determiner
Ἰεσσαί,
chapter=1gloss_EN=Jessegn=Masculinenumber=Singularsp_full=noun
"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"verse 6"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"verse
clause #14
clausetype=Conj13CL
phrase #52
phrasefunction_long=Object functionphrasetype=N2NP
δὲ
chapter=1gloss_EN=thensp_full=conjunction
phrase #53
phrasefunction_long=Subject functionphrasetype=N2NP
Ἰεσσαὶ
chapter=1gloss_EN=Jessegn=Masculinenumber=Singularsp_full=noun
phrase #54
phrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
chapter=1gloss_EN=begatmood=Indicativenumber=Singularperson=Thirdsp_full=verbtense=Aoristvoice=Active
phrase #55
phrasefunction_long=Object functionphrasetype=N2NP
τὸν
chapter=1gloss_EN=-gn=Masculinenumber=Singularsp_full=determiner
Δαυεὶδ
chapter=1gloss_EN=Davidgn=Masculinenumber=Singularsp_full=noun
τὸν
chapter=1gloss_EN=thegn=Masculinenumber=Singularsp_full=determiner
βασιλέα.
chapter=1gloss_EN=kinggn=Masculinenumber=Singularsp_full=noun
clause #15
clausetype=Conj14CL
phrase #56
phrasefunction_long=Object functionphrasetype=N2NP
δὲ
chapter=1gloss_EN=thensp_full=conjunction
phrase #57
phrasefunction_long=Subject functionphrasetype=N2NP
Δαυεὶδ
chapter=1gloss_EN=Davidgn=Masculinenumber=Singularsp_full=noun
phrase #58
phrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
chapter=1gloss_EN=begatmood=Indicativenumber=Singularperson=Thirdsp_full=verbtense=Aoristvoice=Active
phrase #59
phrasefunction_long=Object functionphrasetype=N2NP
τὸν
chapter=1gloss_EN=-gn=Masculinenumber=Singularsp_full=determiner
Σολομῶνα
chapter=1gloss_EN=Solomongn=Masculinenumber=Singularsp_full=noun
phrase #60
phrasefunction_long=Adverbial functionphrasetype=N2NP
ἐκ
chapter=1gloss_EN=out ofsp_full=preposition
τῆς
chapter=1gloss_EN=the [wife]gn=Femininenumber=Singularsp_full=determiner
τοῦ
chapter=1gloss_EN=-gn=Masculinenumber=Singularsp_full=determiner
Οὐρίου,
chapter=1gloss_EN=of Uriahgn=Masculinenumber=Singularsp_full=noun
"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"verse 7"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"verse
clause #16
clausetype=Conj14CL
phrase #61
phrasefunction_long=Adverbial functionphrasetype=N2NP
δὲ
chapter=1gloss_EN=thensp_full=conjunction
phrase #62
phrasefunction_long=Subject functionphrasetype=N2NP
Σολομὼν
chapter=1gloss_EN=Solomongn=Masculinenumber=Singularsp_full=noun
phrase #63
phrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
chapter=1gloss_EN=begatmood=Indicativenumber=Singularperson=Thirdsp_full=verbtense=Aoristvoice=Active
phrase #64
phrasefunction_long=Object functionphrasetype=N2NP
τὸν
chapter=1gloss_EN=-gn=Masculinenumber=Singularsp_full=determiner
Ῥοβοάμ,
chapter=1gloss_EN=Rehoboamgn=Masculinenumber=Singularsp_full=noun
clause #17
clausetype=Conj14CL
phrase #65
phrasefunction_long=Object functionphrasetype=N2NP
δὲ
chapter=1gloss_EN=thensp_full=conjunction
phrase #66
phrasefunction_long=Subject functionphrasetype=N2NP
Ῥοβοὰμ
chapter=1gloss_EN=Rehoboamgn=Masculinenumber=Singularsp_full=noun
phrase #67
phrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
chapter=1gloss_EN=begatmood=Indicativenumber=Singularperson=Thirdsp_full=verbtense=Aoristvoice=Active
phrase #68
phrasefunction_long=Object functionphrasetype=N2NP
τὸν
chapter=1gloss_EN=-gn=Masculinenumber=Singularsp_full=determiner
Ἀβιά,
chapter=1gloss_EN=Abijahgn=Masculinenumber=Singularsp_full=noun
clause #18
clausetype=Conj14CL
phrase #69
phrasefunction_long=Object functionphrasetype=N2NP
δὲ
chapter=1gloss_EN=thensp_full=conjunction
phrase #70
phrasefunction_long=Subject functionphrasetype=N2NP
Ἀβιὰ
chapter=1gloss_EN=Abijahgn=Masculinenumber=Singularsp_full=noun
phrase #71
phrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
chapter=1gloss_EN=begatmood=Indicativenumber=Singularperson=Thirdsp_full=verbtense=Aoristvoice=Active
phrase #72
phrasefunction_long=Object functionphrasetype=N2NP
τὸν
chapter=1gloss_EN=-gn=Masculinenumber=Singularsp_full=determiner
Ἀσάφ,
chapter=1gloss_EN=Asagn=Masculinenumber=Singularsp_full=noun
"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"verse 8"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"verse
clause #19
clausetype=Conj14CL
phrase #73
phrasefunction_long=Object functionphrasetype=N2NP
δὲ
chapter=1gloss_EN=thensp_full=conjunction
phrase #74
phrasefunction_long=Subject functionphrasetype=N2NP
Ἀσὰφ
chapter=1gloss_EN=Asagn=Masculinenumber=Singularsp_full=noun
phrase #75
phrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
chapter=1gloss_EN=begatmood=Indicativenumber=Singularperson=Thirdsp_full=verbtense=Aoristvoice=Active
phrase #76
phrasefunction_long=Object functionphrasetype=N2NP
τὸν
chapter=1gloss_EN=-gn=Masculinenumber=Singularsp_full=determiner
Ἰωσαφάτ,
chapter=1gloss_EN=Jehoshaphatgn=Masculinenumber=Singularsp_full=noun
clause #20
clausetype=Conj14CL
phrase #77
phrasefunction_long=Object functionphrasetype=N2NP
δὲ
chapter=1gloss_EN=thensp_full=conjunction
phrase #78
phrasefunction_long=Subject functionphrasetype=N2NP
Ἰωσαφὰτ
chapter=1gloss_EN=Jehoshaphatgn=Masculinenumber=Singularsp_full=noun
phrase #79
phrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
chapter=1gloss_EN=begatmood=Indicativenumber=Singularperson=Thirdsp_full=verbtense=Aoristvoice=Active
phrase #80
phrasefunction_long=Object functionphrasetype=N2NP
τὸν
chapter=1gloss_EN=-gn=Masculinenumber=Singularsp_full=determiner
Ἰωράμ,
chapter=1gloss_EN=Joramgn=Masculinenumber=Singularsp_full=noun
clause #21
clausetype=Conj14CL
phrase #81
phrasefunction_long=Object functionphrasetype=N2NP
δὲ
chapter=1gloss_EN=thensp_full=conjunction
phrase #82
phrasefunction_long=Subject functionphrasetype=N2NP
Ἰωρὰμ
chapter=1gloss_EN=Joramgn=Masculinenumber=Singularsp_full=noun
phrase #83
phrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
chapter=1gloss_EN=begatmood=Indicativenumber=Singularperson=Thirdsp_full=verbtense=Aoristvoice=Active
phrase #84
phrasefunction_long=Object functionphrasetype=N2NP
τὸν
chapter=1gloss_EN=-gn=Masculinenumber=Singularsp_full=determiner
Ὀζείαν,
chapter=1gloss_EN=Uzziahgn=Masculinenumber=Singularsp_full=noun
"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"Search0 = '''\n",
"book book=Matthew\n",
" chapter chapter=1\n",
" \n",
" verse\n",
"'''\n",
"Search0 = NA.search(Search0)\n",
"NA.show(Search0, start=1, end=8, condensed=True, extraFeatures={'clausetype','sp_full','phrasetype', 'gloss_EN','person','tense','voice','number','gn','mood', 'phrasefunction_long'}, withNodes=False)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 3 dump some structure information"
]
},
{
"cell_type": "code",
"execution_count": 33,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"A heading is a tuple of pairs (node type, feature value)\n",
"\tof node types and features that have been configured as structural elements\n",
"These 3 structural elements have been configured\n",
"\tnode type book with heading feature book\n",
"\tnode type chapter with heading feature chapter\n",
"\tnode type verse with heading feature verse\n",
"You can get them as a tuple with T.headings.\n",
"\n",
"Structure API:\n",
"\tT.structure(node=None) gives the structure below node, or everything if node is None\n",
"\tT.structurePretty(node=None) prints the structure below node, or everything if node is None\n",
"\tT.top() gives all top-level nodes\n",
"\tT.up(node) gives the (immediate) parent node\n",
"\tT.down(node) gives the (immediate) children nodes\n",
"\tT.headingFromNode(node) gives the heading of a node\n",
"\tT.nodeFromHeading(heading) gives the node of a heading\n",
"\tT.ndFromHd complete mapping from headings to nodes\n",
"\tT.hdFromNd complete mapping from nodes to headings\n",
"\tT.hdMult are all headings with their nodes that occur multiple times\n",
"\n",
"There are 8231 structural elements in the dataset.\n",
"\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: 1 structure headings with hdMult occurrences (total 2)\n",
"\tbook:I_Peter-chapter:4-verse:1 has 2 occurrences\n",
"\t\t232892, 232894\n"
]
}
],
"source": [
"T.structureInfo()"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"232892 is an sentence which is not configured as a structure type\n"
]
}
],
"source": [
"T.up(232892)"
]
},
{
"cell_type": "code",
"execution_count": 34,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'Availability': 'Creative Commons Attribution 4.0 International (CC BY 4.0)',\n",
" 'Converter_author': 'Tony Jurg, Vrije Universiteit Amsterdam, Netherlands',\n",
" 'Converter_execution': 'Tony Jurg, Vrije Universiteit Amsterdam, Netherlands',\n",
" 'Converter_version': '0.1 (Initial)',\n",
" 'Convertor_source': 'https://github.com/tonyjurg/NA1904/tree/main/resources/converter',\n",
" 'Data source': 'MACULA Greek Linguistic Datasets, available at https://github.com/Clear-Bible/macula-greek/tree/main/Nestle1904/nodes',\n",
" 'Editors': 'Nestle & Aland',\n",
" 'Name': 'Greek New Testament (NA1904)',\n",
" 'TextFabric version': '11.2.3',\n",
" 'Version': '1904',\n",
" 'fmt:text-orig-full': '{word}',\n",
" 'sectionFeatures': 'book,chapter,verse',\n",
" 'sectionTypes': 'book,chapter,verse',\n",
" 'structureFeatures': 'book,chapter,verse',\n",
" 'structureTypes': 'book,chapter,verse',\n",
" 'writtenBy': 'Text-Fabric',\n",
" 'dateWritten': '2023-03-21T20:46:23Z'}"
]
},
"execution_count": 34,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"TF.features['otext'].metaData"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Running text fabric browser \n",
"##### [back to TOC](#TOC)"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"This is Text-Fabric 11.2.3\n",
"Connecting to running kernel via 19685\n",
"Connecting to running webserver via 29685\n",
"Opening app in browser\n",
"Press to stop the TF browser\n"
]
}
],
"source": [
"!text-fabric app "
]
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"This is Text-Fabric 11.2.3\n",
"Killing processes:\n",
"kernel % 18412: 19685 app: terminated\n",
"web % 2700: 29685 app: terminated\n",
"text-fabric % 3280 app: terminated\n",
"3 processes done.\n"
]
}
],
"source": [
"!text-fabric app -k"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
},
"toc": {
"base_numbering": 1,
"nav_menu": {},
"number_sections": true,
"sideBar": true,
"skip_h1_title": false,
"title_cell": "Table of Contents",
"title_sidebar": "Contents",
"toc_cell": true,
"toc_position": {
"height": "calc(100% - 180px)",
"left": "10px",
"top": "150px",
"width": "321.391px"
},
"toc_section_display": true,
"toc_window_display": true
}
},
"nbformat": 4,
"nbformat_minor": 4
}