Basic instructions on loading the Text-Fabric and start using it on your system.
You need to have Python on your system. Most systems have it out of the box, but alas, that is python2 and we need at least python 3.6.
Install it from python.org or from Anaconda.
pip3 install text-fabric
You need Jupyter or a platform like Anaconda which includes Jupyter.
If it is not already installed:
pip3 install jupyter
It may be required to increase rate limit for GitHub. See instructions on aquiring and setting the GHPERS variable. See here if you want to set the varibale on windows using the command prompt.
%load_ext autoreload
%autoreload 2
# Loading the New Testament TextFabric code
from tf.fabric import Fabric
from tf.app import use
# load the app and data
N1904 = use ("tonyjurg/Nestle1904GBI:clone", hoist=globals())
Locating corpus resources ...
The requested app is not available offline ~/github/tonyjurg/Nestle1904GBI/app not found
The requested data is not available offline ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf not found
File is not a zip file could not save corpus data to ~/text-fabric-data/github
rate limit is 5000 requests per hour, with 4995 left for this hour connecting to online GitHub repo tonyjurg/Nestle1904GBI ... connected tf/book.tf...downloaded tf/book_long.tf...downloaded tf/book_short.tf...downloaded tf/booknum.tf...downloaded tf/case.tf...downloaded tf/chapter.tf...downloaded tf/clause.tf...downloaded tf/clauserule.tf...downloaded tf/clausetype.tf...downloaded tf/degree.tf...downloaded tf/formaltag.tf...downloaded tf/functionaltag.tf...downloaded tf/gloss_EN.tf...downloaded tf/gn.tf...downloaded tf/lemma.tf...downloaded tf/lex_dom.tf...downloaded tf/ln.tf...downloaded tf/monad.tf...downloaded tf/mood.tf...downloaded tf/nodeID.tf...downloaded tf/normalized.tf...downloaded tf/nu.tf...downloaded tf/number.tf...downloaded tf/orig_order.tf...downloaded tf/oslots.tf...downloaded tf/otext.tf...downloaded tf/otype.tf...downloaded tf/person.tf...downloaded tf/phrase.tf...downloaded tf/phrasefunction.tf...downloaded tf/phrasefunction_long.tf...downloaded tf/phrasetype.tf...downloaded tf/reference.tf...downloaded tf/sentence.tf...downloaded tf/sp.tf...downloaded tf/sp_full.tf...downloaded tf/strongs.tf...downloaded tf/subj_ref.tf...downloaded tf/tense.tf...downloaded tf/type.tf...downloaded tf/verse.tf...downloaded tf/voice.tf...downloaded tf/word.tf...downloaded OK
| 0.20s T otype from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 1.99s T oslots from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.69s T word from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.54s T verse from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.50s T chapter from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.00s T book from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | | 0.05s C __levels__ from otype, oslots, otext | | 1.52s C __order__ from otype, oslots, __levels__ | | 0.07s C __rank__ from otype, __order__ | | 2.47s C __levUp__ from otype, oslots, __rank__ | | 1.55s C __levDown__ from otype, __levUp__, __rank__ | | 0.05s C __characters__ from otext | | 1.05s C __boundary__ from otype, oslots, __rank__ | | 0.05s C __sections__ from otype, oslots, otext, __levUp__, __levels__, book, chapter, verse | | 0.25s C __structure__ from otype, oslots, otext, __rank__, __levUp__, book, chapter, verse | 0.60s T book_long from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.59s T book_short from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.50s T booknum from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.56s T case from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.58s T clause from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.07s T clauserule from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.02s T clausetype from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.48s T degree from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.59s T formaltag from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.59s T functionaltag from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.66s T gloss_EN from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.55s T gn from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.63s T lemma from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.59s T lex_dom from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.60s T ln from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.51s T monad from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.51s T mood from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.73s T nodeID from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.67s T normalized from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.55s T nu from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.56s T number from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.52s T orig_order from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.52s T person from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.82s T phrase from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.31s T phrasefunction from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.32s T phrasefunction_long from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.33s T phrasetype from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.54s T reference from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.53s T sentence from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.58s T sp from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.57s T sp_full from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.63s T strongs from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.54s T subj_ref from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.52s T tense from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.54s T type from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf | 0.51s T voice from ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/tf
Name | # of nodes | # slots/node | % coverage |
---|---|---|---|
book | 27 | 5102.93 | 100 |
chapter | 260 | 529.92 | 100 |
sentence | 5720 | 24.09 | 100 |
verse | 7944 | 17.34 | 100 |
clause | 16124 | 8.54 | 100 |
phrase | 73547 | 1.87 | 100 |
word | 137779 | 1.00 | 100 |
Search0 = '''
word sp=noun
'''
Search0 = NA.search(Search0)
N1904.show(Search0, start=1, end=3, condensed=True, extraFeatures={'sp', 'clauserule', 'phrasefunction', 'formaltag', 'functionaltag', 'type', 'case', 'ln'}, withNodes=False)
| 0.00s E otext from ~/text-fabric-data/github/tonyjurg/Nestle1904/tf/1904 | 0.00s E reference from ~/text-fabric-data/github/tonyjurg/Nestle1904/tf/1904
0.12s 28455 results
verse 1
verse 2
verse 3
show_book = T.nodeFromSection(('Jude',))
for verse in L.d(show_book, 'verse'):
print('{} {}:{}'.format(*T.sectionFromNode(verse)))
print('\t\t', T.text(verse))
Jude 1:1 ἸούδαςἸησοῦΧριστοῦδοῦλος,δὲἀδελφὸςἸακώβου,τοῖςἐνΘεῷΠατρὶἠγαπημένοιςκαὶἸησοῦΧριστῷτετηρημένοιςκλητοῖς. Jude 1:2 ὑμῖνἔλεοςκαὶεἰρήνηκαὶἀγάπηπληθυνθείη. Jude 1:3 Ἀγαπητοί,πᾶσανσπουδὴνποιούμενοςγράφεινὑμῖνπερὶτῆςκοινῆςἡμῶνσωτηρίας,ἀνάγκηνἔσχονγράψαιὑμῖνπαρακαλῶνἐπαγωνίζεσθαιτῇἅπαξπαραδοθείσῃτοῖςἁγίοιςπίστει. Jude 1:4 γάρπαρεισεδύησαντινεςἄνθρωποι,οἱπάλαιπρογεγραμμένοιεἰςτοῦτοτὸκρίμα,ἀσεβεῖς,τὴντοῦΘεοῦἡμῶνχάριταμετατιθέντεςεἰςἀσέλγειανκαὶτὸνμόνονΔεσπότηνκαὶΚύριονἡμῶνἸησοῦνΧριστὸνἀρνούμενοι. Jude 1:5 δὲβούλομαι,εἰδόταςἅπαξπάντα,ὙπομνῆσαιὑμᾶςὅτιΚύριοςλαὸνἐκγῆςΑἰγύπτουσώσαςτὸδεύτεροντοὺςμὴπιστεύσανταςἀπώλεσεν, Jude 1:6 τεἀγγέλουςτοὺςμὴτηρήσανταςτὴνἑαυτῶνἀρχὴνἀλλὰἀπολιπόνταςτὸἴδιονοἰκητήριονεἰςκρίσινμεγάληςἡμέραςδεσμοῖςἀϊδίοιςὑπὸζόφοντετήρηκεν· Jude 1:7 ὡςΣόδομακαὶΓόμορρακαὶαἱπερὶαὐτὰςπόλεις,τὸνὅμοιοντρόποντούτοιςἐκπορνεύσασαικαὶἀπελθοῦσαιὀπίσωσαρκὸςἑτέρας,πρόκεινταιδεῖγμαπυρὸςαἰωνίουδίκηνὑπέχουσαι. Jude 1:8 μέντοιὉμοίωςκαὶοὗτοιἐνυπνιαζόμενοιμὲνσάρκαμιαίνουσιν,δὲκυριότηταἀθετοῦσιν,δὲδόξαςβλασφημοῦσιν. Jude 1:9 δὲὅτετῷδιαβόλῳδιακρινόμενοςδιελέγετοπερὶτοῦΜωϋσέωςσώματος,οὐκὁΜιχαὴλὁἀρχάγγελος,ἐτόλμησενκρίσινβλασφημίας,ἐπενεγκεῖνἀλλὰεἶπενἘπιτιμήσαισοιΚύριος. Jude 1:10 δὲμὲνοὗτοιὅσαοὐκοἴδασινβλασφημοῦσιν,δὲὅσαφυσικῶςὡςτὰἄλογαζῷαἐπίστανται,ἐντούτοιςφθείρονται. Jude 1:11 οὐαὶαὐτοῖς,ὅτιτῇὁδῷτοῦΚάϊνἐπορεύθησαν,καὶτῇπλάνῃτοῦΒαλαὰμμισθοῦἐξεχύθησαν,καὶτῇἀντιλογίᾳτοῦΚόρεἀπώλοντο. Jude 1:12 Οὗτοίεἰσινοἱἐνταῖςἀγάπαιςὑμῶνσπιλάδεςσυνευωχούμενοιἀφόβως,ἑαυτοὺςποιμαίνοντες,νεφέλαιἄνυδροιὑπὸἀνέμωνπαραφερόμεναι,δένδραφθινοπωρινὰἄκαρπαδὶςἀποθανόνταἐκριζωθέντα, Jude 1:13 κύματαἄγριαθαλάσσηςἐπαφρίζοντατὰςἑαυτῶναἰσχύνας,ἀστέρεςπλανῆται,οἷςὁζόφοςτοῦσκότουςεἰςαἰῶνατετήρηται. Jude 1:14 δὲἘπροφήτευσενκαὶτούτοιςἕβδομοςἀπὸἈδὰμἙνὼχλέγωνἸδοὺἦλθενΚύριοςἐνἁγίαιςμυριάσιναὐτοῦ, Jude 1:15 ποιῆσαικρίσινκατὰπάντωνκαὶἐλέγξαιπάνταςτοὺςἀσεβεῖςπερὶπάντωντῶνἔργωνἀσεβείαςαὐτῶνὧνἠσέβησανκαὶπερὶπάντωντῶνσκληρῶνὧνἐλάλησανκατ’αὐτοῦἁμαρτωλοὶἀσεβεῖς. Jude 1:16 Οὗτοίεἰσινγογγυσταί,μεμψίμοιροι,κατὰτὰςἐπιθυμίαςαὐτῶνπορευόμενοι,καὶτὸστόμααὐτῶνλαλεῖὑπέρογκα,θαυμάζοντεςπρόσωπαὠφελείαςχάριν. Jude 1:17 δέ,ἀγαπητοί,ὙμεῖςμνήσθητετῶνῥημάτωντῶνπροειρημένωνὑπὸτῶνἀποστόλωντοῦΚυρίουἡμῶνἸησοῦΧριστοῦ, Jude 1:18 ὅτιἔλεγονὑμῖνἘπ’ἐσχάτουτοῦχρόνουἔσονταιἐμπαῖκταιπορευόμενοικατὰτὰςἑαυτῶνἐπιθυμίαςτῶνἀσεβειῶν. Jude 1:19 Οὗτοίεἰσινοἱἀποδιορίζοντες,ψυχικοί,Πνεῦμαμὴἔχοντες. Jude 1:20 δέ,ἀγαπητοί,ὑμεῖςἐποικοδομοῦντεςἑαυτοὺςτῇἁγιωτάτῃὑμῶνπίστει,ἐνΠνεύματιἉγίῳπροσευχόμενοι, Jude 1:21 ἑαυτοὺςἐνἀγάπῃΘεοῦτηρήσατε,προσδεχόμενοιτὸἔλεοςτοῦΚυρίουἡμῶνἸησοῦΧριστοῦεἰςζωὴναἰώνιον. Jude 1:22 καὶμὲνοὓςδιακρινομένουςἐλεᾶτε Jude 1:23 σῴζετεἐκπυρὸςἁρπάζοντες,δὲοὓςἐλεᾶτεἐνφόβῳ,μισοῦντεςκαὶτὸνἀπὸτῆςσαρκὸςἐσπιλωμένονχιτῶνα. Jude 1:24 δὲΤῷδυναμένῳφυλάξαιὑμᾶςἀπταίστουςκαὶστῆσαικατενώπιοντῆςδόξηςαὐτοῦἀμώμουςἐνἀγαλλιάσει, Jude 1:25 μόνῳΘεῷΣωτῆριἡμῶνδιὰἸησοῦΧριστοῦτοῦΚυρίουἡμῶνδόξαμεγαλωσύνηκράτοςκαὶἐξουσίαπρὸπαντὸςτοῦαἰῶνοςκαὶνῦνκαὶεἰςπάνταςτοὺςαἰῶνας·ἀμήν.
print(E.__dict__)
{'oslots': <tf.core.oslotsfeature.OslotsFeature object at 0x000001F279A1E4F0>}
print(N.__dict__)
{'api': <tf.core.api.Api object at 0x000001F2737FEA30>, 'otypeRank': {'word': 0, 'phrase': 1, 'clause': 2, 'verse': 3, 'sentence': 4, 'chapter': 5, 'book': 6}, 'sortKey': <function Nodes.__init__.<locals>.<lambda> at 0x000001F273835310>, 'sortKeyTuple': <function Nodes.__init__.<locals>.<lambda> at 0x000001F273835940>, 'sortKeyChunk': <functools.KeyWrapper object at 0x000001F27A74A5F0>, 'sortKeyChunkLength': <functools.KeyWrapper object at 0x000001F27932CBF0>}
print(F.__dict__)
{'otype': <tf.core.otypefeature.OtypeFeature object at 0x000001F27A3A9FA0>, 'book': <tf.core.nodefeature.NodeFeature object at 0x000001F279A1ED90>, 'chapter': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7130>, 'verse': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7CD0>, 'word': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7D30>, 'book_code': <tf.core.nodefeature.NodeFeature object at 0x000001F279A1E5B0>, 'book_long': <tf.core.nodefeature.NodeFeature object at 0x000001F279A1E520>, 'book_short': <tf.core.nodefeature.NodeFeature object at 0x000001F279A1EF10>, 'booknum': <tf.core.nodefeature.NodeFeature object at 0x000001F279A1EF40>, 'case': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C70D0>, 'clause': <tf.core.nodefeature.NodeFeature object at 0x000001F279A1E610>, 'clauserule': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7190>, 'clausetype': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C71F0>, 'degree': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7250>, 'formaltag': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C72B0>, 'functionaltag': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7310>, 'gloss_EN': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7370>, 'gn': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C73D0>, 'lemma': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7430>, 'lex_dom': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7490>, 'ln': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C74F0>, 'monad': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7550>, 'mood': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C75B0>, 'nodeID': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7610>, 'normalized': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7670>, 'nu': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C76D0>, 'number': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7730>, 'orig_order': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7790>, 'person': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C77F0>, 'phrase': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7850>, 'phrasefunction': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C78B0>, 'phrasefunction_long': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7910>, 'phrasetype': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7970>, 'sentence': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C79D0>, 'sentencetype': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7A30>, 'sp': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7A90>, 'sp_full': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7AF0>, 'strongs': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7B50>, 'subj_ref': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7BB0>, 'tense': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7C10>, 'type': <tf.core.nodefeature.NodeFeature object at 0x000001F27F2C7C70>, 'voice': <tf.core.nodefeature.NodeFeature object at 0x000001F279A1E670>}
print(L.__dict__)
{'api': <tf.core.api.Api object at 0x000001F2737FEA30>}
for chapter in L.d(show_book, 'chapter'):
print(F.book.v(show_book), '§', F.chapter.v(chapter))
for verse in L.d(chapter, 'verse'):
book,chapter,vrs = T.sectionFromNode(verse)
print(f'({chapter}:{vrs}) {T.text(verse)}', end='\n')
print('\n')
Jude § 1 (1:1) ἸούδαςἸησοῦΧριστοῦδοῦλος,δὲἀδελφὸςἸακώβου,τοῖςἐνΘεῷΠατρὶἠγαπημένοιςκαὶἸησοῦΧριστῷτετηρημένοιςκλητοῖς. (1:2) ὑμῖνἔλεοςκαὶεἰρήνηκαὶἀγάπηπληθυνθείη. (1:3) Ἀγαπητοί,πᾶσανσπουδὴνποιούμενοςγράφεινὑμῖνπερὶτῆςκοινῆςἡμῶνσωτηρίας,ἀνάγκηνἔσχονγράψαιὑμῖνπαρακαλῶνἐπαγωνίζεσθαιτῇἅπαξπαραδοθείσῃτοῖςἁγίοιςπίστει. (1:4) γάρπαρεισεδύησαντινεςἄνθρωποι,οἱπάλαιπρογεγραμμένοιεἰςτοῦτοτὸκρίμα,ἀσεβεῖς,τὴντοῦΘεοῦἡμῶνχάριταμετατιθέντεςεἰςἀσέλγειανκαὶτὸνμόνονΔεσπότηνκαὶΚύριονἡμῶνἸησοῦνΧριστὸνἀρνούμενοι. (1:5) δὲβούλομαι,εἰδόταςἅπαξπάντα,ὙπομνῆσαιὑμᾶςὅτιΚύριοςλαὸνἐκγῆςΑἰγύπτουσώσαςτὸδεύτεροντοὺςμὴπιστεύσανταςἀπώλεσεν, (1:6) τεἀγγέλουςτοὺςμὴτηρήσανταςτὴνἑαυτῶνἀρχὴνἀλλὰἀπολιπόνταςτὸἴδιονοἰκητήριονεἰςκρίσινμεγάληςἡμέραςδεσμοῖςἀϊδίοιςὑπὸζόφοντετήρηκεν· (1:7) ὡςΣόδομακαὶΓόμορρακαὶαἱπερὶαὐτὰςπόλεις,τὸνὅμοιοντρόποντούτοιςἐκπορνεύσασαικαὶἀπελθοῦσαιὀπίσωσαρκὸςἑτέρας,πρόκεινταιδεῖγμαπυρὸςαἰωνίουδίκηνὑπέχουσαι. (1:8) μέντοιὉμοίωςκαὶοὗτοιἐνυπνιαζόμενοιμὲνσάρκαμιαίνουσιν,δὲκυριότηταἀθετοῦσιν,δὲδόξαςβλασφημοῦσιν. (1:9) δὲὅτετῷδιαβόλῳδιακρινόμενοςδιελέγετοπερὶτοῦΜωϋσέωςσώματος,οὐκὁΜιχαὴλὁἀρχάγγελος,ἐτόλμησενκρίσινβλασφημίας,ἐπενεγκεῖνἀλλὰεἶπενἘπιτιμήσαισοιΚύριος. (1:10) δὲμὲνοὗτοιὅσαοὐκοἴδασινβλασφημοῦσιν,δὲὅσαφυσικῶςὡςτὰἄλογαζῷαἐπίστανται,ἐντούτοιςφθείρονται. (1:11) οὐαὶαὐτοῖς,ὅτιτῇὁδῷτοῦΚάϊνἐπορεύθησαν,καὶτῇπλάνῃτοῦΒαλαὰμμισθοῦἐξεχύθησαν,καὶτῇἀντιλογίᾳτοῦΚόρεἀπώλοντο. (1:12) Οὗτοίεἰσινοἱἐνταῖςἀγάπαιςὑμῶνσπιλάδεςσυνευωχούμενοιἀφόβως,ἑαυτοὺςποιμαίνοντες,νεφέλαιἄνυδροιὑπὸἀνέμωνπαραφερόμεναι,δένδραφθινοπωρινὰἄκαρπαδὶςἀποθανόνταἐκριζωθέντα, (1:13) κύματαἄγριαθαλάσσηςἐπαφρίζοντατὰςἑαυτῶναἰσχύνας,ἀστέρεςπλανῆται,οἷςὁζόφοςτοῦσκότουςεἰςαἰῶνατετήρηται. (1:14) δὲἘπροφήτευσενκαὶτούτοιςἕβδομοςἀπὸἈδὰμἙνὼχλέγωνἸδοὺἦλθενΚύριοςἐνἁγίαιςμυριάσιναὐτοῦ, (1:15) ποιῆσαικρίσινκατὰπάντωνκαὶἐλέγξαιπάνταςτοὺςἀσεβεῖςπερὶπάντωντῶνἔργωνἀσεβείαςαὐτῶνὧνἠσέβησανκαὶπερὶπάντωντῶνσκληρῶνὧνἐλάλησανκατ’αὐτοῦἁμαρτωλοὶἀσεβεῖς. (1:16) Οὗτοίεἰσινγογγυσταί,μεμψίμοιροι,κατὰτὰςἐπιθυμίαςαὐτῶνπορευόμενοι,καὶτὸστόμααὐτῶνλαλεῖὑπέρογκα,θαυμάζοντεςπρόσωπαὠφελείαςχάριν. (1:17) δέ,ἀγαπητοί,ὙμεῖςμνήσθητετῶνῥημάτωντῶνπροειρημένωνὑπὸτῶνἀποστόλωντοῦΚυρίουἡμῶνἸησοῦΧριστοῦ, (1:18) ὅτιἔλεγονὑμῖνἘπ’ἐσχάτουτοῦχρόνουἔσονταιἐμπαῖκταιπορευόμενοικατὰτὰςἑαυτῶνἐπιθυμίαςτῶνἀσεβειῶν. (1:19) Οὗτοίεἰσινοἱἀποδιορίζοντες,ψυχικοί,Πνεῦμαμὴἔχοντες. (1:20) δέ,ἀγαπητοί,ὑμεῖςἐποικοδομοῦντεςἑαυτοὺςτῇἁγιωτάτῃὑμῶνπίστει,ἐνΠνεύματιἉγίῳπροσευχόμενοι, (1:21) ἑαυτοὺςἐνἀγάπῃΘεοῦτηρήσατε,προσδεχόμενοιτὸἔλεοςτοῦΚυρίουἡμῶνἸησοῦΧριστοῦεἰςζωὴναἰώνιον. (1:22) καὶμὲνοὓςδιακρινομένουςἐλεᾶτε (1:23) σῴζετεἐκπυρὸςἁρπάζοντες,δὲοὓςἐλεᾶτεἐνφόβῳ,μισοῦντεςκαὶτὸνἀπὸτῆςσαρκὸςἐσπιλωμένονχιτῶνα. (1:24) δὲΤῷδυναμένῳφυλάξαιὑμᾶςἀπταίστουςκαὶστῆσαικατενώπιοντῆςδόξηςαὐτοῦἀμώμουςἐνἀγαλλιάσει, (1:25) μόνῳΘεῷΣωτῆριἡμῶνδιὰἸησοῦΧριστοῦτοῦΚυρίουἡμῶνδόξαμεγαλωσύνηκράτοςκαὶἐξουσίαπρὸπαντὸςτοῦαἰῶνοςκαὶνῦνκαὶεἰςπάνταςτοὺςαἰῶνας·ἀμήν.
max=10
count=0
for node in F.otype.s('word'):
functionaltag=F.functionaltag.v(node)
formaltag=F.formaltag.v(node)
if formaltag != functionaltag:
count+=1
book=F.book_long.v(node)
chapter=F.chapter.v(node)
verse=F.verse.v(node)
word=F.word.v(node)
print (count,' - ',book,chapter,':',verse,'=\t',word,'\tformaltag:',formaltag,'\tfunctionaltag:',functionaltag)
if count==max: break
1 - Matthew 1 : 16 = λεγόμενος formaltag: V-PEP-NSM functionaltag: V-PPP-NSM 2 - Matthew 1 : 22 = ῥηθὲν formaltag: V-AEP-NSN functionaltag: V-APP-NSN 3 - Matthew 1 : 23 = μεθερμηνευόμενον formaltag: V-PEP-NSN functionaltag: V-PPP-NSN 4 - Matthew 2 : 4 = γεννᾶται. formaltag: V-PES-3S functionaltag: V-PPS-3S 5 - Matthew 2 : 5 = γέγραπται formaltag: V-REI-3S functionaltag: V-RPI-3S 6 - Matthew 2 : 15 = ῥηθὲν formaltag: V-AEP-NSN functionaltag: V-APP-NSN 7 - Matthew 2 : 17 = ῥηθὲν formaltag: V-AEP-NSN functionaltag: V-APP-NSN 8 - Matthew 2 : 20 = τεθνήκασιν formaltag: V-REI-3P functionaltag: V-RAI-3P 9 - Matthew 2 : 23 = λεγομένην formaltag: V-PEP-ASF functionaltag: V-PPP-ASF 10 - Matthew 2 : 23 = ῥηθὲν formaltag: V-AEP-NSN functionaltag: V-APP-NSN
# print value frequency for feature gn
ValueFreq = {}
for node in F.otype.s('word'):
gn=F.gn.v(node)
ValueFreq[gn] = ValueFreq.setdefault(gn, 0) + 1
print (ValueFreq)
{'Feminine': 18736, 'Masculine': 41486, '': 63804, 'Neuter': 13753}
# print frequency for feature ln,lex_dom being populated
ValueFreq = {}
for node in F.otype.s('word'):
LnPresent='no'
if F.ln.v(node)!='': LnPresent='yes'
ValueFreq[LnPresent] = ValueFreq.setdefault(LnPresent, 0) + 1
print (ValueFreq)
{'yes': 126756, 'no': 11023}
FeatureList = {'case', 'type', 'phrasetype', 'degree', 'mood', 'nu', 'number', 'person', 'sp', 'tense', 'voice', 'gn' }
for Feature in FeatureList:
ValueFreq = {}
for node in F.otype.s('word'):
# implementation of pseudo: gn=F.{Feature}.v(node)
Value= getattr(F, Feature).v(node)
ValueFreq[Value] = ValueFreq.setdefault(Value, 0) + 1
print ('Feature:',Feature,' Frequency:',ValueFreq)
Feature: sp Frequency: {'noun': 28455, 'verb': 28357, 'det': 19786, 'conj': 18227, 'pron': 16177, 'prep': 10914, 'adj': 8452, 'adv': 6147, 'ptcl': 773, 'num': 476, 'intj': 15} Feature: number Frequency: {'Singular': 69846, '': 38842, 'Plural': 29091} Feature: phrasetype Frequency: {None: 137779} Feature: person Frequency: {'': 118360, 'Third': 12747, 'Second': 3729, 'First': 2943} Feature: nu Frequency: {'Singular': 69846, '': 38842, 'Plural': 29091} Feature: degree Frequency: {'': 137266, 'Superlative': 200, 'Comparative': 313} Feature: tense Frequency: {'': 109422, 'Aorist': 11803, 'Present': 11579, 'Imperfect': 1689, 'Future': 1626, 'Perfect': 1572, 'Pluperfect': 88} Feature: case Frequency: {'Nominative': 24197, 'Genitive': 19515, '': 58261, 'Accusative': 23031, 'Dative': 12126, 'Vocative': 649} Feature: mood Frequency: {'': 109422, 'Indicative': 15617, 'Participle': 6653, 'Infinitive': 2285, 'Imperative': 1877, 'Subjunctive': 1856, 'Optative': 69} Feature: type Frequency: {'Common': 23644, 'Proper': 4639, '': 93321, 'Personal': 11521, 'Relative': 1674, 'Demonstrative': 1722, 'Interrogative': 633, 'Indefinite': 552, 'Possessive': 70, 'Adverbial': 3} Feature: voice Frequency: {'': 109422, 'Active': 20742, 'Passive': 3493, 'Middle': 2408, 'MiddlePassive': 1714} Feature: gn Frequency: {'Feminine': 18736, 'Masculine': 41486, '': 63804, 'Neuter': 13753}
N1904.zipAll()
Data to be zipped:
'git' is not recognized as an internal or external command, operable program or batch file.
OK app (v?? ??) : ~/github/tonyjurg/Nestle1904/app
'git' is not recognized as an internal or external command, operable program or batch file.
OK main data (v?? ??) : ~/github/tonyjurg/Nestle1904/tf/1904 Writing zip file ... Result: ~/Downloads/github/tonyjurg/Nestle1904/complete.zip