{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "%load_ext autoreload\n", "%autoreload 2" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "from tf.app import use\n", "from fixture import typeShow" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# BHSA specifics" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "TF-app: ~/github/annotation/app-bhsa/code" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "data: ~/github/etcbc/bhsa/tf/c" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "data: ~/github/etcbc/phono/tf/c" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "data: ~/github/etcbc/parallels/tf/c" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "Text-Fabric: Text-Fabric API 8.3.0, app-bhsa, Search Reference
Data: BHSA, Character table, Feature docs
Features:
Parallel Passagescrossref
BHSA = Biblia Hebraica Stuttgartensia Amstelodamensisbook
book@ll
chapter
code
det
domain
freq_lex
function
g_cons
g_cons_utf8
g_lex
g_lex_utf8
g_word
g_word_utf8
gloss
gn
label
language
lex
lex_utf8
ls
nametype
nme
nu
number
otype
pargr
pdp
pfm
prs
prs_gn
prs_nu
prs_ps
ps
qere
qere_trailer
qere_trailer_utf8
qere_utf8
rank_lex
rela
sp
st
tab
trailer
trailer_utf8
txt
typ
uvf
vbe
vbs
verse
voc_lex
voc_lex_utf8
vs
vt
mother
oslots
Phonetic Transcriptionsphono
phono_trailer
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "" ], "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(\"bhsa:clone\", checkout=\"clone\", hoist=globals())" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "A.reuse()" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/markdown": [ "
bhsa app context\n", "\n", "
1. afterChild\n", "\n", "{}\n", "\n", "
\n", "
2. allowedValues\n", "\n", "\n", "* **`baseTypes`**: \n", " * `half_verse`\n", " * `sentence`\n", " * `sentence_atom`\n", " * `clause`\n", " * `clause_atom`\n", " * `phrase`\n", " * `phrase_atom`\n", " * `subphrase`\n", " * `word`\n", "* **`condenseType`**: \n", " * `book`\n", " * `chapter`\n", " * `verse`\n", " * `half_verse`\n", " * `sentence`\n", " * `sentence_atom`\n", " * `clause`\n", " * `clause_atom`\n", " * `phrase`\n", " * `phrase_atom`\n", " * `subphrase`\n", "* **`hiddenTypes`**: \n", " * `half_verse`\n", " * `sentence`\n", " * `sentence_atom`\n", " * `clause`\n", " * `clause_atom`\n", " * `phrase`\n", " * `phrase_atom`\n", " * `subphrase`\n", "* **`textFormat`**: \n", " * **`lex-default`**: `word`\n", " * **`lex-orig-full`**: `word`\n", " * **`lex-orig-plain`**: `word`\n", " * **`lex-trans-full`**: `word`\n", " * **`lex-trans-plain`**: `word`\n", " * **`text-orig-full`**: `word`\n", " * **`text-orig-full-ketiv`**: `word`\n", " * **`text-orig-plain`**: `word`\n", " * **`text-phono-full`**: `word`\n", " * **`text-trans-full`**: `word`\n", " * **`text-trans-full-ketiv`**: `word`\n", " * **`text-trans-plain`**: `word`\n", "\n", "
\n", "
3. apiVersion\n", "\n", "None\n", "\n", "
\n", "
4. appName\n", "\n", "`bhsa`\n", "\n", "
\n", "
5. appPath\n", "\n", "`~/github/annotation/app-bhsa/code`\n", "\n", "
\n", "
6. baseTypes\n", "\n", "\n", "1. `word`\n", "\n", "
\n", "
7. bigTypes\n", "\n", "set()\n", "\n", "
\n", "
8. browseContentPretty\n", "\n", "False\n", "\n", "
\n", "
9. browseNavLevel\n", "\n", "`2`\n", "\n", "
\n", "
10. charText\n", "\n", "`How TF features represent text`\n", "\n", "
\n", "
11. charUrl\n", "\n", "`https://annotation.github.io/text-fabric/writing/hebrew.html`\n", "\n", "
\n", "
12. childType\n", "\n", "\n", "* **`book`**: \n", " * `chapter`\n", "* **`chapter`**: \n", " * `verse`\n", "* **`clause`**: \n", " * `clause_atom`\n", "* **`clause_atom`**: \n", " * `phrase`\n", "* **`half_verse`**: \n", " * `sentence`\n", "* **`phrase`**: \n", " * `phrase_atom`\n", "* **`phrase_atom`**: \n", " * `subphrase`\n", "* **`sentence`**: \n", " * `sentence_atom`\n", "* **`sentence_atom`**: \n", " * `clause`\n", "* **`subphrase`**: \n", " * `word`\n", "* **`verse`**: \n", " * `half_verse`\n", " * `sentence`\n", "\n", "
\n", "
13. commit\n", "\n", "None\n", "\n", "
\n", "
14. condenseType\n", "\n", "`verse`\n", "\n", "
\n", "
15. corpus\n", "\n", "`BHSA = Biblia Hebraica Stuttgartensia Amstelodamensis`\n", "\n", "
\n", "
16. css\n", "\n", "*empty*\n", "\n", "
\n", "
17. dataDisplay\n", "\n", "\n", "* **`exampleSectionHtml`**: `Genesis 1:1 (use English book names)`\n", "* **`excludedFeatures`**: \n", " * `g_uvf_utf8`\n", " * `g_vbs`\n", " * `kq_hybrid`\n", " * `languageISO`\n", " * `g_nme`\n", " * `lex0`\n", " * `is_root`\n", " * `g_vbs_utf8`\n", " * `g_uvf`\n", " * `dist`\n", " * `root`\n", " * `suffix_person`\n", " * `g_vbe`\n", " * `dist_unit`\n", " * `suffix_number`\n", " * `distributional_parent`\n", " * `kq_hybrid_utf8`\n", " * `crossrefSET`\n", " * `instruction`\n", " * `g_prs`\n", " * `lexeme_count`\n", " * `rank_occ`\n", " * `g_pfm_utf8`\n", " * `freq_occ`\n", " * `crossrefLCS`\n", " * `functional_parent`\n", " * `g_pfm`\n", " * `g_nme_utf8`\n", " * `g_vbe_utf8`\n", " * `kind`\n", " * `g_prs_utf8`\n", " * `suffix_gender`\n", " * `mother_object_type`\n", "* **`noneValues`**: \n", " * `none`\n", " * `unknown`\n", " * None\n", " * `NA`\n", "\n", "
\n", "
18. defaultClsOrig\n", "\n", "`txtu hbo`\n", "\n", "
\n", "
19. descendantType\n", "\n", "\n", "* **`book`**: \n", " * `book`\n", " * `chapter`\n", " * `clause`\n", " * `clause_atom`\n", " * `half_verse`\n", " * `phrase`\n", " * `phrase_atom`\n", " * `sentence`\n", " * `sentence_atom`\n", " * `subphrase`\n", " * `verse`\n", " * `word`\n", "* **`chapter`**: \n", " * `chapter`\n", " * `clause`\n", " * `clause_atom`\n", " * `half_verse`\n", " * `phrase`\n", " * `phrase_atom`\n", " * `sentence`\n", " * `sentence_atom`\n", " * `subphrase`\n", " * `verse`\n", " * `word`\n", "* **`clause`**: \n", " * `clause`\n", " * `clause_atom`\n", " * `phrase`\n", " * `phrase_atom`\n", " * `subphrase`\n", " * `word`\n", "* **`clause_atom`**: \n", " * `clause_atom`\n", " * `phrase`\n", " * `phrase_atom`\n", " * `subphrase`\n", " * `word`\n", "* **`half_verse`**: \n", " * `clause`\n", " * `clause_atom`\n", " * `half_verse`\n", " * `phrase`\n", " * `phrase_atom`\n", " * `sentence`\n", " * `sentence_atom`\n", " * `subphrase`\n", " * `word`\n", "* **`phrase`**: \n", " * `phrase`\n", " * `phrase_atom`\n", " * `subphrase`\n", " * `word`\n", "* **`phrase_atom`**: \n", " * `phrase_atom`\n", " * `subphrase`\n", " * `word`\n", "* **`sentence`**: \n", " * `clause`\n", " * `clause_atom`\n", " * `phrase`\n", " * `phrase_atom`\n", " * `sentence`\n", " * `sentence_atom`\n", " * `subphrase`\n", " * `word`\n", "* **`sentence_atom`**: \n", " * `clause`\n", " * `clause_atom`\n", " * `phrase`\n", " * `phrase_atom`\n", " * `sentence_atom`\n", " * `subphrase`\n", " * `word`\n", "* **`subphrase`**: \n", " * `subphrase`\n", " * `word`\n", "* **`verse`**: \n", " * `clause`\n", " * `clause_atom`\n", " * `half_verse`\n", " * `phrase`\n", " * `phrase_atom`\n", " * `sentence`\n", " * `sentence_atom`\n", " * `subphrase`\n", " * `verse`\n", " * `word`\n", "\n", "
\n", "
20. direction\n", "\n", "`rtl`\n", "\n", "
\n", "
21. docBase\n", "\n", "`https://etcbc.github.io/bhsa`\n", "\n", "
\n", "
22. docExt\n", "\n", "*empty*\n", "\n", "
\n", "
23. docPage\n", "\n", "`0_home`\n", "\n", "
\n", "
24. docRoot\n", "\n", "`https://etcbc.github.io`\n", "\n", "
\n", "
25. docUrl\n", "\n", "`https://etcbc.github.io/bhsa/0_home`\n", "\n", "
\n", "
26. docs\n", "\n", "\n", "* **`charText`**: `How TF features represent text`\n", "* **`charUrl`**: `https://annotation.github.io/text-fabric/writing/hebrew.html`\n", "* **`docBase`**: `https://etcbc.github.io/bhsa`\n", "* **`docExt`**: *empty*\n", "* **`docPage`**: `0_home`\n", "* **`docRoot`**: `https://etcbc.github.io`\n", "* **`docUrl`**: `https://etcbc.github.io/bhsa/0_home`\n", "* **`featureBase`**: `https://etcbc.github.io/bhsa/features/`\n", "* **`featurePage`**: `0_home`\n", "\n", "
\n", "
27. doi\n", "\n", "`10.5281/zenodo.1007624`\n", "\n", "
\n", "
28. exampleSection\n", "\n", "`Genesis 1:1`\n", "\n", "
\n", "
29. exampleSectionHtml\n", "\n", "`Genesis 1:1 (use English book names)`\n", "\n", "
\n", "
30. excludedFeatures\n", "\n", "\n", "1. `g_uvf_utf8`\n", "2. `g_vbs`\n", "3. `kq_hybrid`\n", "4. `languageISO`\n", "5. `g_nme`\n", "6. `lex0`\n", "7. `is_root`\n", "8. `g_vbs_utf8`\n", "9. `g_uvf`\n", "10. `dist`\n", "11. `root`\n", "12. `suffix_person`\n", "13. `g_vbe`\n", "14. `dist_unit`\n", "15. `suffix_number`\n", "16. `distributional_parent`\n", "17. `kq_hybrid_utf8`\n", "18. `crossrefSET`\n", "19. `instruction`\n", "20. `g_prs`\n", "21. `lexeme_count`\n", "22. `rank_occ`\n", "23. `g_pfm_utf8`\n", "24. `freq_occ`\n", "25. `crossrefLCS`\n", "26. `functional_parent`\n", "27. `g_pfm`\n", "28. `g_nme_utf8`\n", "29. `g_vbe_utf8`\n", "30. `kind`\n", "31. `g_prs_utf8`\n", "32. `suffix_gender`\n", "33. `mother_object_type`\n", "\n", "
\n", "
31. exclusions\n", "\n", "{}\n", "\n", "
\n", "
32. extension\n", "\n", "` hbo`\n", "\n", "
\n", "
33. featureBase\n", "\n", "`https://etcbc.github.io/bhsa/features/`\n", "\n", "
\n", "
34. featurePage\n", "\n", "`0_home`\n", "\n", "
\n", "
35. features\n", "\n", "\n", "* **`clause`**: \n", " * []\n", " * {}\n", "* **`clause_atom`**: \n", " * []\n", " * {}\n", "* **`half_verse`**: \n", " * []\n", " * {}\n", "* **`lex`**: \n", " * []\n", " * {}\n", "* **`phrase`**: \n", " * []\n", " * {}\n", "* **`phrase_atom`**: \n", " * []\n", " * {}\n", "* **`sentence`**: \n", " * []\n", " * {}\n", "* **`sentence_atom`**: \n", " * []\n", " * {}\n", "* **`subphrase`**: \n", " * []\n", " * {}\n", "* **`word`**: \n", " * \n", " * `pdp`\n", " * `vs`\n", " * `vt`\n", " * {}\n", "\n", "
\n", "
36. featuresBare\n", "\n", "\n", "* **`clause`**: \n", " * []\n", " * {}\n", "* **`clause_atom`**: \n", " * []\n", " * {}\n", "* **`half_verse`**: \n", " * []\n", " * {}\n", "* **`lex`**: \n", " * \n", " * `gloss`\n", " * {}\n", "* **`phrase`**: \n", " * []\n", " * {}\n", "* **`phrase_atom`**: \n", " * []\n", " * {}\n", "* **`sentence`**: \n", " * []\n", " * {}\n", "* **`sentence_atom`**: \n", " * []\n", " * {}\n", "* **`subphrase`**: \n", " * []\n", " * {}\n", "* **`word`**: \n", " * \n", " * `gloss`\n", " * \n", " * **`gloss`**: `lex`\n", "\n", "
\n", "
37. formatCls\n", "\n", "\n", "* **`lex-default`**: `txtn`\n", "* **`lex-orig-full`**: `txtu hbo`\n", "* **`lex-orig-plain`**: `txtu hbo`\n", "* **`lex-trans-full`**: `txtt`\n", "* **`lex-trans-plain`**: `txtt`\n", "* **`text-orig-full`**: `txtu hbo`\n", "* **`text-orig-full-ketiv`**: `txtu hbo`\n", "* **`text-orig-plain`**: `txtu hbo`\n", "* **`text-phono-full`**: `txtp`\n", "* **`text-trans-full`**: `txtt`\n", "* **`text-trans-full-ketiv`**: `txtt`\n", "* **`text-trans-plain`**: `txtt`\n", "\n", "
\n", "
38. formatHtml\n", "\n", "set()\n", "\n", "
\n", "
39. formatMethod\n", "\n", "{}\n", "\n", "
\n", "
40. formatStyle\n", "\n", "\n", "* **`normal`**: `txtn`\n", "* **`orig`**: `txtu hbo`\n", "* **`phono`**: `txtp`\n", "* **`source`**: `txto`\n", "* **`trans`**: `txtt`\n", "\n", "
\n", "
41. graphicsRelative\n", "\n", "None\n", "\n", "
\n", "
42. hasGraphics\n", "\n", "set()\n", "\n", "
\n", "
43. hiddenTypes\n", "\n", "\n", "1. `clause_atom`\n", "2. `half_verse`\n", "3. `phrase_atom`\n", "4. `sentence_atom`\n", "5. `subphrase`\n", "\n", "
\n", "
44. interfaceDefaults\n", "\n", "\n", "* **`condensed`**: False\n", "* **`hideTypes`**: `True`\n", "* **`lineNumbers`**: None\n", "* **`plainGaps`**: `True`\n", "* **`prettyTypes`**: `True`\n", "* **`queryFeatures`**: `True`\n", "* **`showGraphics`**: None\n", "* **`standardFeatures`**: False\n", "* **`withNodes`**: False\n", "* **`withTypes`**: False\n", "\n", "
\n", "
45. isCompatible\n", "\n", "`True`\n", "\n", "
\n", "
46. labels\n", "\n", "\n", "* **`book`**: \n", " * `True`\n", " * ()\n", "* **`chapter`**: \n", " * `True`\n", " * ()\n", "* **`clause`**: \n", " * `{typ} {rela}`\n", " * \n", " * `typ`\n", " * `rela`\n", "* **`clause_atom`**: \n", " * `{code}`\n", " * \n", " * `code`\n", "* **`half_verse`**: \n", " * `{label}`\n", " * \n", " * `label`\n", "* **`lex`**: \n", " * `{voc_lex_utf8}`\n", " * \n", " * `voc_lex_utf8`\n", "* **`phrase`**: \n", " * `{typ} {function}`\n", " * \n", " * `typ`\n", " * `function`\n", "* **`phrase_atom`**: \n", " * `{typ} {rela}`\n", " * \n", " * `typ`\n", " * `rela`\n", "* **`sentence`**: \n", " * `{number}`\n", " * \n", " * `number`\n", "* **`sentence_atom`**: \n", " * `{number}`\n", " * \n", " * `number`\n", "* **`subphrase`**: \n", " * `{number}`\n", " * \n", " * `number`\n", "* **`verse`**: \n", " * *empty*\n", " * ()\n", "* **`word`**: \n", " * `True`\n", " * ()\n", "\n", "
\n", "
47. language\n", "\n", "`hebrew`\n", "\n", "
\n", "
48. levelCls\n", "\n", "\n", "* **`book`**: \n", " * **`children`**: `children hor wrap`\n", " * **`container`**: `contnr c4`\n", " * **`label`**: `lbl c4`\n", "* **`chapter`**: \n", " * **`children`**: `children hor wrap`\n", " * **`container`**: `contnr c4`\n", " * **`label`**: `lbl c4`\n", "* **`clause`**: \n", " * **`children`**: `children hor wrap`\n", " * **`container`**: `contnr c2`\n", " * **`label`**: `lbl c2`\n", "* **`clause_atom`**: \n", " * **`children`**: `children hor wrap`\n", " * **`container`**: `contnr c1`\n", " * **`label`**: `lbl c1`\n", "* **`half_verse`**: \n", " * **`children`**: `children hor wrap`\n", " * **`container`**: `contnr c3`\n", " * **`label`**: `lbl c3`\n", "* **`lex`**: \n", " * **`children`**: *empty*\n", " * **`container`**: `contnr c0`\n", " * **`label`**: `lbl c0`\n", "* **`phrase`**: \n", " * **`children`**: `children hor wrap`\n", " * **`container`**: `contnr c1`\n", " * **`label`**: `lbl c1`\n", "* **`phrase_atom`**: \n", " * **`children`**: `children hor wrap`\n", " * **`container`**: `contnr c1`\n", " * **`label`**: `lbl c1`\n", "* **`sentence`**: \n", " * **`children`**: `children hor wrap`\n", " * **`container`**: `contnr c2`\n", " * **`label`**: `lbl c2`\n", "* **`sentence_atom`**: \n", " * **`children`**: `children hor wrap`\n", " * **`container`**: `contnr c1`\n", " * **`label`**: `lbl c1`\n", "* **`subphrase`**: \n", " * **`children`**: `children hor wrap`\n", " * **`container`**: `contnr c1`\n", " * **`label`**: `lbl c1`\n", "* **`verse`**: \n", " * **`children`**: `children hor wrap`\n", " * **`container`**: `contnr c3`\n", " * **`label`**: `lbl c3`\n", "* **`word`**: \n", " * **`children`**: *empty*\n", " * **`container`**: `contnr c0`\n", " * **`label`**: `lbl c0`\n", "\n", "
\n", "
49. levels\n", "\n", "\n", "* **`book`**: \n", " * **`flow`**: `hor`\n", " * **`level`**: `4`\n", " * **`stretch`**: `True`\n", " * **`wrap`**: `True`\n", "* **`chapter`**: \n", " * **`flow`**: `hor`\n", " * **`level`**: `4`\n", " * **`stretch`**: `True`\n", " * **`wrap`**: `True`\n", "* **`clause`**: \n", " * **`flow`**: `hor`\n", " * **`level`**: `2`\n", " * **`stretch`**: `True`\n", " * **`wrap`**: `True`\n", "* **`clause_atom`**: \n", " * **`flow`**: `hor`\n", " * **`level`**: `1`\n", " * **`stretch`**: `True`\n", " * **`wrap`**: `True`\n", "* **`half_verse`**: \n", " * **`flow`**: `hor`\n", " * **`level`**: `3`\n", " * **`stretch`**: `True`\n", " * **`wrap`**: `True`\n", "* **`lex`**: \n", " * **`flow`**: `ver`\n", " * **`level`**: 0\n", " * **`stretch`**: False\n", " * **`wrap`**: False\n", "* **`phrase`**: \n", " * **`flow`**: `hor`\n", " * **`level`**: `1`\n", " * **`stretch`**: `True`\n", " * **`wrap`**: `True`\n", "* **`phrase_atom`**: \n", " * **`flow`**: `hor`\n", " * **`level`**: `1`\n", " * **`stretch`**: `True`\n", " * **`wrap`**: `True`\n", "* **`sentence`**: \n", " * **`flow`**: `hor`\n", " * **`level`**: `2`\n", " * **`stretch`**: `True`\n", " * **`wrap`**: `True`\n", "* **`sentence_atom`**: \n", " * **`flow`**: `hor`\n", " * **`level`**: `1`\n", " * **`stretch`**: `True`\n", " * **`wrap`**: `True`\n", "* **`subphrase`**: \n", " * **`flow`**: `hor`\n", " * **`level`**: `1`\n", " * **`stretch`**: `True`\n", " * **`wrap`**: `True`\n", "* **`verse`**: \n", " * **`flow`**: `hor`\n", " * **`level`**: `3`\n", " * **`stretch`**: `True`\n", " * **`wrap`**: `True`\n", "* **`word`**: \n", " * **`flow`**: `ver`\n", " * **`level`**: 0\n", " * **`stretch`**: False\n", " * **`wrap`**: False\n", "\n", "
\n", "
50. lexMap\n", "\n", "\n", "* **`word`**: `lex`\n", "\n", "
\n", "
51. lexTypes\n", "\n", "\n", "1. `lex`\n", "\n", "
\n", "
52. lineNumberFeature\n", "\n", "{}\n", "\n", "
\n", "
53. local\n", "\n", "`clone`\n", "\n", "
\n", "
54. localDir\n", "\n", "`~/github/etcbc/bhsa/_temp`\n", "\n", "
\n", "
55. moduleSpecs\n", "\n", "\n", "1. \n", " * **`corpus`**: `Phonetic Transcriptions`\n", " * **`docUrl`**: `https://nbviewer.jupyter.org/github/etcbc/phono/blob/master/programs/phono.ipynb`\n", " * **`doi`**: `10.5281/zenodo.1007636`\n", " * **`org`**: `etcbc`\n", " * **`relative`**: `tf`\n", " * **`repo`**: `phono`\n", "2. \n", " * **`corpus`**: `Parallel Passages`\n", " * **`docUrl`**: `https://nbviewer.jupyter.org/github/etcbc/parallels/blob/master/programs/parallels.ipynb`\n", " * **`doi`**: `10.5281/zenodo.1007642`\n", " * **`org`**: `etcbc`\n", " * **`relative`**: `tf`\n", " * **`repo`**: `parallels`\n", "\n", "
\n", "
56. noDescendTypes\n", "\n", "\n", "1. `lex`\n", "\n", "
\n", "
57. noneValues\n", "\n", "\n", "1. `none`\n", "2. `unknown`\n", "3. None\n", "4. `NA`\n", "\n", "
\n", "
58. org\n", "\n", "`etcbc`\n", "\n", "
\n", "
59. plainCustom\n", "\n", "{}\n", "\n", "
\n", "
60. prettyCustom\n", "\n", "{}\n", "\n", "
\n", "
61. provenanceSpec\n", "\n", "\n", "* **`corpus`**: `BHSA = Biblia Hebraica Stuttgartensia Amstelodamensis`\n", "* **`doi`**: `10.5281/zenodo.1007624`\n", "* **`graphicsRelative`**: None\n", "* **`moduleSpecs`**: \n", " * \n", " * **`corpus`**: `Phonetic Transcriptions`\n", " * **`docUrl`**: `https://nbviewer.jupyter.org/github/etcbc/phono/blob/master/programs/phono.ipynb`\n", " * **`doi`**: `10.5281/zenodo.1007636`\n", " * **`org`**: `etcbc`\n", " * **`relative`**: `tf`\n", " * **`repo`**: `phono`\n", " * \n", " * **`corpus`**: `Parallel Passages`\n", " * **`docUrl`**: `https://nbviewer.jupyter.org/github/etcbc/parallels/blob/master/programs/parallels.ipynb`\n", " * **`doi`**: `10.5281/zenodo.1007642`\n", " * **`org`**: `etcbc`\n", " * **`relative`**: `tf`\n", " * **`repo`**: `parallels`\n", "* **`org`**: `etcbc`\n", "* **`relative`**: `tf`\n", "* **`repo`**: `bhsa`\n", "* **`version`**: `c`\n", "* **`webBase`**: `https://shebanq.ancient-data.org/hebrew`\n", "* **`webHint`**: `Show this on SHEBANQ`\n", "* **`webLang`**: `la`\n", "* **`webLexId`**: `True`\n", "* **`webUrl`**: `https://shebanq.ancient-data.org/hebrew/text?book=<1>&chapter=<2>&verse=<3>&version=c&mr=m&qw=q&tp=txt_p&tr=hb&wget=v&qget=v&nget=vt`\n", "* **`webUrlLex`**: `https://shebanq.ancient-data.org/hebrew/word?version=c&id=`\n", "* **`zip`**: None\n", "\n", "
\n", "
62. relative\n", "\n", "`tf`\n", "\n", "
\n", "
63. release\n", "\n", "None\n", "\n", "
\n", "
64. repo\n", "\n", "`bhsa`\n", "\n", "
\n", "
65. sectionSep1\n", "\n", "` `\n", "\n", "
\n", "
66. sectionSep2\n", "\n", "`:`\n", "\n", "
\n", "
67. showVerseInTuple\n", "\n", "False\n", "\n", "
\n", "
68. styles\n", "\n", "\n", "* **`clause`**: *empty*\n", "* **`clause_atom`**: *empty*\n", "* **`half_verse`**: *empty*\n", "* **`lex`**: `txtu hbo`\n", "* **`phrase`**: *empty*\n", "* **`phrase_atom`**: *empty*\n", "* **`sentence`**: *empty*\n", "* **`sentence_atom`**: *empty*\n", "* **`subphrase`**: *empty*\n", "\n", "
\n", "
69. templates\n", "\n", "\n", "* **`book`**: \n", " * `True`\n", " * ()\n", "* **`chapter`**: \n", " * `True`\n", " * ()\n", "* **`clause`**: \n", " * *empty*\n", " * ()\n", "* **`clause_atom`**: \n", " * *empty*\n", " * ()\n", "* **`half_verse`**: \n", " * *empty*\n", " * ()\n", "* **`lex`**: \n", " * `{voc_lex_utf8}`\n", " * \n", " * `voc_lex_utf8`\n", "* **`phrase`**: \n", " * *empty*\n", " * ()\n", "* **`phrase_atom`**: \n", " * *empty*\n", " * ()\n", "* **`sentence`**: \n", " * *empty*\n", " * ()\n", "* **`sentence_atom`**: \n", " * *empty*\n", " * ()\n", "* **`subphrase`**: \n", " * *empty*\n", " * ()\n", "* **`verse`**: \n", " * *empty*\n", " * ()\n", "* **`word`**: \n", " * `True`\n", " * ()\n", "\n", "
\n", "
70. textFormat\n", "\n", "`text-orig-full`\n", "\n", "
\n", "
71. tfDoc\n", "\n", "`https://annotation.github.io/text-fabric`\n", "\n", "
\n", "
72. transform\n", "\n", "{}\n", "\n", "
\n", "
73. typeDisplay\n", "\n", "\n", "* **`clause`**: \n", " * **`label`**: `{typ} {rela}`\n", " * **`style`**: *empty*\n", "* **`clause_atom`**: \n", " * **`hidden`**: `True`\n", " * **`label`**: `{code}`\n", " * **`level`**: `1`\n", " * **`style`**: *empty*\n", "* **`half_verse`**: \n", " * **`hidden`**: `True`\n", " * **`label`**: `{label}`\n", " * **`style`**: *empty*\n", " * **`verselike`**: `True`\n", "* **`lex`**: \n", " * **`featuresBare`**: `gloss`\n", " * **`label`**: `{voc_lex_utf8}`\n", " * **`lexOcc`**: `word`\n", " * **`style`**: `orig`\n", " * **`template`**: `{voc_lex_utf8}`\n", "* **`phrase`**: \n", " * **`label`**: `{typ} {function}`\n", " * **`style`**: *empty*\n", "* **`phrase_atom`**: \n", " * **`hidden`**: `True`\n", " * **`label`**: `{typ} {rela}`\n", " * **`level`**: `1`\n", " * **`style`**: *empty*\n", "* **`sentence`**: \n", " * **`label`**: `{number}`\n", " * **`style`**: *empty*\n", "* **`sentence_atom`**: \n", " * **`hidden`**: `True`\n", " * **`label`**: `{number}`\n", " * **`level`**: `1`\n", " * **`style`**: *empty*\n", "* **`subphrase`**: \n", " * **`hidden`**: `True`\n", " * **`label`**: `{number}`\n", " * **`style`**: *empty*\n", "* **`word`**: \n", " * **`features`**: `pdp vs vt`\n", " * **`featuresBare`**: `lex:gloss`\n", "\n", "
\n", "
74. urlGh\n", "\n", "`https://github.com`\n", "\n", "
\n", "
75. urlNb\n", "\n", "`https://nbviewer.jupyter.org/github`\n", "\n", "
\n", "
76. verseTypes\n", "\n", "\n", "1. `half_verse`\n", "2. `verse`\n", "\n", "
\n", "
77. version\n", "\n", "`c`\n", "\n", "
\n", "
78. webBase\n", "\n", "`https://shebanq.ancient-data.org/hebrew`\n", "\n", "
\n", "
79. webHint\n", "\n", "`Show this on SHEBANQ`\n", "\n", "
\n", "
80. webLang\n", "\n", "`la`\n", "\n", "
\n", "
81. webLexId\n", "\n", "`True`\n", "\n", "
\n", "
82. webUrl\n", "\n", "`https://shebanq.ancient-data.org/hebrew/text?book=<1>&chapter=<2>&verse=<3>&version=c&mr=m&qw=q&tp=txt_p&tr=hb&wget=v&qget=v&nget=vt`\n", "\n", "
\n", "
83. webUrlLex\n", "\n", "`https://shebanq.ancient-data.org/hebrew/word?version=c&id=`\n", "\n", "
\n", "
84. writing\n", "\n", "`hbo`\n", "\n", "
\n", "
85. zip\n", "\n", "\n", "1. `bhsa`\n", "2. \n", " * `etcbc`\n", " * `phono`\n", " * `tf`\n", "3. \n", " * `etcbc`\n", " * `parallels`\n", " * `tf`\n", "\n", "
\n", "
\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.showContext()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# A slot with standard features" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "text/markdown": [ "
current display options\n", "\n", "
19. standardFeatures\n", "\n", "False\n", "\n", "
\n", "
\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.displayShow(\"standardFeatures\")" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [], "source": [ "w = 2\n", "p = L.u(w, otype=\"phrase\")[0]" ] }, { "cell_type": "code", "execution_count": 24, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "<0> TOP\n", " <1> word 3461 {3461} \n" ] } ], "source": [ "tree = A.unravel(w, explain=True)" ] }, { "cell_type": "code", "execution_count": 25, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "<0> TOP\n", " <1> phrase 675477 {38612} \n", " <2> word 38612 {38612} \n" ] } ], "source": [ "tree = A.unravel(p, explain=True)" ] }, { "cell_type": "code", "execution_count": 26, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
inpdp=prep
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
phrase VP Pred
makepdp=verbvs=qalvt=perf
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(w, standardFeatures=True)\n", "A.pretty(p, standardFeatures=True)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Base types" ] }, { "cell_type": "code", "execution_count": 27, "metadata": {}, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
phrase עָשָׂ֤ה
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "p = 675477\n", "highlights = {p}\n", "A.pretty(p, highlights=highlights)\n", "A.pretty(p, highlights=highlights, baseTypes=\"phrase\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# A tricky verse" ] }, { "cell_type": "code", "execution_count": 28, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "1414527" ] }, "execution_count": 28, "metadata": {}, "output_type": "execute_result" } ], "source": [ "v = T.nodeFromSection((\"Genesis\", 7, 14))\n", "v" ] }, { "cell_type": "code", "execution_count": 29, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Genesis 7:14  הֵ֜מָּה וְכָל־הַֽחַיָּ֣ה לְמִינָ֗הּ וְכָל־הַבְּהֵמָה֙ לְמִינָ֔הּ וְכָל־הָרֶ֛מֶשׂ הָרֹמֵ֥שׂ עַל־הָאָ֖רֶץ לְמִינֵ֑הוּ וְכָל־הָעֹ֣וף לְמִינֵ֔הוּ כֹּ֖ל צִפֹּ֥ור כָּל־כָּנָֽף׃
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.plain(v, explain=False)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Halfverses are hidden. This verse is divided (at top level) in 3 spans: one for each clause chunk. The first and last chunks\n", "belong to clause 1, and the middle chunk is clause 2.\n", "\n", "Look what happens if we set `hideTypes=True`:" ] }, { "cell_type": "code", "execution_count": 30, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Genesis 7:14  הֵ֜מָּה וְכָל־הַֽחַיָּ֣ה לְמִינָ֗הּ וְכָל־הַבְּהֵמָה֙ לְמִינָ֔הּ וְכָל־הָרֶ֛מֶשׂ הָרֹמֵ֥שׂ עַל־הָאָ֖רֶץ לְמִינֵ֑הוּ וְכָל־הָעֹ֣וף לְמִינֵ֔הוּ כֹּ֖ל צִפֹּ֥ור כָּל־כָּנָֽף׃
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.plain(v, hideTypes=False, explain=False)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "When you make the browser window narrower, the line breaks are different.\n", "Because now the verse is divided in 2 spans: one for each half verse, and the separation between\n", "the half verses is within the third clause chunk.\n", "\n", "See it in pretty view:" ] }, { "cell_type": "code", "execution_count": 31, "metadata": {}, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(v, explain=False)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We can selectively unhide the half verse and leave everything else hidden:" ] }, { "cell_type": "code", "execution_count": 32, "metadata": {}, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(\n", " v,\n", " hideTypes=True,\n", " hiddenTypes=\"subphrase phrase_atom clause_atom sentence_atom\",\n", " explain=False,\n", ")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This shows the reason of the split.\n", "\n", "We can also print the full structure (although that's a bit over the top):" ] }, { "cell_type": "code", "execution_count": 33, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
verse
half_verse
sentence
sentence_atom
clause
clause_atom
phrase
phrase_atom
subphrase
phrase_atom
phrase_atom
phrase_atom
phrase_atom
subphrase
clause
clause_atom
phrase
phrase_atom
phrase
phrase_atom
phrase
clause
clause_atom
phrase
half_verse
sentence
sentence_atom
clause
clause_atom
phrase
phrase_atom
phrase_atom
subphrase
phrase_atom
subphrase
subphrase
subphrase
subphrase
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(v, hideTypes=False)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Alignment in tables" ] }, { "cell_type": "code", "execution_count": 34, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "
nwordwordword
1
Genesis 1:1  רֵאשִׁ֖ית
Isaiah 4:1  יֹּ֤ום
וְ
2
Genesis 1:1  בָּרָ֣א
Isaiah 4:1  הַ
עִמֹּ֖ו
3
Genesis 1:1  אֱלֹהִ֑ים
Isaiah 4:1  הוּא֙
אֱלֹהָ֛יו
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.table(\n", " ((2, 213294, 426583), (3, 213295, 426582), (4, 213296, 426581)), withPassage={1, 2}\n", ")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Subphrases\n", "\n", "Subphrases with equal slots:" ] }, { "cell_type": "code", "execution_count": 35, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "array('I', [3461, 3462, 3463])\n" ] }, { "data": { "text/html": [ "
subphrase:1301588
3461 בַ
inpdp=prep
3462
thepdp=art
cattlepdp=subs
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "array('I', [3461, 3462, 3463])\n" ] }, { "data": { "text/html": [ "
subphrase:1301587
rela=par
3461 בַ
inpdp=prep
3462
thepdp=art
cattlepdp=subs
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "w = 3461\n", "sps = L.u(w, otype=\"subphrase\")\n", "for sp in sps[0:-1]:\n", " print(E.oslots.s(sp))\n", " A.pretty(sp, standardFeatures=True, extraFeatures=\"rela\", withNodes=True)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Sentence spanning two verses" ] }, { "cell_type": "code", "execution_count": 36, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
verse:1414527
sentence:1172740
clause:428162
clause:428163
phrase:653420
3319 הָ
phrase:653421
phrase:653422
clause:428162
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(v, withNodes=True, explain=False)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Base types" ] }, { "cell_type": "code", "execution_count": 37, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "<0> TOP\n", " <1> clause 427612 {322-326} \n", " <2> phrase* 651725 {322-323} \n", " <3> word 322 {322} \n", " <3> word 323 {323} \n", " <2> phrase* 651726 {324-326} \n", " <3> word 324 {324} \n", " <3> word 325 {325} \n", " <3> word 326 {326} \n" ] }, { "data": { "text/html": [ "
clause:427612
phrase:651725 לְהָאִ֖יר
phrase:651726 324עַל־הָאָֽרֶץ׃
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "cl = 427612\n", "words = L.d(cl, otype=\"word\")\n", "phrases = L.d(cl, otype=\"phrase\")\n", "highlights = {phrases[1]: \"lightsalmon\", words[2]: \"lightblue\"}\n", "A.pretty(cl, baseTypes=\"phrase\", withNodes=True, highlights=highlights, explain=True)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Gaps" ] }, { "cell_type": "code", "execution_count": 38, "metadata": {}, "outputs": [], "source": [ "c = 427931\n", "s = L.u(c, otype=\"sentence\")[0]\n", "v = L.u(c, otype=\"verse\")[0]\n", "highlights = {c: \"khaki\", c + 1: \"lightblue\"}" ] }, { "cell_type": "code", "execution_count": 39, "metadata": {}, "outputs": [ { "data": { "text/html": [ "Genesis 4:14" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.webLink(s)" ] }, { "cell_type": "code", "execution_count": 40, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Genesis 4:14  1172567427931כָל־427932מֹצְאִ֖י 427931יַֽהַרְגֵֽנִי׃
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.plain(s, withNodes=True, highlights=highlights)" ] }, { "cell_type": "code", "execution_count": 41, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Genesis 4:14  כָל־מֹצְאִ֖י יַֽהַרְגֵֽנִי׃
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.plain(s)" ] }, { "cell_type": "code", "execution_count": 42, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'lex-default': 'word',\n", " 'lex-orig-full': 'word',\n", " 'lex-orig-plain': 'word',\n", " 'lex-trans-full': 'word',\n", " 'lex-trans-plain': 'word',\n", " 'text-orig-full': 'word',\n", " 'text-orig-full-ketiv': 'word',\n", " 'text-orig-plain': 'word',\n", " 'text-phono-full': 'word',\n", " 'text-trans-full': 'word',\n", " 'text-trans-full-ketiv': 'word',\n", " 'text-trans-plain': 'word'}" ] }, "execution_count": 42, "metadata": {}, "output_type": "execute_result" } ], "source": [ "T.formats" ] }, { "cell_type": "code", "execution_count": 43, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Genesis 4:14  427931ḵol-427931yˈaharᵊḡˈēnî .
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.plain(c, fmt=\"text-phono-full\", withNodes=True, explain=False)" ] }, { "cell_type": "code", "execution_count": 44, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Genesis 4:14  כָל־יַֽהַרְגֵֽנִי׃
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.plain(c, withNodes=False, explain=False)" ] }, { "cell_type": "code", "execution_count": 45, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
clause:427931
phrase:652670
clause:427931
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(c, withNodes=True, explain=False)" ] }, { "cell_type": "code", "execution_count": 46, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
clause:427931
clause_atom:516064
phrase:652670
phrase_atom:905918
clause:427931
clause_atom:516066
phrase:652672
phrase_atom:905920
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(c, withNodes=True, hideTypes=False, explain=False)" ] }, { "cell_type": "code", "execution_count": 47, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
sentence:1172567
clause:427931
phrase:652670
clause:427932
phrase:652671
clause:427931
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(s, withNodes=True, highlights=highlights, explain=False)" ] }, { "cell_type": "code", "execution_count": 48, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Genesis 4:14  1172567כָל־מֹצְאִ֖י יַֽהַרְגֵֽנִי׃
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.plain(s, withNodes=True, hideTypes=False)" ] }, { "cell_type": "code", "execution_count": 49, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
sentence:1172567
sentence_atom:1236297
clause:427931
clause_atom:516064
phrase:652670
phrase_atom:905918
clause:427932
clause_atom:516065
phrase:652671
phrase_atom:905919
clause:427931
clause_atom:516066
phrase:652672
phrase_atom:905920
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(s, withNodes=True, highlights=highlights, hideTypes=False, explain=False)" ] }, { "cell_type": "code", "execution_count": 50, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Genesis 4:14  כָל־יַֽהַרְגֵֽנִי׃
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
clause:427931
phrase:652670
clause:427931
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
Genesis 4:14  מֹצְאִ֖י
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
clause
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.plain(427931)\n", "A.pretty(427931, withNodes=True)\n", "A.plain(427932)\n", "A.pretty(427932)" ] }, { "cell_type": "code", "execution_count": 51, "metadata": {}, "outputs": [], "source": [ "sp = F.otype.s(\"subphrase\")[0]\n", "v = L.u(sp, otype=\"verse\")[0]" ] }, { "cell_type": "code", "execution_count": 52, "metadata": {}, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(v)" ] }, { "cell_type": "code", "execution_count": 53, "metadata": {}, "outputs": [], "source": [ "p = 653380\n", "s = L.u(p, otype=\"sentence\")[0]\n", "c = L.d(s, otype=\"clause\")[0]" ] }, { "cell_type": "code", "execution_count": 54, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Genesis 7:8  אֵינֶ֖נָּה
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.plain(p)" ] }, { "cell_type": "code", "execution_count": 55, "metadata": {}, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(p)" ] }, { "cell_type": "code", "execution_count": 56, "metadata": {}, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(p, baseTypes=\"phrase_atom\", hideTypes=True)" ] }, { "cell_type": "code", "execution_count": 57, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
phrase אֵינֶ֖נָּה
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(p, baseTypes=\"phrase\")" ] }, { "cell_type": "code", "execution_count": 58, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Genesis 7:8  מִן־הַבְּהֵמָה֙ הַטְּהֹורָ֔ה וּמִן־הַ֨בְּהֵמָ֔ה אֲשֶׁ֥ר אֵינֶ֖נָּה טְהֹרָ֑ה וּמִ֨ן־הָעֹ֔וף וְכֹ֥ל אֲשֶׁר־רֹמֵ֖שׂ עַל־הָֽאֲדָמָֽה׃ שְׁנַ֨יִם שְׁנַ֜יִם בָּ֧אוּ אֶל־נֹ֛חַ אֶל־הַתֵּבָ֖ה זָכָ֣ר וּנְקֵבָ֑ה כַּֽאֲשֶׁ֛ר צִוָּ֥ה אֱלֹהִ֖ים אֶת־נֹֽחַ׃
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.plain(s)" ] }, { "cell_type": "code", "execution_count": 59, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Genesis 7:8  מִן־הַבְּהֵמָה֙ הַטְּהֹורָ֔ה וּמִן־הַ֨בְּהֵמָ֔ה אֲשֶׁ֥ר אֵינֶ֖נָּה טְהֹרָ֑ה וּמִ֨ן־הָעֹ֔וף וְכֹ֥ל אֲשֶׁר־רֹמֵ֖שׂ עַל־הָֽאֲדָמָֽה׃ שְׁנַ֨יִם שְׁנַ֜יִם בָּ֧אוּ אֶל־נֹ֛חַ אֶל־הַתֵּבָ֖ה זָכָ֣ר וּנְקֵבָ֑ה כַּֽאֲשֶׁ֛ר צִוָּ֥ה אֱלֹהִ֖ים אֶת־נֹֽחַ׃
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.plain(s, plainGaps=False)" ] }, { "cell_type": "code", "execution_count": 60, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Genesis 7:8  428152מִן־הַבְּהֵמָה֙ הַטְּהֹורָ֔ה וּמִן־הַ֨בְּהֵמָ֔ה 428152וּמִ֨ן־הָעֹ֔וף וְכֹ֥ל 428152שְׁנַ֨יִם שְׁנַ֜יִם בָּ֧אוּ אֶל־נֹ֛חַ אֶל־הַתֵּבָ֖ה זָכָ֣ר וּנְקֵבָ֑ה
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.plain(c, withNodes=True)" ] }, { "cell_type": "code", "execution_count": 61, "metadata": {}, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(c)" ] }, { "cell_type": "code", "execution_count": 62, "metadata": {}, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(s, baseTypes={\"subphrase\", \"word\"})" ] }, { "cell_type": "code", "execution_count": 63, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
sentence
clause
phrase מִן־הַבְּהֵמָה֙ הַטְּהֹורָ֔ה וּמִן־הַ֨בְּהֵמָ֔ה
clause
phrase אֲשֶׁ֥ר
phrase אֵינֶ֖נָּה
phrase טְהֹרָ֑ה
clause
phrase וּמִ֨ן־הָעֹ֔וף וְכֹ֥ל
clause
phrase אֲשֶׁר־
phrase רֹמֵ֖שׂ
phrase עַל־הָֽאֲדָמָֽה׃
clause
phrase שְׁנַ֨יִם שְׁנַ֜יִם
phrase בָּ֧אוּ
phrase אֶל־נֹ֛חַ
phrase אֶל־הַתֵּבָ֖ה
phrase זָכָ֣ר וּנְקֵבָ֑ה
clause
phrase כַּֽאֲשֶׁ֛ר
phrase צִוָּ֥ה
phrase אֱלֹהִ֖ים
phrase אֶת־נֹֽחַ׃
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(s, baseTypes=\"phrase\")" ] }, { "cell_type": "code", "execution_count": 64, "metadata": {}, "outputs": [ { "data": { "text/html": [ "

result 1

" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
verse
sentence
clause
phrase מִן־הַבְּהֵמָה֙ הַטְּהֹורָ֔ה וּמִן־הַ֨בְּהֵמָ֔ה
clause
phrase אֲשֶׁ֥ר
phrase אֵינֶ֖נָּה
phrase טְהֹרָ֑ה
clause
phrase וּמִ֨ן־הָעֹ֔וף וְכֹ֥ל
clause
phrase אֲשֶׁר־
phrase רֹמֵ֖שׂ
phrase עַל־הָֽאֲדָמָֽה׃
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.prettyTuple((p,), 1, baseTypes=\"phrase\")" ] }, { "cell_type": "code", "execution_count": 65, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
phrase אֵינֶ֖נָּה
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(p, baseTypes=\"phrase\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Atom types" ] }, { "cell_type": "code", "execution_count": 66, "metadata": {}, "outputs": [], "source": [ "p = F.otype.s(\"phrase\")[0]\n", "pa = F.otype.s(\"phrase_atom\")[0]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Plain" ] }, { "cell_type": "code", "execution_count": 67, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Genesis 1:1  בְּרֵאשִׁ֖ית
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
Genesis 1:1  בְּרֵאשִׁ֖ית
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.plain(p, highlights={p, pa})\n", "A.plain(p, highlights={p, pa}, hideTypes=False)" ] }, { "cell_type": "code", "execution_count": 68, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Genesis 1:1  בְּרֵאשִׁ֖ית
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
Genesis 1:1  בְּרֵאשִׁ֖ית
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.plain(p, highlights={p})\n", "A.plain(p, highlights={p}, hideTypes=False)" ] }, { "cell_type": "code", "execution_count": 69, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Genesis 1:1  בְּרֵאשִׁ֖ית
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
Genesis 1:1  בְּרֵאשִׁ֖ית
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.plain(p, highlights={pa})\n", "A.plain(p, highlights={pa}, hideTypes=False)" ] }, { "cell_type": "code", "execution_count": 70, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Genesis 1:1  בְּרֵאשִׁ֖ית
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
Genesis 1:1  בְּרֵאשִׁ֖ית
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.plain(pa, highlights={p, pa})\n", "A.plain(pa, highlights={p, pa}, hideTypes=False)" ] }, { "cell_type": "code", "execution_count": 71, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Genesis 1:1  בְּרֵאשִׁ֖ית
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
Genesis 1:1  בְּרֵאשִׁ֖ית
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.plain(pa, highlights={pa})\n", "A.plain(pa, highlights={pa}, hideTypes=False)" ] }, { "cell_type": "code", "execution_count": 72, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Genesis 1:1  בְּרֵאשִׁ֖ית
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
Genesis 1:1  בְּרֵאשִׁ֖ית
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.plain(pa, highlights={p})\n", "A.plain(pa, highlights={p}, hideTypes=False)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Pretty" ] }, { "cell_type": "code", "execution_count": 73, "metadata": {}, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
phrase
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(p, highlights={p, pa})\n", "A.pretty(p, highlights={p, pa}, hideTypes=False)" ] }, { "cell_type": "code", "execution_count": 74, "metadata": {}, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
phrase
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(p, highlights={p})\n", "A.pretty(p, highlights={p}, hideTypes=False)" ] }, { "cell_type": "code", "execution_count": 75, "metadata": {}, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
phrase
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(p, highlights={pa})\n", "A.pretty(p, highlights={pa}, hideTypes=False)" ] }, { "cell_type": "code", "execution_count": 76, "metadata": {}, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(pa, highlights={p, pa})\n", "A.pretty(pa, highlights={p, pa}, hideTypes=False)" ] }, { "cell_type": "code", "execution_count": 77, "metadata": {}, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(pa, highlights={pa})\n", "A.pretty(pa, highlights={pa}, hideTypes=False)" ] }, { "cell_type": "code", "execution_count": 78, "metadata": {}, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(pa, highlights={p})\n", "A.pretty(pa, highlights={p}, hideTypes=False)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Highlights" ] }, { "cell_type": "code", "execution_count": 79, "metadata": {}, "outputs": [], "source": [ "cl = 435509\n", "ph = 675481\n", "w = 38625\n", "\n", "highlights = {ph, w}" ] }, { "cell_type": "code", "execution_count": 80, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
clause:435509
phrase:675481
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(cl, highlights=highlights, withNodes=True)" ] }, { "cell_type": "code", "execution_count": 81, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
clause:435509
phrase:675481 אֵ֤ת כָּל־הַ38625תְּלָאָה֙
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(cl, highlights=highlights, baseTypes={\"phrase\"}, withNodes=True)" ] }, { "cell_type": "code", "execution_count": 82, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Exodus 18:8  אֵ֤ת כָּל־הַתְּלָאָה֙
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.plain(ph, highlights=highlights)" ] }, { "cell_type": "code", "execution_count": 83, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Exodus 18:8  675481אֵ֤ת כָּל־הַ38625תְּלָאָה֙
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.plain(ph, highlights=highlights, baseTypes={\"phrase\"}, withNodes=True)" ] }, { "cell_type": "code", "execution_count": 84, "metadata": {}, "outputs": [ { "data": { "text/markdown": [ "### book 426585\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
Genesis   
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
book Genesis
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/markdown": [ "### chapter 426624\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
Genesis 1   
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
chapter Genesis 1
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/markdown": [ "### lex 1437567\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
בְּ  
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/markdown": [ "### verse 1414354\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
Genesis 1:1  בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/markdown": [ "### half_verse 606362\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
Genesis 1:1  בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
half_verse
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/markdown": [ "### sentence 1172290\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
Genesis 1:1  בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/markdown": [ "### sentence_atom 1236017\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
Genesis 1:1  בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/markdown": [ "### clause 427553\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
Genesis 1:1  בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/markdown": [ "### clause_atom 515674\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
Genesis 1:1  בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/markdown": [ "### phrase 651542\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
Genesis 1:1  בְּרֵאשִׁ֖ית
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/markdown": [ "### phrase_atom 904749\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
Genesis 1:1  בְּרֵאשִׁ֖ית
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/markdown": [ "### subphrase 1300542\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
Genesis 1:1  אֵ֥ת הַשָּׁמַ֖יִם
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/markdown": [ "### word 1\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
Genesis 1:1  בְּ
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "typeShow(A)" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "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.7.7" } }, "nbformat": 4, "nbformat_minor": 4 }