Skip to content

Commit

Permalink
demo
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkroorda committed May 10, 2023
1 parent aee2710 commit a0ea956
Show file tree
Hide file tree
Showing 42 changed files with 3,648 additions and 334,539 deletions.
7 changes: 7 additions & 0 deletions programs/lowfat.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

from tf.convert.helpers import NEST

demoMode = False


def convertTaskCustom(self):
"""Implementation of the "convert" task.
Expand Down Expand Up @@ -258,6 +260,11 @@ def beforeChildren(cv, cur, node, tag):
cv.feature(curVerse, verse=thisVerseNum)

key = f"B{cur['bookNum']:>03}-C{chRef:>03}-V{vRef:>03}-W{wRef:>04}"

if demoMode:
if cur["sentNum"] == 1:
key = None

s = cv.slot(key=key)
cv.feature(s, **atts)

Expand Down
1,550 changes: 1,527 additions & 23 deletions programs/tfFromLowfat.ipynb

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions tf/0.3.1t/after.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
@node
@author=Evangelists and apostles
@converters=Tony Jorg, Saulo Oliveira de Cantanhêde, Dirk Roorda
@description=material after the end of the word
@institute=ETCBC (Eep Talstra Centre for Bible and Computer)
@sourceDescription=Nestle 1904 edition
@sourceFormat=XML
@title=Greek New Testament
@valueType=str
@version=0.3.1t
@xmlVersion=2000-01-01
@writtenBy=Text-Fabric
@dateWritten=2023-05-10T20:30:32Z




,


,









.



,


,









.
22 changes: 22 additions & 0 deletions tf/0.3.1t/appositioncontainer.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
@node
@author=Evangelists and apostles
@converters=Tony Jorg, Saulo Oliveira de Cantanhêde, Dirk Roorda
@description=1 if it is an apposition container
@institute=ETCBC (Eep Talstra Centre for Bible and Computer)
@sourceDescription=Nestle 1904 edition
@sourceFormat=XML
@title=Greek New Testament
@valueType=int
@version=0.3.1t
@xmlVersion=2000-01-01
@writtenBy=Text-Fabric
@dateWritten=2023-05-10T20:30:32Z

42 1
45 1
53 1
56 1
59 1
62 1
70 1
73 1
16 changes: 16 additions & 0 deletions tf/0.3.1t/articular.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@node
@author=Evangelists and apostles
@converters=Tony Jorg, Saulo Oliveira de Cantanhêde, Dirk Roorda
@description=1 if the wg has an article
@institute=ETCBC (Eep Talstra Centre for Bible and Computer)
@sourceDescription=Nestle 1904 edition
@sourceFormat=XML
@title=Greek New Testament
@valueType=int
@version=0.3.1t
@xmlVersion=2000-01-01
@writtenBy=Text-Fabric
@dateWritten=2023-05-10T20:30:32Z

48 1
65 1
49 changes: 49 additions & 0 deletions tf/0.3.1t/book.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
@node
@author=Evangelists and apostles
@converters=Tony Jorg, Saulo Oliveira de Cantanhêde, Dirk Roorda
@description=book name (abbreviated), from ref attribute in xml
@institute=ETCBC (Eep Talstra Centre for Bible and Computer)
@sourceDescription=Nestle 1904 edition
@sourceFormat=XML
@title=Greek New Testament
@valueType=str
@version=0.3.1t
@xmlVersion=2000-01-01
@writtenBy=Text-Fabric
@dateWritten=2023-05-10T20:30:32Z

JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
JUD
42 changes: 42 additions & 0 deletions tf/0.3.1t/case.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
@node
@author=Evangelists and apostles
@converters=Tony Jorg, Saulo Oliveira de Cantanhêde, Dirk Roorda
@description=grammatical case
@institute=ETCBC (Eep Talstra Centre for Bible and Computer)
@sourceDescription=Nestle 1904 edition
@sourceFormat=XML
@title=Greek New Testament
@valueType=str
@version=0.3.1t
@xmlVersion=2000-01-01
@writtenBy=Text-Fabric
@dateWritten=2023-05-10T20:30:32Z

nominative
genitive
genitive
nominative
6 nominative
genitive
dative
10 dative
dative
dative
14 dative
dative
dative
dative
nominative
genitive
genitive
nominative
nominative
24 genitive
dative
27 dative
dative
dative
31 dative
dative
dative
dative
49 changes: 49 additions & 0 deletions tf/0.3.1t/chapter.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
@node
@author=Evangelists and apostles
@converters=Tony Jorg, Saulo Oliveira de Cantanhêde, Dirk Roorda
@description=chapter number, from ref attribute in xml
@institute=ETCBC (Eep Talstra Centre for Bible and Computer)
@sourceDescription=Nestle 1904 edition
@sourceFormat=XML
@title=Greek New Testament
@valueType=int
@version=0.3.1t
@xmlVersion=2000-01-01
@writtenBy=Text-Fabric
@dateWritten=2023-05-10T20:30:32Z

1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
36 1
64 changes: 64 additions & 0 deletions tf/0.3.1t/class.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
@node
@author=Evangelists and apostles
@converters=Tony Jorg, Saulo Oliveira de Cantanhêde, Dirk Roorda
@description=morphological class (on w); syntactical class (on wg)
@institute=ETCBC (Eep Talstra Centre for Bible and Computer)
@sourceDescription=Nestle 1904 edition
@sourceFormat=XML
@title=Greek New Testament
@valueType=str
@version=0.3.1t
@xmlVersion=2000-01-01
@writtenBy=Text-Fabric
@dateWritten=2023-05-10T20:30:32Z

noun
noun
noun
noun
conj
noun
noun
det
prep
noun
noun
verb
conj
noun
noun
verb
adj
noun
noun
noun
noun
noun
conj
noun
det
prep
noun
noun
verb
conj
noun
noun
verb
adj
41 cl
44 np
47 np
np
np
51 cl
pp
55 cl
58 cl
61 np
64 np
np
np
68 cl
pp
72 cl
16 changes: 16 additions & 0 deletions tf/0.3.1t/clauseType.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@node
@author=Evangelists and apostles
@converters=Tony Jorg, Saulo Oliveira de Cantanhêde, Dirk Roorda
@description=clause type
@institute=ETCBC (Eep Talstra Centre for Bible and Computer)
@sourceDescription=Nestle 1904 edition
@sourceFormat=XML
@title=Greek New Testament
@valueType=str
@version=0.3.1t
@xmlVersion=2000-01-01
@writtenBy=Text-Fabric
@dateWritten=2023-05-10T20:30:32Z

50 nominalized
67 nominalized
16 changes: 16 additions & 0 deletions tf/0.3.1t/cltype.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@node
@author=Evangelists and apostles
@converters=Tony Jorg, Saulo Oliveira de Cantanhêde, Dirk Roorda
@description=clause type
@institute=ETCBC (Eep Talstra Centre for Bible and Computer)
@sourceDescription=Nestle 1904 edition
@sourceFormat=XML
@title=Greek New Testament
@valueType=str
@version=0.3.1t
@xmlVersion=2000-01-01
@writtenBy=Text-Fabric
@dateWritten=2023-05-10T20:30:32Z

41 VerbElided
58 VerbElided
16 changes: 16 additions & 0 deletions tf/0.3.1t/discontinuous.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@node
@author=Evangelists and apostles
@converters=Tony Jorg, Saulo Oliveira de Cantanhêde, Dirk Roorda
@description=1 if the word is out of sequence in the xml
@institute=ETCBC (Eep Talstra Centre for Bible and Computer)
@sourceDescription=Nestle 1904 edition
@sourceFormat=XML
@title=Greek New Testament
@valueType=int
@version=0.3.1t
@xmlVersion=2000-01-01
@writtenBy=Text-Fabric
@dateWritten=2023-05-10T20:30:32Z

5 1
23 1
Loading

0 comments on commit a0ea956

Please sign in to comment.