{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "2ad1e9ba-b6d6-461b-88b6-8f70b5af1e82", "metadata": {}, "outputs": [], "source": [ "%load_ext autoreload\n", "%autoreload 2" ] }, { "cell_type": "code", "execution_count": 2, "id": "fb507662-01f5-4819-a472-797cb9552b8a", "metadata": {}, "outputs": [], "source": [ "from tf.app import use" ] }, { "cell_type": "code", "execution_count": 4, "id": "63ce037e-a3be-4611-bcf1-c3a315458ab3", "metadata": {}, "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", "\tC:/Users/tonyj/text-fabric-data/github/ETCBC/nestle1904/app not found\n", "rate limit is 5000 requests per hour, with 5000 left for this hour\n", "\tconnecting to online GitHub repo ETCBC/nestle1904 ... connected\n", "\tcannot find releases\n", "\tcannot find releases\n", "\tapp/config.yaml...downloaded\n", "\tOK\n" ] }, { "data": { "text/html": [ "app: ~/text-fabric-data/github/ETCBC/nestle1904/app" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "The requested data is not available offline\n", "\tC:/Users/tonyj/text-fabric-data/github/ETCBC/nestle1904/tf/0.1 not found\n", "rate limit is 5000 requests per hour, with 4991 left for this hour\n", "\tconnecting to online GitHub repo ETCBC/nestle1904 ... connected\n", "\tcannot find releases\n", "\tcannot find releases\n", "\ttf/0.1/Rule.tf...downloaded\n", "\ttf/0.1/after.tf...downloaded\n", "\ttf/0.1/appositioncontainer.tf...downloaded\n", "\ttf/0.1/articular.tf...downloaded\n", "\ttf/0.1/case.tf...downloaded\n", "\ttf/0.1/ch.tf...downloaded\n", "\ttf/0.1/class.tf...downloaded\n", "\ttf/0.1/clauseType.tf...downloaded\n", "\ttf/0.1/cltype.tf...downloaded\n", "\ttf/0.1/degree.tf...downloaded\n", "\ttf/0.1/discontinuous.tf...downloaded\n", "\ttf/0.1/domain.tf...downloaded\n", "\ttf/0.1/file.tf...downloaded\n", "\ttf/0.1/folder.tf...downloaded\n", "\ttf/0.1/frame.tf...downloaded\n", "\ttf/0.1/gender.tf...downloaded\n", "\ttf/0.1/gloss.tf...downloaded\n", "\ttf/0.1/id.tf...downloaded\n", "\ttf/0.1/junction.tf...downloaded\n", "\ttf/0.1/lang.tf...downloaded\n", "\ttf/0.1/lemma.tf...downloaded\n", "\ttf/0.1/ln.tf...downloaded\n", "\ttf/0.1/mood.tf...downloaded\n", "\ttf/0.1/morph.tf...downloaded\n", "\ttf/0.1/nodeId.tf...downloaded\n", "\ttf/0.1/normalized.tf...downloaded\n", "\ttf/0.1/note.tf...downloaded\n", "\ttf/0.1/number.tf...downloaded\n", "\ttf/0.1/oslots.tf...downloaded\n", "\ttf/0.1/otext.tf...downloaded\n", "\ttf/0.1/otype.tf...downloaded\n", "\ttf/0.1/person.tf...downloaded\n", "\ttf/0.1/ref.tf...downloaded\n", "\ttf/0.1/referent.tf...downloaded\n", "\ttf/0.1/role.tf...downloaded\n", "\ttf/0.1/strong.tf...downloaded\n", "\ttf/0.1/subjref.tf...downloaded\n", "\ttf/0.1/tense.tf...downloaded\n", "\ttf/0.1/type.tf...downloaded\n", "\ttf/0.1/unicode.tf...downloaded\n", "\ttf/0.1/unit.tf...downloaded\n", "\ttf/0.1/voice.tf...downloaded\n", "\tOK\n" ] }, { "data": { "text/html": [ "data: ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ " | 0.79s T otype from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 9.51s T oslots from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 8.23s T ch from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.00s T folder from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.00s T file from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | | 0.13s C __levels__ from otype, oslots, otext\n", " | | 17s C __order__ from otype, oslots, __levels__\n", " | | 0.61s C __rank__ from otype, __order__\n", " | | 23s C __levUp__ from otype, oslots, __rank__\n", " | | 4.73s C __levDown__ from otype, __levUp__, __rank__\n", " | | 0.26s C __characters__ from otext\n", " | | 7.43s C __boundary__ from otype, oslots, __rank__\n", " | | 0.00s C __sections__ from otype, oslots, otext, __levUp__, __levels__, folder, file\n", " | 0.42s T Rule from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.55s T after from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.01s T appositioncontainer from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.13s T articular from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.35s T case from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.90s T class from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.03s T clauseType from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.02s T cltype from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.01s T degree from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.03s T discontinuous from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.57s T domain from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.16s T frame from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.35s T gender from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.65s T gloss from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.77s T id from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.09s T junction from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.00s T lang from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.62s T lemma from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.56s T ln from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.13s T mood from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.57s T morph from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.04s T nodeId from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.67s T normalized from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.00s T note from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.42s T number from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.09s T person from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.71s T ref from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.08s T referent from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.37s T role from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.62s T strong from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.09s T subjref from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.13s T tense from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.51s T type from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.68s T unicode from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.04s T unit from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n", " | 0.14s T voice from ~/text-fabric-data/github/ETCBC/nestle1904/tf/0.1\n" ] }, { "data": { "text/html": [ "\n", " Text-Fabric: Text-Fabric API 11.2.3, ETCBC/nestle1904/app v3, Search Reference
\n", " Data: ETCBC - nestle1904 0.1, 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", "\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
folder11999136.00100
file2774042.07100
book2774041.07100
error1263.000
sentence8011248.54100
p8011115.5946
wg11487855.89321
milestone96058.184
w1377794.9534
char19991361.00100
\n", " Sets: no custom sets
\n", " Features:
\n", "
TF dataset (unspecified)\n", "
\n", "\n", "
\n", "
\n", "Rule\n", "
\n", "
str
\n", "\n", " this is XML attribute rule\n", "\n", "
\n", "\n", "
\n", "
\n", "after\n", "
\n", "
str
\n", "\n", " this is XML attribute after\n", "\n", "
\n", "\n", "
\n", " \n", "
str
\n", "\n", " this is XML attribute appositioncontainer\n", "\n", "
\n", "\n", "
\n", "
\n", "articular\n", "
\n", "
str
\n", "\n", " this is XML attribute articular\n", "\n", "
\n", "\n", "
\n", "
\n", "case\n", "
\n", "
str
\n", "\n", " this is XML attribute case\n", "\n", "
\n", "\n", "
\n", "
\n", "ch\n", "
\n", "
str
\n", "\n", " the unicode character of a slot\n", "\n", "
\n", "\n", "
\n", "
\n", "class\n", "
\n", "
str
\n", "\n", " this is XML attribute class\n", "\n", "
\n", "\n", "
\n", "
\n", "clauseType\n", "
\n", "
str
\n", "\n", " this is XML attribute clauseType\n", "\n", "
\n", "\n", "
\n", "
\n", "cltype\n", "
\n", "
str
\n", "\n", " this is XML attribute cltype\n", "\n", "
\n", "\n", "
\n", "
\n", "degree\n", "
\n", "
str
\n", "\n", " this is XML attribute degree\n", "\n", "
\n", "\n", "
\n", "
\n", "discontinuous\n", "
\n", "
str
\n", "\n", " this is XML attribute discontinuous\n", "\n", "
\n", "\n", "
\n", "
\n", "domain\n", "
\n", "
str
\n", "\n", " this is XML attribute domain\n", "\n", "
\n", "\n", "
\n", "
\n", "file\n", "
\n", "
str
\n", "\n", " name of source file\n", "\n", "
\n", "\n", "
\n", "
\n", "folder\n", "
\n", "
str
\n", "\n", " name of source folder\n", "\n", "
\n", "\n", "
\n", "
\n", "frame\n", "
\n", "
str
\n", "\n", " this is XML attribute frame\n", "\n", "
\n", "\n", "
\n", "
\n", "gender\n", "
\n", "
str
\n", "\n", " this is XML attribute gender\n", "\n", "
\n", "\n", "
\n", "
\n", "gloss\n", "
\n", "
str
\n", "\n", " this is XML attribute gloss\n", "\n", "
\n", "\n", "
\n", "
\n", "id\n", "
\n", "
str
\n", "\n", " this is XML attribute id\n", "\n", "
\n", "\n", "
\n", "
\n", "junction\n", "
\n", "
str
\n", "\n", " this is XML attribute junction\n", "\n", "
\n", "\n", "
\n", "
\n", "lang\n", "
\n", "
str
\n", "\n", " this is XML attribute lang\n", "\n", "
\n", "\n", "
\n", "
\n", "lemma\n", "
\n", "
str
\n", "\n", " this is XML attribute lemma\n", "\n", "
\n", "\n", "
\n", "
\n", "ln\n", "
\n", "
str
\n", "\n", " this is XML attribute ln\n", "\n", "
\n", "\n", "
\n", "
\n", "mood\n", "
\n", "
str
\n", "\n", " this is XML attribute mood\n", "\n", "
\n", "\n", "
\n", "
\n", "morph\n", "
\n", "
str
\n", "\n", " this is XML attribute morph\n", "\n", "
\n", "\n", "
\n", "
\n", "nodeId\n", "
\n", "
str
\n", "\n", " this is XML attribute nodeId\n", "\n", "
\n", "\n", "
\n", "
\n", "normalized\n", "
\n", "
str
\n", "\n", " this is XML attribute normalized\n", "\n", "
\n", "\n", "
\n", "
\n", "note\n", "
\n", "
str
\n", "\n", " this is XML attribute note\n", "\n", "
\n", "\n", "
\n", "
\n", "number\n", "
\n", "
str
\n", "\n", " this is XML attribute number\n", "\n", "
\n", "\n", "
\n", "
\n", "otype\n", "
\n", "
str
\n", "\n", " \n", "\n", "
\n", "\n", "
\n", "
\n", "person\n", "
\n", "
str
\n", "\n", " this is XML attribute person\n", "\n", "
\n", "\n", "
\n", "
\n", "ref\n", "
\n", "
str
\n", "\n", " this is XML attribute ref\n", "\n", "
\n", "\n", "
\n", "
\n", "referent\n", "
\n", "
str
\n", "\n", " this is XML attribute referent\n", "\n", "
\n", "\n", "
\n", "
\n", "role\n", "
\n", "
str
\n", "\n", " this is XML attribute role\n", "\n", "
\n", "\n", "
\n", "
\n", "strong\n", "
\n", "
str
\n", "\n", " this is XML attribute strong\n", "\n", "
\n", "\n", "
\n", "
\n", "subjref\n", "
\n", "
str
\n", "\n", " this is XML attribute subjref\n", "\n", "
\n", "\n", "
\n", "
\n", "tense\n", "
\n", "
str
\n", "\n", " this is XML attribute tense\n", "\n", "
\n", "\n", "
\n", "
\n", "type\n", "
\n", "
str
\n", "\n", " this is XML attribute type\n", "\n", "
\n", "\n", "
\n", "
\n", "unicode\n", "
\n", "
str
\n", "\n", " this is XML attribute unicode\n", "\n", "
\n", "\n", "
\n", "
\n", "unit\n", "
\n", "
str
\n", "\n", " this is XML attribute unit\n", "\n", "
\n", "\n", "
\n", "
\n", "voice\n", "
\n", "
str
\n", "\n", " this is XML attribute voice\n", "\n", "
\n", "\n", "
\n", "
\n", "oslots\n", "
\n", "
none
\n", "\n", " \n", "\n", "
\n", "\n", "
\n", "
\n", "\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": [ "
Text-Fabric API: names N F E L T S C TF directly usable

" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A = use(\"ETCBC/nestle1904\", hoist=globals())" ] }, { "cell_type": "code", "execution_count": 5, "id": "d39258a6-3028-4301-a376-d40f1575156c", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ " 0.16s 137779 results\n" ] } ], "source": [ "results = A.search(\"\"\"\n", "w unicode*\n", "\"\"\")" ] }, { "cell_type": "code", "execution_count": 6, "id": "aba2f0ad-3733-4674-ba6a-1fbdd60f2f7c", "metadata": {}, "outputs": [ { "data": { "text/html": [ "

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

gnt 01-matthew
sentence
p
milestone
M
A
T
1
:
1
Β
ί
β
λ
ο
ς
γ
ε
ν
έ
σ
ε
ω
ς
η
σ
ο
Χ
ρ
ι
σ
τ
ο
υ
ο
Δ
α
υ
ε
δ
υ
ο
β
ρ
α
ά
μ
.
wg
wg
wg
w
unicode=Βίβλος
Β
ί
β
λ
ο
ς
wg
w
unicode=γενέσεως
γ
ε
ν
έ
σ
ε
ω
ς
wg
wg
wg
w
unicode=Ἰησοῦ
η
σ
ο
w
unicode=Χριστοῦ
Χ
ρ
ι
σ
τ
ο
wg
w
unicode=υἱοῦ
υ
ο
w
unicode=Δαυεὶδ
Δ
α
υ
ε
δ
wg
w
unicode=υἱοῦ
υ
ο
w
unicode=Ἀβραάμ.
β
ρ
α
ά
μ
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "

result 2" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "

gnt 01-matthew
sentence
p
milestone
M
A
T
1
:
1
Β
ί
β
λ
ο
ς
γ
ε
ν
έ
σ
ε
ω
ς
η
σ
ο
Χ
ρ
ι
σ
τ
ο
υ
ο
Δ
α
υ
ε
δ
υ
ο
β
ρ
α
ά
μ
.
wg
wg
wg
w
unicode=Βίβλος
Β
ί
β
λ
ο
ς
wg
w
unicode=γενέσεως
γ
ε
ν
έ
σ
ε
ω
ς
wg
wg
wg
w
unicode=Ἰησοῦ
η
σ
ο
w
unicode=Χριστοῦ
Χ
ρ
ι
σ
τ
ο
wg
w
unicode=υἱοῦ
υ
ο
w
unicode=Δαυεὶδ
Δ
α
υ
ε
δ
wg
w
unicode=υἱοῦ
υ
ο
w
unicode=Ἀβραάμ.
β
ρ
α
ά
μ
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.show(results, end=2)" ] }, { "cell_type": "code", "execution_count": null, "id": "3fca806c-a087-472a-b03a-bb09b63ff1b5", "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" } }, "nbformat": 4, "nbformat_minor": 5 }