{ "cells": [ { "cell_type": "markdown", "id": "11bb67cd-1431-45d5-96cc-fc2c7129c63b", "metadata": {}, "source": [ "# Local Play Ground " ] }, { "cell_type": "markdown", "id": "6ac99cd9-bbcb-40fa-b3b6-007b290b7e65", "metadata": { "tags": [] }, "source": [ "Setting up the file location structure of the playground.\n", "See image:\n", " \n", " \n", "Note that the variable `version` is defined as:\n", "> The version directory with the actual `tf` files that will be used." ] }, { "cell_type": "code", "execution_count": 1, "id": "1383a2f9-3b2c-4a94-aef6-685d035fd358", "metadata": { "tags": [] }, "outputs": [], "source": [ "%load_ext autoreload\n", "%autoreload 2" ] }, { "cell_type": "code", "execution_count": 2, "id": "d23d87dc-109c-47fd-ad1c-7ca90691fc2c", "metadata": { "tags": [] }, "outputs": [], "source": [ "from tf.app import use" ] }, { "cell_type": "code", "execution_count": 152, "id": "d844aa7e-ef95-4bfe-bda7-c7db1c74d47c", "metadata": { "tags": [] }, "outputs": [ { "data": { "text/markdown": [ "**Locating corpus resources ...**" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "The requested app is not available offline\n", "\t~/text-fabric-data/github/tonyjurg/Nestle1904LFT/app not found\n" ] }, { "data": { "text/html": [ "Status: latest release online v0.6 versus None locally" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "downloading app, main data and requested additions ..." ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "app: ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/app" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "The requested data is not available offline\n", "\t~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6 not found\n" ] }, { "data": { "text/html": [ "Status: latest release online v0.6 versus None locally" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "downloading app, main data and requested additions ..." ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "data: ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ " | 0.19s T otype from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 2.65s T oslots from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.51s T after from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.61s T wordunacc from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.49s T chapter from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.46s T verse from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.61s T unicode from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.61s T normalized from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.57s T book from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.57s T wordtranslit from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.62s T word from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | | 0.06s C __levels__ from otype, oslots, otext\n", " | | 1.85s C __order__ from otype, oslots, __levels__\n", " | | 0.07s C __rank__ from otype, __order__\n", " | | 3.23s C __levUp__ from otype, oslots, __rank__\n", " | | 1.95s C __levDown__ from otype, __levUp__, __rank__\n", " | | 0.22s C __characters__ from otext\n", " | | 1.00s C __boundary__ from otype, oslots, __rank__\n", " | | 0.04s C __sections__ from otype, oslots, otext, __levUp__, __levels__, book, chapter, verse\n", " | | 0.25s C __structure__ from otype, oslots, otext, __rank__, __levUp__, book, chapter, verse\n", " | 0.39s T appos from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.53s T booknumber from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.55s T bookshort from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.48s T case from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.34s T clausetype from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.57s T containedclause from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.42s T degree from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.58s T gloss from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.48s T gn from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.04s T headverse from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.33s T junction from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.57s T lemma from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.52s T lex_dom from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.54s T ln from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.41s T markafter from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.42s T markbefore from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.42s T markorder from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.45s T monad from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.44s T mood from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.52s T morph from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.56s T nodeID from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.50s T nu from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.48s T number from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.43s T person from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.44s T punctuation from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.65s T ref from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.65s T reference from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.49s T roleclausedistance from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.46s T sentence from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.52s T sp from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.51s T sp_full from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.54s T strongs from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.44s T subj_ref from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.44s T tense from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.44s T type from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.43s T voice from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.38s T wgclass from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.34s T wglevel from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.41s T wgnum from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.35s T wgrole from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.36s T wgrolelong from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.41s T wgrule from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.33s T wgtype from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.49s T wordlevel from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.49s T wordrole from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n", " | 0.50s T wordrolelong from ~/text-fabric-data/github/tonyjurg/Nestle1904LFT/tf/0.6\n" ] }, { "data": { "text/html": [ "\n", " TF: TF API 12.1.5, tonyjurg/Nestle1904LFT/app v3, Search Reference
\n", " Data: tonyjurg - Nestle1904LFT 0.6, Character table, Feature docs
\n", "
Node types\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", "\n", "\n", " \n", " \n", " \n", " \n", "\n", "\n", "\n", " \n", " \n", " \n", " \n", "\n", "\n", "\n", " \n", " \n", " \n", " \n", "\n", "\n", "\n", " \n", " \n", " \n", " \n", "\n", "\n", "\n", " \n", " \n", " \n", " \n", "\n", "\n", "\n", " \n", " \n", " \n", " \n", "\n", "
Name# of nodes# slots / node% coverage
book275102.93100
chapter260529.92100
verse794317.35100
sentence801117.20100
wg1054306.85524
word1377791.00100
\n", " Sets: no custom sets
\n", " Features:
\n", "
Nestle 1904 (Low Fat Tree)\n", "
\n", "\n", "
\n", "
\n", "after\n", "
\n", "
str
\n", "\n", " ✅ Characters (eg. punctuations) following the word\n", "\n", "
\n", "\n", "
\n", "
\n", "appos\n", "
\n", "
str
\n", "\n", " ⚠️ Apposition details (e.g. XXXX)\n", "\n", "
\n", "\n", "
\n", "
\n", "book\n", "
\n", "
str
\n", "\n", " ✅ Book name (in English language)\n", "\n", "
\n", "\n", "
\n", "
\n", "booknumber\n", "
\n", "
int
\n", "\n", " ✅ NT book number (Matthew=1, Mark=2, ..., Revelation=27)\n", "\n", "
\n", "\n", "
\n", "
\n", "bookshort\n", "
\n", "
str
\n", "\n", " ✅ Book name (abbreviated)\n", "\n", "
\n", "\n", "
\n", "
\n", "case\n", "
\n", "
str
\n", "\n", " ✅ Gramatical case (Nominative, Genitive, Dative, Accusative, Vocative)\n", "\n", "
\n", "\n", "
\n", "
\n", "chapter\n", "
\n", "
int
\n", "\n", " ✅ Chapter number inside book\n", "\n", "
\n", "\n", "
\n", "
\n", "clausetype\n", "
\n", "
str
\n", "\n", " ✅ Clause type details (e.g. Verbless, Minor)\n", "\n", "
\n", "\n", "
\n", "
\n", "containedclause\n", "
\n", "
str
\n", "\n", " 🆗 Contained clause (WG number)\n", "\n", "
\n", "\n", "
\n", "
\n", "degree\n", "
\n", "
str
\n", "\n", " ✅ Degree (e.g. Comparitative, Superlative)\n", "\n", "
\n", "\n", "
\n", "
\n", "gloss\n", "
\n", "
str
\n", "\n", " ✅ English gloss\n", "\n", "
\n", "\n", "
\n", "
\n", "gn\n", "
\n", "
str
\n", "\n", " ✅ Gramatical gender (Masculine, Feminine, Neuter)\n", "\n", "
\n", "\n", "
\n", "
\n", "headverse\n", "
\n", "
str
\n", "\n", " ✅ Start verse number of a sentence\n", "\n", "
\n", "\n", "
\n", "
\n", "junction\n", "
\n", "
str
\n", "\n", " ✅ Junction data related to a wordgroup\n", "\n", "
\n", "\n", "
\n", "
\n", "lemma\n", "
\n", "
str
\n", "\n", " ✅ Lexeme (lemma)\n", "\n", "
\n", "\n", "
\n", "
\n", "lex_dom\n", "
\n", "
str
\n", "\n", " ✅ Lexical domain according to Semantic Dictionary of Biblical Greek, SDBG (not present everywhere?)\n", "\n", "
\n", "\n", "
\n", "
\n", "ln\n", "
\n", "
str
\n", "\n", " ✅ Lauw-Nida lexical classification (not present everywhere?)\n", "\n", "
\n", "\n", "
\n", "
\n", "markafter\n", "
\n", "
str
\n", "\n", " 🆗 Text critical marker after word\n", "\n", "
\n", "\n", "
\n", "
\n", "markbefore\n", "
\n", "
str
\n", "\n", " 🆗 Text critical marker before word\n", "\n", "
\n", "\n", "
\n", "
\n", "markorder\n", "
\n", "
str
\n", "\n", "  Order of punctuation and text critical marker\n", "\n", "
\n", "\n", "
\n", "
\n", "monad\n", "
\n", "
int
\n", "\n", " ✅ Monad (smallest token matching word order in the corpus)\n", "\n", "
\n", "\n", "
\n", "
\n", "mood\n", "
\n", "
str
\n", "\n", " ✅ Gramatical mood of the verb (passive, etc)\n", "\n", "
\n", "\n", "
\n", "
\n", "morph\n", "
\n", "
str
\n", "\n", " ✅ Morphological tag (Sandborg-Petersen morphology)\n", "\n", "
\n", "\n", "
\n", "
\n", "nodeID\n", "
\n", "
str
\n", "\n", " ✅ Node ID (as in the XML source data)\n", "\n", "
\n", "\n", "
\n", "
\n", "normalized\n", "
\n", "
str
\n", "\n", " ✅ Surface word with accents normalized and trailing punctuations removed\n", "\n", "
\n", "\n", "
\n", "
\n", "nu\n", "
\n", "
str
\n", "\n", " ✅ Gramatical number (Singular, Plural)\n", "\n", "
\n", "\n", "
\n", "
\n", "number\n", "
\n", "
str
\n", "\n", " ✅ Gramatical number of the verb (e.g. singular, plural)\n", "\n", "
\n", "\n", "
\n", "
\n", "otype\n", "
\n", "
str
\n", "\n", " \n", "\n", "
\n", "\n", "
\n", "
\n", "person\n", "
\n", "
str
\n", "\n", " ✅ Gramatical person of the verb (first, second, third)\n", "\n", "
\n", "\n", "
\n", "
\n", "punctuation\n", "
\n", "
str
\n", "\n", " ✅ Punctuation after word\n", "\n", "
\n", "\n", "
\n", "
\n", "ref\n", "
\n", "
str
\n", "\n", " ✅ Value of the ref ID (taken from XML sourcedata)\n", "\n", "
\n", "\n", "
\n", "
\n", "reference\n", "
\n", "
str
\n", "\n", " ✅ Reference (to nodeID in XML source data, not yet post-processes)\n", "\n", "
\n", "\n", "
\n", "
\n", "roleclausedistance\n", "
\n", "
str
\n", "\n", " ⚠️ Distance to the wordgroup defining the syntactical role of this word\n", "\n", "
\n", "\n", "
\n", "
\n", "sentence\n", "
\n", "
int
\n", "\n", " ✅ Sentence number (counted per chapter)\n", "\n", "
\n", "\n", "
\n", "
\n", "sp\n", "
\n", "
str
\n", "\n", " ✅ Part of Speech (abbreviated)\n", "\n", "
\n", "\n", "
\n", "
\n", "sp_full\n", "
\n", "
str
\n", "\n", " ✅ Part of Speech (long description)\n", "\n", "
\n", "\n", "
\n", "
\n", "strongs\n", "
\n", "
str
\n", "\n", " ✅ Strongs number\n", "\n", "
\n", "\n", "
\n", "
\n", "subj_ref\n", "
\n", "
str
\n", "\n", " 🆗 Subject reference (to nodeID in XML source data, not yet post-processes)\n", "\n", "
\n", "\n", "
\n", "
\n", "tense\n", "
\n", "
str
\n", "\n", " ✅ Gramatical tense of the verb (e.g. Present, Aorist)\n", "\n", "
\n", "\n", "
\n", "
\n", "type\n", "
\n", "
str
\n", "\n", " ✅ Gramatical type of noun or pronoun (e.g. Common, Personal)\n", "\n", "
\n", "\n", "
\n", "
\n", "unicode\n", "
\n", "
str
\n", "\n", " ✅ Word as it apears in the text in Unicode (incl. punctuations)\n", "\n", "
\n", "\n", "
\n", "
\n", "verse\n", "
\n", "
int
\n", "\n", " ✅ Verse number inside chapter\n", "\n", "
\n", "\n", "
\n", "
\n", "voice\n", "
\n", "
str
\n", "\n", " ✅ Gramatical voice of the verb (e.g. active,passive)\n", "\n", "
\n", "\n", "
\n", "
\n", "wgclass\n", "
\n", "
str
\n", "\n", " ✅ Class of the wordgroup (e.g. cl, np, vp)\n", "\n", "
\n", "\n", "
\n", "
\n", "wglevel\n", "
\n", "
int
\n", "\n", " 🆗 Number of the parent wordgroups for a wordgroup\n", "\n", "
\n", "\n", "
\n", "
\n", "wgnum\n", "
\n", "
int
\n", "\n", " ✅ Wordgroup number (counted per book)\n", "\n", "
\n", "\n", "
\n", "
\n", "wgrole\n", "
\n", "
str
\n", "\n", " ✅ Syntactical role of the wordgroup (abbreviated)\n", "\n", "
\n", "\n", "
\n", "
\n", "wgrolelong\n", "
\n", "
str
\n", "\n", " ✅ Syntactical role of the wordgroup (full)\n", "\n", "
\n", "\n", "
\n", "
\n", "wgrule\n", "
\n", "
str
\n", "\n", " ✅ Wordgroup rule information (e.g. Np-Appos, ClCl2, PrepNp)\n", "\n", "
\n", "\n", "
\n", "
\n", "wgtype\n", "
\n", "
str
\n", "\n", " ✅ Wordgroup type details (e.g. group, apposition)\n", "\n", "
\n", "\n", "
\n", "
\n", "word\n", "
\n", "
str
\n", "\n", " ✅ Word as it appears in the text (excl. punctuations)\n", "\n", "
\n", "\n", "
\n", "
\n", "wordlevel\n", "
\n", "
str
\n", "\n", " 🆗 Number of the parent wordgroups for a word\n", "\n", "
\n", "\n", "
\n", "
\n", "wordrole\n", "
\n", "
str
\n", "\n", " ✅ Syntactical role of the word (abbreviated)\n", "\n", "
\n", "\n", "
\n", "
\n", "wordrolelong\n", "
\n", "
str
\n", "\n", " ✅ Syntactical role of the word (full)\n", "\n", "
\n", "\n", "
\n", "
\n", "wordtranslit\n", "
\n", "
str
\n", "\n", " 🆗 Transliteration of the text (in latin letters, excl. punctuations)\n", "\n", "
\n", "\n", "
\n", "
\n", "wordunacc\n", "
\n", "
str
\n", "\n", " ✅ Word without accents (excl. punctuations)\n", "\n", "
\n", "\n", "
\n", "
\n", "oslots\n", "
\n", "
none
\n", "\n", " \n", "\n", "
\n", "\n", "
\n", "
\n", "\n", " Settings:
specified
  1. apiVersion: 3
  2. appName: tonyjurg/Nestle1904LFT
  3. appPath:C:/Users/tonyj/text-fabric-data/github/tonyjurg/Nestle1904LFT/app
  4. commit: no value
  5. css: ''
  6. dataDisplay:
    • excludedFeatures:
      • orig_order
      • verse
      • book
      • chapter
    • noneValues:
      • none
      • unknown
      • no value
      • NA
      • ''
    • showVerseInTuple: 0
    • textFormat: text-orig-full
  7. docs:
    • docBase: https://github.com/tonyjurg/Nestle1904LFT/blob/main/docs/
    • docPage: about
    • docRoot: https://github.com/tonyjurg/Nestle1904LFT
    • featureBase:https://github.com/tonyjurg/Nestle1904LFT/blob/main/docs/features/<feature>.md
  8. interfaceDefaults: {fmt: layout-orig-full}
  9. isCompatible: True
  10. local: no value
  11. localDir:C:/Users/tonyj/text-fabric-data/github/tonyjurg/Nestle1904LFT/_temp
  12. provenanceSpec:
    • corpus: Nestle 1904 (Low Fat Tree)
    • doi: notyet
    • org: tonyjurg
    • relative: /tf
    • repo: Nestle1904LFT
    • repro: Nestle1904LFT
    • version: 0.6
    • webBase: https://learner.bible/text/show_text/nestle1904/
    • webHint: Show this on the Bible Online Learner website
    • webLang: en
    • webUrl:https://learner.bible/text/show_text/nestle1904/<1>/<2>/<3>
    • webUrlLex: {webBase}/word?version={version}&id=<lid>
  13. release: no value
  14. typeDisplay:
    • book:
      • condense: True
      • hidden: True
      • label: {book}
      • style: ''
    • chapter:
      • condense: True
      • hidden: True
      • label: {chapter}
      • style: ''
    • sentence:
      • hidden: 0
      • label: #{sentence} (start: {book} {chapter}:{headverse})
      • style: ''
    • verse:
      • condense: True
      • excludedFeatures: chapter verse
      • label: {book} {chapter}:{verse}
      • style: ''
    • wg:
      • hidden: 0
      • label:#{wgnum}: {wgtype} {wgclass} {clausetype} {wgrole} {wgrule} {junction}
      • style: ''
    • word:
      • base: True
      • features: lemma
      • featuresBare: gloss
      • surpress: chapter verse
  15. writing: grc
\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "\n", "\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
TF API: names N F E L T S C TF Fs Fall Es Eall Cs Call directly usable

" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# load the N1904 app and data from GitHub\n", "PLAY = use (\"tonyjurg/Nestle1904LFT\", version=\"0.6\", hoist=globals())" ] }, { "cell_type": "code", "execution_count": 133, "id": "16e8b3d9-6b89-4d8a-9e58-f62556259dd0", "metadata": { "tags": [] }, "outputs": [ { "data": { "text/markdown": [ "**Locating corpus resources ...**" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ " | 0.18s T otype from C:/TF/tf/0.6\n", " | 2.48s T oslots from C:/TF/tf/0.6\n", " | 0.49s T after from C:/TF/tf/0.6\n", " | 0.60s T wordunacc from C:/TF/tf/0.6\n", " | 0.48s T chapter from C:/TF/tf/0.6\n", " | 0.47s T verse from C:/TF/tf/0.6\n", " | 0.63s T unicode from C:/TF/tf/0.6\n", " | 0.64s T normalized from C:/TF/tf/0.6\n", " | 0.59s T book from C:/TF/tf/0.6\n", " | 0.63s T wordtranslit from C:/TF/tf/0.6\n", " | 0.66s T word from C:/TF/tf/0.6\n", " | | 0.06s C __levels__ from otype, oslots, otext\n", " | | 1.82s C __order__ from otype, oslots, __levels__\n", " | | 0.07s C __rank__ from otype, __order__\n", " | | 3.31s C __levUp__ from otype, oslots, __rank__\n", " | | 1.99s C __levDown__ from otype, __levUp__, __rank__\n", " | | 0.21s C __characters__ from otext\n", " | | 0.98s C __boundary__ from otype, oslots, __rank__\n", " | | 0.04s C __sections__ from otype, oslots, otext, __levUp__, __levels__, book, chapter, verse\n", " | | 0.22s C __structure__ from otype, oslots, otext, __rank__, __levUp__, book, chapter, verse\n", " | 0.44s T booknumber from C:/TF/tf/0.6\n", " | 0.52s T bookshort from C:/TF/tf/0.6\n", " | 0.48s T case from C:/TF/tf/0.6\n", " | 0.33s T clausetype from C:/TF/tf/0.6\n", " | 0.55s T containedclause from C:/TF/tf/0.6\n", " | 0.44s T degree from C:/TF/tf/0.6\n", " | 0.57s T gloss from C:/TF/tf/0.6\n", " | 0.47s T gn from C:/TF/tf/0.6\n", " | 0.03s T headverse from C:/TF/tf/0.6\n", " | 0.32s T junction from C:/TF/tf/0.6\n", " | 0.57s T lemma from C:/TF/tf/0.6\n", " | 0.54s T lex_dom from C:/TF/tf/0.6\n", " | 0.56s T ln from C:/TF/tf/0.6\n", " | 0.42s T markafter from C:/TF/tf/0.6\n", " | 0.41s T markbefore from C:/TF/tf/0.6\n", " | 0.42s T markorder from C:/TF/tf/0.6\n", " | 0.45s T monad from C:/TF/tf/0.6\n", " | 0.45s T mood from C:/TF/tf/0.6\n", " | 0.53s T morph from C:/TF/tf/0.6\n", " | 0.54s T nodeID from C:/TF/tf/0.6\n", " | 0.49s T nu from C:/TF/tf/0.6\n", " | 0.49s T number from C:/TF/tf/0.6\n", " | 0.44s T person from C:/TF/tf/0.6\n", " | 0.46s T punctuation from C:/TF/tf/0.6\n", " | 0.66s T ref from C:/TF/tf/0.6\n", " | 0.66s T reference from C:/TF/tf/0.6\n", " | 0.50s T roleclausedistance from C:/TF/tf/0.6\n", " | 0.48s T sentence from C:/TF/tf/0.6\n", " | 0.50s T sp from C:/TF/tf/0.6\n", " | 0.50s T sp_full from C:/TF/tf/0.6\n", " | 0.52s T strongs from C:/TF/tf/0.6\n", " | 0.44s T subj_ref from C:/TF/tf/0.6\n", " | 0.44s T tense from C:/TF/tf/0.6\n", " | 0.44s T type from C:/TF/tf/0.6\n", " | 0.44s T voice from C:/TF/tf/0.6\n", " | 0.38s T wgclass from C:/TF/tf/0.6\n", " | 0.33s T wglevel from C:/TF/tf/0.6\n", " | 0.35s T wgnum from C:/TF/tf/0.6\n", " | 0.34s T wgrole from C:/TF/tf/0.6\n", " | 0.34s T wgrolelong from C:/TF/tf/0.6\n", " | 0.39s T wgrule from C:/TF/tf/0.6\n", " | 0.33s T wgtype from C:/TF/tf/0.6\n", " | 0.49s T wordlevel from C:/TF/tf/0.6\n", " | 0.51s T wordrole from C:/TF/tf/0.6\n", " | 0.51s T wordrolelong from C:/TF/tf/0.6\n" ] }, { "data": { "text/html": [ "\n", " TF: TF API 12.1.5, tonyjurg//app v3, Search Reference
\n", " Data: tonyjurg - 0.6, Character table, Feature docs
\n", "
Node types\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", "\n", "\n", " \n", " \n", " \n", " \n", "\n", "\n", "\n", " \n", " \n", " \n", " \n", "\n", "\n", "\n", " \n", " \n", " \n", " \n", "\n", "\n", "\n", " \n", " \n", " \n", " \n", "\n", "\n", "\n", " \n", " \n", " \n", " \n", "\n", "\n", "\n", " \n", " \n", " \n", " \n", "\n", "
Name# of nodes# slots / node% coverage
book275102.93100
chapter260529.92100
verse794317.35100
sentence801117.20100
wg1054306.85524
word1377791.00100
\n", " Sets: no custom sets
\n", " Features:
\n", "
C:/TF/tf\n", "
\n", "\n", "
\n", "
\n", "after\n", "
\n", "
str
\n", "\n", " ✅ Characters (eg. punctuations) following the word\n", "\n", "
\n", "\n", "
\n", "
\n", "book\n", "
\n", "
str
\n", "\n", " ✅ Book name (in English language)\n", "\n", "
\n", "\n", "
\n", "
\n", "booknumber\n", "
\n", "
int
\n", "\n", " ✅ NT book number (Matthew=1, Mark=2, ..., Revelation=27)\n", "\n", "
\n", "\n", "
\n", "
\n", "bookshort\n", "
\n", "
str
\n", "\n", " ✅ Book name (abbreviated)\n", "\n", "
\n", "\n", "
\n", "
\n", "case\n", "
\n", "
str
\n", "\n", " ✅ Gramatical case (Nominative, Genitive, Dative, Accusative, Vocative)\n", "\n", "
\n", "\n", "
\n", "
\n", "chapter\n", "
\n", "
int
\n", "\n", " ✅ Chapter number inside book\n", "\n", "
\n", "\n", "
\n", "
\n", "clausetype\n", "
\n", "
str
\n", "\n", " ✅ Clause type details (e.g. Verbless, Minor)\n", "\n", "
\n", "\n", "
\n", "
\n", "containedclause\n", "
\n", "
str
\n", "\n", " 🆗 Contained clause (WG number)\n", "\n", "
\n", "\n", "
\n", "
\n", "degree\n", "
\n", "
str
\n", "\n", " ✅ Degree (e.g. Comparitative, Superlative)\n", "\n", "
\n", "\n", "
\n", "
\n", "gloss\n", "
\n", "
str
\n", "\n", " ✅ English gloss\n", "\n", "
\n", "\n", "
\n", "
\n", "gn\n", "
\n", "
str
\n", "\n", " ✅ Gramatical gender (Masculine, Feminine, Neuter)\n", "\n", "
\n", "\n", "
\n", "
\n", "headverse\n", "
\n", "
str
\n", "\n", " ✅ Start verse number of a sentence\n", "\n", "
\n", "\n", "
\n", "
\n", "junction\n", "
\n", "
str
\n", "\n", " ✅ Junction data related to a wordgroup\n", "\n", "
\n", "\n", "
\n", "
\n", "lemma\n", "
\n", "
str
\n", "\n", " ✅ Lexeme (lemma)\n", "\n", "
\n", "\n", "
\n", "
\n", "lex_dom\n", "
\n", "
str
\n", "\n", " ✅ Lexical domain according to Semantic Dictionary of Biblical Greek, SDBG (not present everywhere?)\n", "\n", "
\n", "\n", "
\n", "
\n", "ln\n", "
\n", "
str
\n", "\n", " ✅ Lauw-Nida lexical classification (not present everywhere?)\n", "\n", "
\n", "\n", "
\n", "
\n", "markafter\n", "
\n", "
str
\n", "\n", " 🆗 Text critical marker after word\n", "\n", "
\n", "\n", "
\n", "
\n", "markbefore\n", "
\n", "
str
\n", "\n", " 🆗 Text critical marker before word\n", "\n", "
\n", "\n", "
\n", "
\n", "markorder\n", "
\n", "
str
\n", "\n", "  Order of punctuation and text critical marker\n", "\n", "
\n", "\n", "
\n", "
\n", "monad\n", "
\n", "
int
\n", "\n", " ✅ Monad (smallest token matching word order in the corpus)\n", "\n", "
\n", "\n", "
\n", "
\n", "mood\n", "
\n", "
str
\n", "\n", " ✅ Gramatical mood of the verb (passive, etc)\n", "\n", "
\n", "\n", "
\n", "
\n", "morph\n", "
\n", "
str
\n", "\n", " ✅ Morphological tag (Sandborg-Petersen morphology)\n", "\n", "
\n", "\n", "
\n", "
\n", "nodeID\n", "
\n", "
str
\n", "\n", " ✅ Node ID (as in the XML source data)\n", "\n", "
\n", "\n", "
\n", "
\n", "normalized\n", "
\n", "
str
\n", "\n", " ✅ Surface word with accents normalized and trailing punctuations removed\n", "\n", "
\n", "\n", "
\n", "
\n", "nu\n", "
\n", "
str
\n", "\n", " ✅ Gramatical number (Singular, Plural)\n", "\n", "
\n", "\n", "
\n", "
\n", "number\n", "
\n", "
str
\n", "\n", " ✅ Gramatical number of the verb (e.g. singular, plural)\n", "\n", "
\n", "\n", "
\n", "
\n", "otype\n", "
\n", "
str
\n", "\n", " \n", "\n", "
\n", "\n", "
\n", "
\n", "person\n", "
\n", "
str
\n", "\n", " ✅ Gramatical person of the verb (first, second, third)\n", "\n", "
\n", "\n", "
\n", "
\n", "punctuation\n", "
\n", "
str
\n", "\n", " ✅ Punctuation after word\n", "\n", "
\n", "\n", "
\n", "
\n", "ref\n", "
\n", "
str
\n", "\n", " ✅ Value of the ref ID (taken from XML sourcedata)\n", "\n", "
\n", "\n", "
\n", "
\n", "reference\n", "
\n", "
str
\n", "\n", " ✅ Reference (to nodeID in XML source data, not yet post-processes)\n", "\n", "
\n", "\n", "
\n", "
\n", "roleclausedistance\n", "
\n", "
str
\n", "\n", " ⚠️ Distance to the wordgroup defining the syntactical role of this word\n", "\n", "
\n", "\n", "
\n", "
\n", "sentence\n", "
\n", "
int
\n", "\n", " ✅ Sentence number (counted per chapter)\n", "\n", "
\n", "\n", "
\n", "
\n", "sp\n", "
\n", "
str
\n", "\n", " ✅ Part of Speech (abbreviated)\n", "\n", "
\n", "\n", "
\n", "
\n", "sp_full\n", "
\n", "
str
\n", "\n", " ✅ Part of Speech (long description)\n", "\n", "
\n", "\n", "
\n", "
\n", "strongs\n", "
\n", "
str
\n", "\n", " ✅ Strongs number\n", "\n", "
\n", "\n", "
\n", "
\n", "subj_ref\n", "
\n", "
str
\n", "\n", " 🆗 Subject reference (to nodeID in XML source data, not yet post-processes)\n", "\n", "
\n", "\n", "
\n", "
\n", "tense\n", "
\n", "
str
\n", "\n", " ✅ Gramatical tense of the verb (e.g. Present, Aorist)\n", "\n", "
\n", "\n", "
\n", "
\n", "type\n", "
\n", "
str
\n", "\n", " ✅ Gramatical type of noun or pronoun (e.g. Common, Personal)\n", "\n", "
\n", "\n", "
\n", "
\n", "unicode\n", "
\n", "
str
\n", "\n", " ✅ Word as it apears in the text in Unicode (incl. punctuations)\n", "\n", "
\n", "\n", "
\n", "
\n", "verse\n", "
\n", "
int
\n", "\n", " ✅ Verse number inside chapter\n", "\n", "
\n", "\n", "
\n", "
\n", "voice\n", "
\n", "
str
\n", "\n", " ✅ Gramatical voice of the verb (e.g. active,passive)\n", "\n", "
\n", "\n", "
\n", "
\n", "wgclass\n", "
\n", "
str
\n", "\n", " ✅ Class of the wordgroup (e.g. cl, np, vp)\n", "\n", "
\n", "\n", "
\n", "
\n", "wglevel\n", "
\n", "
int
\n", "\n", " 🆗 Number of the parent wordgroups for a wordgroup\n", "\n", "
\n", "\n", "
\n", "
\n", "wgnum\n", "
\n", "
int
\n", "\n", " ✅ Wordgroup number (counted per book)\n", "\n", "
\n", "\n", "
\n", "
\n", "wgrole\n", "
\n", "
str
\n", "\n", " ✅ Syntactical role of the wordgroup (abbreviated)\n", "\n", "
\n", "\n", "
\n", "
\n", "wgrolelong\n", "
\n", "
str
\n", "\n", " ✅ Syntactical role of the wordgroup (full)\n", "\n", "
\n", "\n", "
\n", "
\n", "wgrule\n", "
\n", "
str
\n", "\n", " ✅ Wordgroup rule information (e.g. Np-Appos, ClCl2, PrepNp)\n", "\n", "
\n", "\n", "
\n", "
\n", "wgtype\n", "
\n", "
str
\n", "\n", " ✅ Wordgroup type details (e.g. group, apposition)\n", "\n", "
\n", "\n", "
\n", "
\n", "word\n", "
\n", "
str
\n", "\n", " ✅ Word as it appears in the text (excl. punctuations)\n", "\n", "
\n", "\n", "
\n", "
\n", "wordlevel\n", "
\n", "
str
\n", "\n", " 🆗 Number of the parent wordgroups for a word\n", "\n", "
\n", "\n", "
\n", "
\n", "wordrole\n", "
\n", "
str
\n", "\n", " ✅ Syntactical role of the word (abbreviated)\n", "\n", "
\n", "\n", "
\n", "
\n", "wordrolelong\n", "
\n", "
str
\n", "\n", " ✅ Syntactical role of the word (full)\n", "\n", "
\n", "\n", "
\n", "
\n", "wordtranslit\n", "
\n", "
str
\n", "\n", " 🆗 Transliteration of the text (in latin letters, excl. punctuations)\n", "\n", "
\n", "\n", "
\n", "
\n", "wordunacc\n", "
\n", "
str
\n", "\n", " ✅ Word without accents (excl. punctuations)\n", "\n", "
\n", "\n", "
\n", "
\n", "oslots\n", "
\n", "
none
\n", "\n", " \n", "\n", "
\n", "\n", "
\n", "
\n", "\n", " Settings:
specified
  1. apiVersion: 3
  2. appName: app:/TF/app
  3. appPath: C:/TF/app
  4. commit: no value
  5. css: ''
  6. dataDisplay:
    • excludedFeatures:
      • orig_order
      • verse
      • book
      • chapter
    • noneValues:
      • none
      • unknown
      • no value
      • NA
      • ''
    • showVerseInTuple: 0
    • textFormat: text-orig-full
  7. docs:
    • docBase: https://github.com/tonyjurg/Nestle1904LFT/blob/main/docs/
    • docPage: about
    • docRoot: https://github.com/tonyjurg/Nestle1904LFT
    • featureBase:https://github.com/tonyjurg/Nestle1904LFT/blob/main/docs/features/<feature>.md
  8. interfaceDefaults: {fmt: layout-orig-full}
  9. isCompatible: True
  10. local: no value
  11. localDir: C:/Users/tonyj/text-fabric-data/github/tonyjurg/None/_temp
  12. provenanceSpec:
    • corpus: Nestle 1904 (Low Fat Tree)
    • doi: notyet
    • org: tonyjurg
    • repro: Nestle1904LFT
    • version: 0.6
    • webBase: https://learner.bible/text/show_text/nestle1904/
    • webHint: Show this on the Bible Online Learner website
    • webLang: en
    • webUrl:https://learner.bible/text/show_text/nestle1904/<1>/<2>/<3>
    • webUrlLex: {webBase}/word?version={version}&id=<lid>
  13. release: no value
  14. typeDisplay:
    • book:
      • condense: True
      • hidden: True
      • label: {book}
      • style: ''
    • chapter:
      • condense: True
      • hidden: True
      • label: {chapter}
      • style: ''
    • sentence:
      • hidden: 0
      • label: #{sentence} (start: {book} {chapter}:{headverse})
      • style: ''
    • verse:
      • condense: True
      • excludedFeatures: chapter verse
      • label: {book} {chapter}:{verse}
      • style: ''
    • wg:
      • hidden: 0
      • label:#{wgnum}: {wgtype} {wgclass} {clausetype} {wgrole} {wgrule} {junction}
      • style: ''
    • word:
      • base: True
      • features: lemma
      • featuresBare: gloss
      • surpress: chapter verse
  15. writing: grc
\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "\n", "\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
TF API: names N F E L T S C TF Fs Fall Es Eall Cs Call directly usable

" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# load the N1904 app and data from local disc\n", "PLAY = use(\"app:/TF/app\", hoist=globals())" ] }, { "cell_type": "code", "execution_count": 153, "id": "6daf8e73-dbcf-4855-aad5-5807cc763907", "metadata": { "tags": [] }, "outputs": [], "source": [ "# Set default view in a way to limit noise as much as possible.\n", "PLAY.displaySetup(condensed=True, multiFeatures=False,queryFeatures=False)" ] }, { "cell_type": "code", "execution_count": 154, "id": "390e1e18-df63-4b5f-859d-cb7c7f3ae2f7", "metadata": { "tags": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ " 0.01s 1 result\n" ] } ], "source": [ "SentenceQuery = '''\n", "sentence headverse=1 book=John chapter=1\n", "'''\n", "\n", "SentenceResults = PLAY.search(SentenceQuery)" ] }, { "cell_type": "code", "execution_count": 155, "id": "484a029e-ee13-43a6-a4fc-ac7de84aacc0", "metadata": { "tags": [] }, "outputs": [ { "data": { "text/html": [ "

verse 1" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "

verse John 1:1
sentence #1 (start: John 1:1)
wg #2: cl* Conj3CL
wg #3: cl P-VC-S
wg #4: pp p PrepNp
Ἐν
ἀρχῇ
ἦν
wg #5: np s DetNP
Λόγος,
wg #6: group
καὶ
wg #7: cl S-VC-P
wg #8: np s DetNP
Λόγος
ἦν
wg #9: pp p PrepNp
πρὸς
wg #10: np DetNP
τὸν
Θεόν,
wg #11: group
καὶ
wg #12: cl P-VC-S
Θεὸς
ἦν
wg #13: np s DetNP
Λόγος.
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "PLAY.show(SentenceResults)" ] }, { "cell_type": "code", "execution_count": 156, "id": "b1e2c4b7-ddba-4f09-9246-4803734ad59b", "metadata": { "tags": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "[(141082,)]\n" ] } ], "source": [ "print (SentenceResults)" ] }, { "cell_type": "code", "execution_count": 157, "id": "6fd970cb-d89c-48c9-bd9b-92a13d8a1c0b", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "
npversesentence
1John 1:1Ἐν ἀρχῇ ἦν Λόγος, καὶ Λόγος ἦν πρὸς τὸν Θεόν, καὶ Θεὸς ἦν Λόγος.
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "PLAY.table(SentenceResults)" ] }, { "cell_type": "code", "execution_count": 158, "id": "be1f2f30-b8a3-4c3a-8dea-9a1299ca74be", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ " 0.01s 1 result\n" ] } ], "source": [ "Query = '''\n", "book book=Matthew\n", " verse chapter=1 verse=1\n", "'''\n", "\n", "Results = PLAY.search(Query)" ] }, { "cell_type": "code", "execution_count": 159, "id": "745cc777-255b-4b23-bc27-0abfc88055c3", "metadata": { "tags": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Feature: after \n", "\n", "\t value\t frequency\n", "\t \t 119270\n", "\t , \t 9462\n", "\t . \t 5717\n", "\t · \t 2359\n", "\t ; \t 971\n", "\n", "\n", "Feature: appos \n", "\n", "\t value\t frequency\n", "\t \t 105430\n", "\n", "\n", "Feature: book \n", "\n", "\t value\t frequency\n", "\t Luke \t 21785\n", "\t Matthew \t 20529\n", "\t Acts \t 20307\n", "\t John \t 17582\n", "\t Mark \t 12695\n", "\n", "\n", "Feature: booknumber \n", "\n", "\t value\t frequency\n", "\t 3 \t 19457\n", "\t 5 \t 18394\n", "\t 1 \t 18300\n", "\t 4 \t 15644\n", "\t 2 \t 11278\n", "\n", "\n", "Feature: bookshort \n", "\n", "\t value\t frequency\n", "\t Luke \t 19457\n", "\t Acts \t 18394\n", "\t Matt \t 18300\n", "\t John \t 15644\n", "\t Mark \t 11278\n", "\n", "\n", "Feature: case \n", "\n", "\t value\t frequency\n", "\t \t 58261\n", "\t nominative \t 24197\n", "\t accusative \t 23031\n", "\t genitive \t 19515\n", "\t dative \t 12126\n", "\n", "\n", "Feature: chapter \n", "\n", "\t value\t frequency\n", "\t 1 \t 12922\n", "\t 2 \t 10923\n", "\t 3 \t 9652\n", "\t 4 \t 9631\n", "\t 5 \t 8788\n", "\n", "\n", "Feature: clausetype \n", "\n", "\t value\t frequency\n", "\t \t 102662\n", "\t VerbElided \t 1009\n", "\t Verbless \t 929\n", "\t Minor \t 830\n", "\n", "\n", "Feature: containedclause \n", "\n", "\t value\t frequency\n", "\t \t 8372\n", "\t 2 \t 148\n", "\t 172 \t 69\n", "\t 97 \t 69\n", "\t 389 \t 68\n", "\n", "\n", "Feature: degree \n", "\n", "\t value\t frequency\n", "\t \t 137266\n", "\t comparative \t 313\n", "\t superlative \t 200\n", "\n", "\n", "Feature: gloss \n", "\n", "\t value\t frequency\n", "\t the \t 9857\n", "\t and \t 6212\n", "\t - \t 5496\n", "\t in \t 2320\n", "\t And \t 2218\n", "\n", "\n", "Feature: gn \n", "\n", "\t value\t frequency\n", "\t \t 63804\n", "\t masculine \t 41486\n", "\t feminine \t 18736\n", "\t neuter \t 13753\n", "\n", "\n", "Feature: headverse \n", "\n", "\t value\t frequency\n", "\t 1 \t 298\n", "\t 7 \t 270\n", "\t 12 \t 267\n", "\t 9 \t 264\n", "\t 13 \t 260\n", "\n", "\n", "Feature: junction \n", "\n", "\t value\t frequency\n", "\t \t 103128\n", "\t apposition \t 2302\n", "\n", "\n", "Feature: lemma \n", "\n", "\t value\t frequency\n", "\t ὁ \t 19783\n", "\t καί \t 8978\n", "\t αὐτός \t 5561\n", "\t σύ \t 2892\n", "\t δέ \t 2787\n", "\n", "\n", "Feature: lex_dom \n", "\n", "\t value\t frequency\n", "\t 092004 \t 26322\n", "\t \t 10487\n", "\t 089017 \t 4370\n", "\t 093001 \t 3672\n", "\t 033006 \t 3225\n", "\n", "\n", "Feature: ln \n", "\n", "\t value\t frequency\n", "\t 92.24 \t 19781\n", "\t \t 10488\n", "\t 92.11 \t 4718\n", "\t 89.92 \t 2903\n", "\t 89.87 \t 2756\n", "\n", "\n", "Feature: markafter \n", "\n", "\t value\t frequency\n", "\t \t 137728\n", "\t — \t 31\n", "\t ) \t 11\n", "\t ]] \t 7\n", "\t ( \t 1\n", "\n", "\n", "Feature: markbefore \n", "\n", "\t value\t frequency\n", "\t \t 137745\n", "\t — \t 16\n", "\t ( \t 10\n", "\t [[ \t 7\n", "\t [ \t 1\n", "\n", "\n", "Feature: markorder \n", "\n", "\t value\t frequency\n", "\t \t 137694\n", "\t 0 \t 34\n", "\t 3 \t 32\n", "\t 2 \t 10\n", "\t 1 \t 9\n", "\n", "\n", "Feature: monad \n", "\n", "\t value\t frequency\n", "\t 1 \t 1\n", "\t 2 \t 1\n", "\t 3 \t 1\n", "\t 4 \t 1\n", "\t 5 \t 1\n", "\n", "\n", "Feature: mood \n", "\n", "\t value\t frequency\n", "\t \t 109422\n", "\t indicative \t 15617\n", "\t participle \t 6653\n", "\t infinitive \t 2285\n", "\t imperative \t 1877\n", "\n", "\n", "Feature: morph \n", "\n", "\t value\t frequency\n", "\t CONJ \t 16316\n", "\t PREP \t 10568\n", "\t ADV \t 3808\n", "\t N-NSM \t 3475\n", "\t N-GSM \t 2935\n", "\n", "\n", "Feature: nodeID \n", "\n", "\t value\t frequency\n", "\t \t 52046\n", "\t common \t 14186\n", "\t personal \t 6040\n", "\t proper \t 2192\n", "\t relative \t 885\n", "\n", "\n", "Feature: normalized \n", "\n", "\t value\t frequency\n", "\t καί \t 8576\n", "\t ὁ \t 2769\n", "\t δέ \t 2764\n", "\t ἐν \t 2684\n", "\t τοῦ \t 2497\n", "\n", "\n", "Feature: nu \n", "\n", "\t value\t frequency\n", "\t singular \t 69846\n", "\t \t 38842\n", "\t plural \t 29091\n", "\n", "\n", "Feature: number \n", "\n", "\t value\t frequency\n", "\t singular \t 69846\n", "\t \t 38842\n", "\t plural \t 29091\n", "\n", "\n", "Feature: person \n", "\n", "\t value\t frequency\n", "\t \t 118360\n", "\t third \t 12747\n", "\t second \t 3729\n", "\t first \t 2943\n", "\n", "\n", "Feature: punctuation \n", "\n", "\t value\t frequency\n", "\t \t 119270\n", "\t , \t 9462\n", "\t . \t 5717\n", "\t · \t 2359\n", "\t ; \t 971\n", "\n", "\n", "Feature: ref \n", "\n", "\t value\t frequency\n", "\t 1CO 10:1!1 \t 1\n", "\t 1CO 10:1!10 \t 1\n", "\t 1CO 10:1!11 \t 1\n", "\t 1CO 10:1!12 \t 1\n", "\t 1CO 10:1!13 \t 1\n", "\n", "\n", "Feature: reference \n", "\n", "\t value\t frequency\n", "\t 1CO 10:1!1 \t 1\n", "\t 1CO 10:1!10 \t 1\n", "\t 1CO 10:1!11 \t 1\n", "\t 1CO 10:1!12 \t 1\n", "\t 1CO 10:1!13 \t 1\n", "\n", "\n", "Feature: roleclausedistance \n", "\n", "\t value\t frequency\n", "\t 0 \t 56129\n", "\t 1 \t 37597\n", "\t 2 \t 22297\n", "\t 3 \t 12084\n", "\t 4 \t 5277\n", "\n", "\n", "Feature: sentence \n", "\n", "\t value\t frequency\n", "\t 3 \t 1130\n", "\t 4 \t 987\n", "\t 1 \t 810\n", "\t 5 \t 774\n", "\t 6 \t 707\n", "\n", "\n", "Feature: sp \n", "\n", "\t value\t frequency\n", "\t noun \t 28455\n", "\t verb \t 28357\n", "\t det \t 19786\n", "\t conj \t 18227\n", "\t pron \t 16177\n", "\n", "\n", "Feature: sp_full \n", "\n", "\t value\t frequency\n", "\t Noun \t 28455\n", "\t Verb \t 28357\n", "\t Determiner \t 19786\n", "\t Conjunction \t 18227\n", "\t Pronoun \t 16177\n", "\n", "\n", "Feature: strongs \n", "\n", "\t value\t frequency\n", "\t 3588 \t 19783\n", "\t 2532 \t 8978\n", "\t 846 \t 5561\n", "\t 4771 \t 2892\n", "\t 1161 \t 2787\n", "\n", "\n", "Feature: subj_ref \n", "\n", "\t value\t frequency\n", "\t \t 121204\n", "\t n46003022002 \t 172\n", "\t n66001009002 \t 131\n", "\t n45001001001 \t 104\n", "\t n47010001004 \t 104\n", "\n", "\n", "Feature: tense \n", "\n", "\t value\t frequency\n", "\t \t 109422\n", "\t aorist \t 11803\n", "\t present \t 11579\n", "\t imperfect \t 1689\n", "\t future \t 1626\n", "\n", "\n", "Feature: type \n", "\n", "\t value\t frequency\n", "\t \t 93321\n", "\t common \t 23644\n", "\t personal \t 11521\n", "\t proper \t 4639\n", "\t demonstrative \t 1722\n", "\n", "\n", "Feature: unicode \n", "\n", "\t value\t frequency\n", "\t καὶ \t 8541\n", "\t ὁ \t 2768\n", "\t ἐν \t 2683\n", "\t δὲ \t 2619\n", "\t τοῦ \t 2497\n", "\n", "\n", "Feature: verse \n", "\n", "\t value\t frequency\n", "\t 10 \t 4928\n", "\t 12 \t 4910\n", "\t 4 \t 4800\n", "\t 9 \t 4800\n", "\t 1 \t 4793\n", "\n", "\n", "Feature: voice \n", "\n", "\t value\t frequency\n", "\t \t 109422\n", "\t active \t 20742\n", "\t passive \t 3493\n", "\t middle \t 2408\n", "\t middlepassive \t 1714\n", "\n", "\n", "Feature: wgclass \n", "\n", "\t value\t frequency\n", "\t np \t 33710\n", "\t cl \t 30857\n", "\t cl* \t 16378\n", "\t \t 12760\n", "\t pp \t 11169\n", "\n", "\n", "Feature: wglevel \n", "\n", "\t value\t frequency\n", "\t 5 \t 16862\n", "\t 4 \t 16527\n", "\t 6 \t 15520\n", "\t 7 \t 12162\n", "\t 3 \t 10442\n", "\n", "\n", "Feature: wgnum \n", "\n", "\t value\t frequency\n", "\t 2 \t 27\n", "\t 3 \t 27\n", "\t 4 \t 27\n", "\t 5 \t 27\n", "\t 6 \t 27\n", "\n", "\n", "Feature: wgrole \n", "\n", "\t value\t frequency\n", "\t \t 69235\n", "\t adv \t 16710\n", "\t o \t 9329\n", "\t s \t 6710\n", "\t p \t 1770\n", "\n", "\n", "Feature: wgrolelong \n", "\n", "\t value\t frequency\n", "\t \t 69263\n", "\t Adverbial \t 16710\n", "\t Object \t 9329\n", "\t Subject \t 6710\n", "\t Predicate \t 1770\n", "\n", "\n", "Feature: wgrule \n", "\n", "\t value\t frequency\n", "\t DetNP \t 15696\n", "\t \t 14701\n", "\t PrepNp \t 11044\n", "\t NPofNP \t 6819\n", "\t Conj-CL \t 5571\n", "\n", "\n", "Feature: wgtype \n", "\n", "\t value\t frequency\n", "\t \t 92932\n", "\t group \t 9699\n", "\t apposition \t 2799\n", "\n", "\n", "Feature: word \n", "\n", "\t value\t frequency\n", "\t καὶ \t 8545\n", "\t ὁ \t 2769\n", "\t ἐν \t 2684\n", "\t δὲ \t 2620\n", "\t τοῦ \t 2497\n", "\n", "\n", "Feature: wordlevel \n", "\n", "\t value\t frequency\n", "\t 6 \t 21857\n", "\t 7 \t 20984\n", "\t 5 \t 20538\n", "\t 8 \t 16755\n", "\t 9 \t 12772\n", "\n", "\n", "Feature: wordrole \n", "\n", "\t value\t frequency\n", "\t adv \t 41598\n", "\t v \t 25817\n", "\t s \t 22908\n", "\t o \t 21929\n", "\t \t 9347\n", "\n", "\n", "Feature: wordrolelong \n", "\n", "\t value\t frequency\n", "\t Adverbial \t 41598\n", "\t Verbal \t 25817\n", "\t Subject \t 22908\n", "\t Object \t 21929\n", "\t \t 9347\n", "\n", "\n", "Feature: wordtranslit \n", "\n", "\t value\t frequency\n", "\t kai \t 8576\n", "\t en \t 3152\n", "\t o \t 3149\n", "\t to \t 2885\n", "\t de \t 2769\n", "\n", "\n", "Feature: wordunacc \n", "\n", "\t value\t frequency\n", "\t και \t 8576\n", "\t ο \t 3019\n", "\t δε \t 2764\n", "\t εν \t 2752\n", "\t του \t 2497\n", "\n", "\n" ] } ], "source": [ "FeatureList=Fall()\n", "LinesToPrint=5\n", "for Feature in FeatureList: \n", " if Feature!='otype':\n", " print ('Feature:',Feature,'\\n\\n\\t value\\t frequency')\n", " FeatureFrequenceLists=Fs(Feature).freqList()\n", " PrintedLine=0\n", " for item, freq in FeatureFrequenceLists:\n", " PrintedLine+=1\n", " print ('\\t',item,'\\t',freq)\n", " if PrintedLine==LinesToPrint: break\n", " print ('\\n')" ] }, { "cell_type": "code", "execution_count": null, "id": "099ad8ce-e438-4f93-961f-c6bbd4756c86", "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.11.5" } }, "nbformat": 4, "nbformat_minor": 5 }