In [1]:
%load_ext autoreload
%autoreload 2
In [2]:
from tf.app import use
from fixture import typeShow

BHSA specifics

In [3]:
A = use("bhsa:clone", checkout="clone", hoist=globals())
TF-app: ~/github/annotation/app-bhsa/code
data: ~/github/etcbc/bhsa/tf/c
data: ~/github/etcbc/phono/tf/c
data: ~/github/etcbc/parallels/tf/c
Text-Fabric API: names N F E L T S C TF directly usable

In [ ]:
A.reuse()
In [4]:
A.showContext()

bhsa app context

1. afterChild

{}

</details>

2. allowedValues

  • baseTypes:
    • half_verse
    • sentence
    • sentence_atom
    • clause
    • clause_atom
    • phrase
    • phrase_atom
    • subphrase
    • word
  • condenseType:
    • book
    • chapter
    • verse
    • half_verse
    • sentence
    • sentence_atom
    • clause
    • clause_atom
    • phrase
    • phrase_atom
    • subphrase
  • hiddenTypes:
    • half_verse
    • sentence
    • sentence_atom
    • clause
    • clause_atom
    • phrase
    • phrase_atom
    • subphrase
  • textFormat:
    • lex-default: word
    • lex-orig-full: word
    • lex-orig-plain: word
    • lex-trans-full: word
    • lex-trans-plain: word
    • text-orig-full: word
    • text-orig-full-ketiv: word
    • text-orig-plain: word
    • text-phono-full: word
    • text-trans-full: word
    • text-trans-full-ketiv: word
    • text-trans-plain: word

</details>

3. apiVersion

None

</details>

4. appName

bhsa

</details>

5. appPath

~/github/annotation/app-bhsa/code

</details>

6. baseTypes

  1. word

</details>

7. bigTypes

set()

</details>

8. browseContentPretty

False

</details>

9. browseNavLevel

2

</details>

10. charText

How TF features represent text

</details>

11. charUrl

https://annotation.github.io/text-fabric/writing/hebrew.html

</details>

12. childType

  • book:
    • chapter
  • chapter:
    • verse
  • clause:
    • clause_atom
  • clause_atom:
    • phrase
  • half_verse:
    • sentence
  • phrase:
    • phrase_atom
  • phrase_atom:
    • subphrase
  • sentence:
    • sentence_atom
  • sentence_atom:
    • clause
  • subphrase:
    • word
  • verse:
    • half_verse
    • sentence

</details>

13. commit

None

</details>

14. condenseType

verse

</details>

15. corpus

BHSA = Biblia Hebraica Stuttgartensia Amstelodamensis

</details>

16. css

empty

</details>

17. dataDisplay

  • exampleSectionHtml: <code>Genesis 1:1</code> (use <a href="https://github.com/{org}/{repo}/blob/master/tf/{version}/book%40en.tf" target="_blank">English book names</a>)
  • excludedFeatures:
    • g_uvf_utf8
    • g_vbs
    • kq_hybrid
    • languageISO
    • g_nme
    • lex0
    • is_root
    • g_vbs_utf8
    • g_uvf
    • dist
    • root
    • suffix_person
    • g_vbe
    • dist_unit
    • suffix_number
    • distributional_parent
    • kq_hybrid_utf8
    • crossrefSET
    • instruction
    • g_prs
    • lexeme_count
    • rank_occ
    • g_pfm_utf8
    • freq_occ
    • crossrefLCS
    • functional_parent
    • g_pfm
    • g_nme_utf8
    • g_vbe_utf8
    • kind
    • g_prs_utf8
    • suffix_gender
    • mother_object_type
  • noneValues:
    • none
    • unknown
    • None
    • NA

</details>

18. defaultClsOrig

txtu hbo

</details>

19. descendantType

  • book:
    • book
    • chapter
    • clause
    • clause_atom
    • half_verse
    • phrase
    • phrase_atom
    • sentence
    • sentence_atom
    • subphrase
    • verse
    • word
  • chapter:
    • chapter
    • clause
    • clause_atom
    • half_verse
    • phrase
    • phrase_atom
    • sentence
    • sentence_atom
    • subphrase
    • verse
    • word
  • clause:
    • clause
    • clause_atom
    • phrase
    • phrase_atom
    • subphrase
    • word
  • clause_atom:
    • clause_atom
    • phrase
    • phrase_atom
    • subphrase
    • word
  • half_verse:
    • clause
    • clause_atom
    • half_verse
    • phrase
    • phrase_atom
    • sentence
    • sentence_atom
    • subphrase
    • word
  • phrase:
    • phrase
    • phrase_atom
    • subphrase
    • word
  • phrase_atom:
    • phrase_atom
    • subphrase
    • word
  • sentence:
    • clause
    • clause_atom
    • phrase
    • phrase_atom
    • sentence
    • sentence_atom
    • subphrase
    • word
  • sentence_atom:
    • clause
    • clause_atom
    • phrase
    • phrase_atom
    • sentence_atom
    • subphrase
    • word
  • subphrase:
    • subphrase
    • word
  • verse:
    • clause
    • clause_atom
    • half_verse
    • phrase
    • phrase_atom
    • sentence
    • sentence_atom
    • subphrase
    • verse
    • word

</details>

20. direction

rtl

</details>

21. docBase

https://etcbc.github.io/bhsa

</details>

22. docExt

empty

</details>

23. docPage

0_home

</details>

24. docRoot

https://etcbc.github.io

</details>

25. docUrl

https://etcbc.github.io/bhsa/0_home

</details>

26. docs

  • charText: How TF features represent text
  • charUrl: https://annotation.github.io/text-fabric/writing/hebrew.html
  • docBase: https://etcbc.github.io/bhsa
  • docExt: empty
  • docPage: 0_home
  • docRoot: https://etcbc.github.io
  • docUrl: https://etcbc.github.io/bhsa/0_home
  • featureBase: https://etcbc.github.io/bhsa/features/<feature>
  • featurePage: 0_home

</details>

27. doi

10.5281/zenodo.1007624

</details>

28. exampleSection

Genesis 1:1

</details>

29. exampleSectionHtml

<code>Genesis 1:1</code> (use <a href="https://github.com/{org}/{repo}/blob/master/tf/{version}/book%40en.tf" target="_blank">English book names</a>)

</details>

30. excludedFeatures

  1. g_uvf_utf8
  2. g_vbs
  3. kq_hybrid
  4. languageISO
  5. g_nme
  6. lex0
  7. is_root
  8. g_vbs_utf8
  9. g_uvf
  10. dist
  11. root
  12. suffix_person
  13. g_vbe
  14. dist_unit
  15. suffix_number
  16. distributional_parent
  17. kq_hybrid_utf8
  18. crossrefSET
  19. instruction
  20. g_prs
  21. lexeme_count
  22. rank_occ
  23. g_pfm_utf8
  24. freq_occ
  25. crossrefLCS
  26. functional_parent
  27. g_pfm
  28. g_nme_utf8
  29. g_vbe_utf8
  30. kind
  31. g_prs_utf8
  32. suffix_gender
  33. mother_object_type

</details>

31. exclusions

{}

</details>

32. extension

hbo

</details>

33. featureBase

https://etcbc.github.io/bhsa/features/<feature>

</details>

34. featurePage

0_home

</details>

35. features

  • clause:
    • []
    • {}
  • clause_atom:
    • []
    • {}
  • half_verse:
    • []
    • {}
  • lex:
    • []
    • {}
  • phrase:
    • []
    • {}
  • phrase_atom:
    • []
    • {}
  • sentence:
    • []
    • {}
  • sentence_atom:
    • []
    • {}
  • subphrase:
    • []
    • {}
  • word:
      • pdp
      • vs
      • vt
    • {}

</details>

36. featuresBare

  • clause:
    • []
    • {}
  • clause_atom:
    • []
    • {}
  • half_verse:
    • []
    • {}
  • lex:
      • gloss
    • {}
  • phrase:
    • []
    • {}
  • phrase_atom:
    • []
    • {}
  • sentence:
    • []
    • {}
  • sentence_atom:
    • []
    • {}
  • subphrase:
    • []
    • {}
  • word:
      • gloss
      • gloss: lex

</details>

37. formatCls

  • lex-default: txtn
  • lex-orig-full: txtu hbo
  • lex-orig-plain: txtu hbo
  • lex-trans-full: txtt
  • lex-trans-plain: txtt
  • text-orig-full: txtu hbo
  • text-orig-full-ketiv: txtu hbo
  • text-orig-plain: txtu hbo
  • text-phono-full: txtp
  • text-trans-full: txtt
  • text-trans-full-ketiv: txtt
  • text-trans-plain: txtt

</details>

38. formatHtml

set()

</details>

39. formatMethod

{}

</details>

40. formatStyle

  • normal: txtn
  • orig: txtu hbo
  • phono: txtp
  • source: txto
  • trans: txtt

</details>

41. graphicsRelative

None

</details>

42. hasGraphics

set()

</details>

43. hiddenTypes

  1. clause_atom
  2. half_verse
  3. phrase_atom
  4. sentence_atom
  5. subphrase

</details>

44. interfaceDefaults

  • condensed: False
  • hideTypes: True
  • lineNumbers: None
  • plainGaps: True
  • prettyTypes: True
  • queryFeatures: True
  • showGraphics: None
  • standardFeatures: False
  • withNodes: False
  • withTypes: False

</details>

45. isCompatible

True

</details>

46. labels

  • book:
    • True
    • ()
  • chapter:
    • True
    • ()
  • clause:
    • {typ} {rela}
      • typ
      • rela
  • clause_atom:
    • {code}
      • code
  • half_verse:
    • {label}
      • label
  • lex:
    • {voc_lex_utf8}
      • voc_lex_utf8
  • phrase:
    • {typ} {function}
      • typ
      • function
  • phrase_atom:
    • {typ} {rela}
      • typ
      • rela
  • sentence:
    • {number}
      • number
  • sentence_atom:
    • {number}
      • number
  • subphrase:
    • {number}
      • number
  • verse:
    • empty
    • ()
  • word:
    • True
    • ()

</details>

47. language

hebrew

</details>

48. levelCls

  • book:
    • children: children hor wrap
    • container: contnr c4
    • label: lbl c4
  • chapter:
    • children: children hor wrap
    • container: contnr c4
    • label: lbl c4
  • clause:
    • children: children hor wrap
    • container: contnr c2
    • label: lbl c2
  • clause_atom:
    • children: children hor wrap
    • container: contnr c1
    • label: lbl c1
  • half_verse:
    • children: children hor wrap
    • container: contnr c3
    • label: lbl c3
  • lex:
    • children: empty
    • container: contnr c0
    • label: lbl c0
  • phrase:
    • children: children hor wrap
    • container: contnr c1
    • label: lbl c1
  • phrase_atom:
    • children: children hor wrap
    • container: contnr c1
    • label: lbl c1
  • sentence:
    • children: children hor wrap
    • container: contnr c2
    • label: lbl c2
  • sentence_atom:
    • children: children hor wrap
    • container: contnr c1
    • label: lbl c1
  • subphrase:
    • children: children hor wrap
    • container: contnr c1
    • label: lbl c1
  • verse:
    • children: children hor wrap
    • container: contnr c3
    • label: lbl c3
  • word:
    • children: empty
    • container: contnr c0
    • label: lbl c0

</details>

49. levels

  • book:
    • flow: hor
    • level: 4
    • stretch: True
    • wrap: True
  • chapter:
    • flow: hor
    • level: 4
    • stretch: True
    • wrap: True
  • clause:
    • flow: hor
    • level: 2
    • stretch: True
    • wrap: True
  • clause_atom:
    • flow: hor
    • level: 1
    • stretch: True
    • wrap: True
  • half_verse:
    • flow: hor
    • level: 3
    • stretch: True
    • wrap: True
  • lex:
    • flow: ver
    • level: 0
    • stretch: False
    • wrap: False
  • phrase:
    • flow: hor
    • level: 1
    • stretch: True
    • wrap: True
  • phrase_atom:
    • flow: hor
    • level: 1
    • stretch: True
    • wrap: True
  • sentence:
    • flow: hor
    • level: 2
    • stretch: True
    • wrap: True
  • sentence_atom:
    • flow: hor
    • level: 1
    • stretch: True
    • wrap: True
  • subphrase:
    • flow: hor
    • level: 1
    • stretch: True
    • wrap: True
  • verse:
    • flow: hor
    • level: 3
    • stretch: True
    • wrap: True
  • word:
    • flow: ver
    • level: 0
    • stretch: False
    • wrap: False

</details>

50. lexMap

  • word: lex

</details>

51. lexTypes

  1. lex

</details>

52. lineNumberFeature

{}

</details>

53. local

clone

</details>

54. localDir

~/github/etcbc/bhsa/_temp

</details>

55. moduleSpecs

    • corpus: Phonetic Transcriptions
    • docUrl: https://nbviewer.jupyter.org/github/etcbc/phono/blob/master/programs/phono.ipynb
    • doi: 10.5281/zenodo.1007636
    • org: etcbc
    • relative: tf
    • repo: phono
    • corpus: Parallel Passages
    • docUrl: https://nbviewer.jupyter.org/github/etcbc/parallels/blob/master/programs/parallels.ipynb
    • doi: 10.5281/zenodo.1007642
    • org: etcbc
    • relative: tf
    • repo: parallels

</details>

56. noDescendTypes

  1. lex

</details>

57. noneValues

  1. none
  2. unknown
  3. None
  4. NA

</details>

58. org

etcbc

</details>

59. plainCustom

{}

</details>

60. prettyCustom

{}

</details>

61. provenanceSpec

  • corpus: BHSA = Biblia Hebraica Stuttgartensia Amstelodamensis
  • doi: 10.5281/zenodo.1007624
  • graphicsRelative: None
  • moduleSpecs:
      • corpus: Phonetic Transcriptions
      • docUrl: https://nbviewer.jupyter.org/github/etcbc/phono/blob/master/programs/phono.ipynb
      • doi: 10.5281/zenodo.1007636
      • org: etcbc
      • relative: tf
      • repo: phono
      • corpus: Parallel Passages
      • docUrl: https://nbviewer.jupyter.org/github/etcbc/parallels/blob/master/programs/parallels.ipynb
      • doi: 10.5281/zenodo.1007642
      • org: etcbc
      • relative: tf
      • repo: parallels
  • org: etcbc
  • relative: tf
  • repo: bhsa
  • version: c
  • webBase: https://shebanq.ancient-data.org/hebrew
  • webHint: Show this on SHEBANQ
  • webLang: la
  • webLexId: True
  • 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
  • webUrlLex: https://shebanq.ancient-data.org/hebrew/word?version=c&id=<lid>
  • zip: None

</details>

62. relative

tf

</details>

63. release

None

</details>

64. repo

bhsa

</details>

65. sectionSep1

</details>

66. sectionSep2

:

</details>

67. showVerseInTuple

False

</details>

68. styles

  • clause: empty
  • clause_atom: empty
  • half_verse: empty
  • lex: txtu hbo
  • phrase: empty
  • phrase_atom: empty
  • sentence: empty
  • sentence_atom: empty
  • subphrase: empty

</details>

69. templates

  • book:
    • True
    • ()
  • chapter:
    • True
    • ()
  • clause:
    • empty
    • ()
  • clause_atom:
    • empty
    • ()
  • half_verse:
    • empty
    • ()
  • lex:
    • {voc_lex_utf8}
      • voc_lex_utf8
  • phrase:
    • empty
    • ()
  • phrase_atom:
    • empty
    • ()
  • sentence:
    • empty
    • ()
  • sentence_atom:
    • empty
    • ()
  • subphrase:
    • empty
    • ()
  • verse:
    • empty
    • ()
  • word:
    • True
    • ()

</details>

70. textFormat

text-orig-full

</details>

71. tfDoc

https://annotation.github.io/text-fabric

</details>

72. transform

{}

</details>

73. typeDisplay

  • clause:
    • label: {typ} {rela}
    • style: empty
  • clause_atom:
    • hidden: True
    • label: {code}
    • level: 1
    • style: empty
  • half_verse:
    • hidden: True
    • label: {label}
    • style: empty
    • verselike: True
  • lex:
    • featuresBare: gloss
    • label: {voc_lex_utf8}
    • lexOcc: word
    • style: orig
    • template: {voc_lex_utf8}
  • phrase:
    • label: {typ} {function}
    • style: empty
  • phrase_atom:
    • hidden: True
    • label: {typ} {rela}
    • level: 1
    • style: empty
  • sentence:
    • label: {number}
    • style: empty
  • sentence_atom:
    • hidden: True
    • label: {number}
    • level: 1
    • style: empty
  • subphrase:
    • hidden: True
    • label: {number}
    • style: empty
  • word:
    • features: pdp vs vt
    • featuresBare: lex:gloss

</details>

74. urlGh

https://github.com

</details>

75. urlNb

https://nbviewer.jupyter.org/github

</details>

76. verseTypes

  1. half_verse
  2. verse

</details>

77. version

c

</details>

78. webBase

https://shebanq.ancient-data.org/hebrew

</details>

79. webHint

Show this on SHEBANQ

</details>

80. webLang

la

</details>

81. webLexId

True

</details>

82. 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

</details>

83. webUrlLex

https://shebanq.ancient-data.org/hebrew/word?version=c&id=<lid>

</details>

84. writing

hbo

</details>

85. zip

  1. bhsa
    • etcbc
    • phono
    • tf
    • etcbc
    • parallels
    • tf

</details> </details>

A slot with standard features

In [5]:
A.displayShow("standardFeatures")
current display options
19. standardFeatures False
In [6]:
w = 2
p = L.u(w, otype="phrase")[0]
In [24]:
tree = A.unravel(w, explain=True)
<0> TOP
  <1> word 3461 {3461} 
In [25]:
tree = A.unravel(p, explain=True)
<0> TOP
  <1> phrase 675477 {38612} 
    <2> word 38612 {38612} 
In [26]:
A.pretty(w, standardFeatures=True)
A.pretty(p, standardFeatures=True)
inpdp=prep
phrase VP Pred
makepdp=verbvs=qalvt=perf

Base types

In [27]:
p = 675477
highlights = {p}
A.pretty(p, highlights=highlights)
A.pretty(p, highlights=highlights, baseTypes="phrase")
phrase עָשָׂ֤ה

A tricky verse

In [28]:
v = T.nodeFromSection(("Genesis", 7, 14))
v
Out[28]:
1414527
In [29]:
A.plain(v, explain=False)
Genesis 7:14  הֵ֜מָּה וְכָל־הַֽחַיָּ֣ה לְמִינָ֗הּ וְכָל־הַבְּהֵמָה֙ לְמִינָ֔הּ וְכָל־הָרֶ֛מֶשׂ הָרֹמֵ֥שׂ עַל־הָאָ֖רֶץ לְמִינֵ֑הוּ וְכָל־הָעֹ֣וף לְמִינֵ֔הוּ כֹּ֖ל צִפֹּ֥ור כָּל־כָּנָֽף׃

Halfverses are hidden. This verse is divided (at top level) in 3 spans: one for each clause chunk. The first and last chunks belong to clause 1, and the middle chunk is clause 2.

Look what happens if we set hideTypes=True:

In [30]:
A.plain(v, hideTypes=False, explain=False)
Genesis 7:14  הֵ֜מָּה וְכָל־הַֽחַיָּ֣ה לְמִינָ֗הּ וְכָל־הַבְּהֵמָה֙ לְמִינָ֔הּ וְכָל־הָרֶ֛מֶשׂ הָרֹמֵ֥שׂ עַל־הָאָ֖רֶץ לְמִינֵ֑הוּ וְכָל־הָעֹ֣וף לְמִינֵ֔הוּ כֹּ֖ל צִפֹּ֥ור כָּל־כָּנָֽף׃

When you make the browser window narrower, the line breaks are different. Because now the verse is divided in 2 spans: one for each half verse, and the separation between the half verses is within the third clause chunk.

See it in pretty view:

We can selectively unhide the half verse and leave everything else hidden:

This shows the reason of the split.

We can also print the full structure (although that's a bit over the top):

In [33]:
A.pretty(v, hideTypes=False)
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

Alignment in tables

In [34]:
A.table(
    ((2, 213294, 426583), (3, 213295, 426582), (4, 213296, 426581)), withPassage={1, 2}
)
nwordwordword
1
Genesis 1:1  רֵאשִׁ֖ית
Isaiah 4:1  יֹּ֤ום
וְ
2
Genesis 1:1  בָּרָ֣א
Isaiah 4:1  הַ
עִמֹּ֖ו
3
Genesis 1:1  אֱלֹהִ֑ים
Isaiah 4:1  הוּא֙
אֱלֹהָ֛יו

Subphrases

Subphrases with equal slots:

In [35]:
w = 3461
sps = L.u(w, otype="subphrase")
for sp in sps[0:-1]:
    print(E.oslots.s(sp))
    A.pretty(sp, standardFeatures=True, extraFeatures="rela", withNodes=True)
array('I', [3461, 3462, 3463])
subphrase:1301588
3461 בַ
inpdp=prep
3462
thepdp=art
cattlepdp=subs
array('I', [3461, 3462, 3463])
subphrase:1301587
rela=par
3461 בַ
inpdp=prep
3462
thepdp=art
cattlepdp=subs

Sentence spanning two verses

In [36]:
A.pretty(v, withNodes=True, explain=False)
verse:1414527
sentence:1172740
clause:428162
clause:428163
phrase:653420
3319 הָ
phrase:653421
phrase:653422
clause:428162

Base types

In [37]:
cl = 427612
words = L.d(cl, otype="word")
phrases = L.d(cl, otype="phrase")
highlights = {phrases[1]: "lightsalmon", words[2]: "lightblue"}
A.pretty(cl, baseTypes="phrase", withNodes=True, highlights=highlights, explain=True)
<0> TOP
  <1> clause 427612 {322-326} 
    <2> phrase* 651725 {322-323} 
      <3> word 322 {322} 
      <3> word 323 {323} 
    <2> phrase* 651726 {324-326} 
      <3> word 324 {324} 
      <3> word 325 {325} 
      <3> word 326 {326} 
clause:427612
phrase:651725 לְהָאִ֖יר
phrase:651726 324עַל־הָאָֽרֶץ׃

Gaps

In [38]:
c = 427931
s = L.u(c, otype="sentence")[0]
v = L.u(c, otype="verse")[0]
highlights = {c: "khaki", c + 1: "lightblue"}
In [39]:
A.webLink(s)
In [40]:
A.plain(s, withNodes=True, highlights=highlights)
Genesis 4:14  1172567427931כָל־427932מֹצְאִ֖י 427931יַֽהַרְגֵֽנִי׃
In [41]:
A.plain(s)
Genesis 4:14  כָל־מֹצְאִ֖י יַֽהַרְגֵֽנִי׃
In [42]:
T.formats
Out[42]:
{'lex-default': 'word',
 'lex-orig-full': 'word',
 'lex-orig-plain': 'word',
 'lex-trans-full': 'word',
 'lex-trans-plain': 'word',
 'text-orig-full': 'word',
 'text-orig-full-ketiv': 'word',
 'text-orig-plain': 'word',
 'text-phono-full': 'word',
 'text-trans-full': 'word',
 'text-trans-full-ketiv': 'word',
 'text-trans-plain': 'word'}
In [43]:
A.plain(c, fmt="text-phono-full", withNodes=True, explain=False)
Genesis 4:14  427931ḵol-427931yˈaharᵊḡˈēnî .
In [44]:
A.plain(c, withNodes=False, explain=False)
Genesis 4:14  כָל־יַֽהַרְגֵֽנִי׃
In [45]:
A.pretty(c, withNodes=True, explain=False)
clause:427931
phrase:652670
clause:427931
In [46]:
A.pretty(c, withNodes=True, hideTypes=False, explain=False)
clause:427931
clause_atom:516064
phrase:652670
phrase_atom:905918
clause:427931
clause_atom:516066
phrase:652672
phrase_atom:905920
In [47]:
A.pretty(s, withNodes=True, highlights=highlights, explain=False)
sentence:1172567
clause:427931
phrase:652670
clause:427932
phrase:652671
clause:427931
In [48]:
A.plain(s, withNodes=True, hideTypes=False)
Genesis 4:14  1172567כָל־מֹצְאִ֖י יַֽהַרְגֵֽנִי׃
In [49]:
A.pretty(s, withNodes=True, highlights=highlights, hideTypes=False, explain=False)
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
In [50]:
A.plain(427931)
A.pretty(427931, withNodes=True)
A.plain(427932)
A.pretty(427932)
Genesis 4:14  כָל־יַֽהַרְגֵֽנִי׃
clause:427931
phrase:652670
clause:427931
Genesis 4:14  מֹצְאִ֖י
In [51]:
sp = F.otype.s("subphrase")[0]
v = L.u(sp, otype="verse")[0]
In [53]:
p = 653380
s = L.u(p, otype="sentence")[0]
c = L.d(s, otype="clause")[0]
In [54]:
A.plain(p)
Genesis 7:8  אֵינֶ֖נָּה
In [55]:
A.pretty(p)
In [56]:
A.pretty(p, baseTypes="phrase_atom", hideTypes=True)
In [57]:
A.pretty(p, baseTypes="phrase")
phrase אֵינֶ֖נָּה
In [58]:
A.plain(s)
Genesis 7:8  מִן־הַבְּהֵמָה֙ הַטְּהֹורָ֔ה וּמִן־הַ֨בְּהֵמָ֔ה אֲשֶׁ֥ר אֵינֶ֖נָּה טְהֹרָ֑ה וּמִ֨ן־הָעֹ֔וף וְכֹ֥ל אֲשֶׁר־רֹמֵ֖שׂ עַל־הָֽאֲדָמָֽה׃ שְׁנַ֨יִם שְׁנַ֜יִם בָּ֧אוּ אֶל־נֹ֛חַ אֶל־הַתֵּבָ֖ה זָכָ֣ר וּנְקֵבָ֑ה כַּֽאֲשֶׁ֛ר צִוָּ֥ה אֱלֹהִ֖ים אֶת־נֹֽחַ׃
In [59]:
A.plain(s, plainGaps=False)
Genesis 7:8  מִן־הַבְּהֵמָה֙ הַטְּהֹורָ֔ה וּמִן־הַ֨בְּהֵמָ֔ה אֲשֶׁ֥ר אֵינֶ֖נָּה טְהֹרָ֑ה וּמִ֨ן־הָעֹ֔וף וְכֹ֥ל אֲשֶׁר־רֹמֵ֖שׂ עַל־הָֽאֲדָמָֽה׃ שְׁנַ֨יִם שְׁנַ֜יִם בָּ֧אוּ אֶל־נֹ֛חַ אֶל־הַתֵּבָ֖ה זָכָ֣ר וּנְקֵבָ֑ה כַּֽאֲשֶׁ֛ר צִוָּ֥ה אֱלֹהִ֖ים אֶת־נֹֽחַ׃
In [60]:
A.plain(c, withNodes=True)
Genesis 7:8  428152מִן־הַבְּהֵמָה֙ הַטְּהֹורָ֔ה וּמִן־הַ֨בְּהֵמָ֔ה 428152וּמִ֨ן־הָעֹ֔וף וְכֹ֥ל 428152שְׁנַ֨יִם שְׁנַ֜יִם בָּ֧אוּ אֶל־נֹ֛חַ אֶל־הַתֵּבָ֖ה זָכָ֣ר וּנְקֵבָ֑ה
In [63]:
A.pretty(s, baseTypes="phrase")
sentence
clause
phrase מִן־הַבְּהֵמָה֙ הַטְּהֹורָ֔ה וּמִן־הַ֨בְּהֵמָ֔ה
clause
phrase אֲשֶׁ֥ר
phrase אֵינֶ֖נָּה
phrase טְהֹרָ֑ה
clause
phrase וּמִ֨ן־הָעֹ֔וף וְכֹ֥ל
clause
phrase אֲשֶׁר־
phrase רֹמֵ֖שׂ
phrase עַל־הָֽאֲדָמָֽה׃
clause
phrase שְׁנַ֨יִם שְׁנַ֜יִם
phrase בָּ֧אוּ
phrase אֶל־נֹ֛חַ
phrase אֶל־הַתֵּבָ֖ה
phrase זָכָ֣ר וּנְקֵבָ֑ה
clause
phrase כַּֽאֲשֶׁ֛ר
phrase צִוָּ֥ה
phrase אֱלֹהִ֖ים
phrase אֶת־נֹֽחַ׃
In [64]:
A.prettyTuple((p,), 1, baseTypes="phrase")

result 1

verse
sentence
clause
phrase מִן־הַבְּהֵמָה֙ הַטְּהֹורָ֔ה וּמִן־הַ֨בְּהֵמָ֔ה
clause
phrase אֲשֶׁ֥ר
phrase אֵינֶ֖נָּה
phrase טְהֹרָ֑ה
clause
phrase וּמִ֨ן־הָעֹ֔וף וְכֹ֥ל
clause
phrase אֲשֶׁר־
phrase רֹמֵ֖שׂ
phrase עַל־הָֽאֲדָמָֽה׃
In [65]:
A.pretty(p, baseTypes="phrase")
phrase אֵינֶ֖נָּה

Atom types

In [66]:
p = F.otype.s("phrase")[0]
pa = F.otype.s("phrase_atom")[0]

Plain

In [67]:
A.plain(p, highlights={p, pa})
A.plain(p, highlights={p, pa}, hideTypes=False)
Genesis 1:1  בְּרֵאשִׁ֖ית
Genesis 1:1  בְּרֵאשִׁ֖ית
In [68]:
A.plain(p, highlights={p})
A.plain(p, highlights={p}, hideTypes=False)
Genesis 1:1  בְּרֵאשִׁ֖ית
Genesis 1:1  בְּרֵאשִׁ֖ית
In [69]:
A.plain(p, highlights={pa})
A.plain(p, highlights={pa}, hideTypes=False)
Genesis 1:1  בְּרֵאשִׁ֖ית
Genesis 1:1  בְּרֵאשִׁ֖ית
In [70]:
A.plain(pa, highlights={p, pa})
A.plain(pa, highlights={p, pa}, hideTypes=False)
Genesis 1:1  בְּרֵאשִׁ֖ית
Genesis 1:1  בְּרֵאשִׁ֖ית
In [71]:
A.plain(pa, highlights={pa})
A.plain(pa, highlights={pa}, hideTypes=False)
Genesis 1:1  בְּרֵאשִׁ֖ית
Genesis 1:1  בְּרֵאשִׁ֖ית
In [72]:
A.plain(pa, highlights={p})
A.plain(pa, highlights={p}, hideTypes=False)
Genesis 1:1  בְּרֵאשִׁ֖ית
Genesis 1:1  בְּרֵאשִׁ֖ית

Pretty

In [73]:
A.pretty(p, highlights={p, pa})
A.pretty(p, highlights={p, pa}, hideTypes=False)
In [74]:
A.pretty(p, highlights={p})
A.pretty(p, highlights={p}, hideTypes=False)
In [75]:
A.pretty(p, highlights={pa})
A.pretty(p, highlights={pa}, hideTypes=False)
In [76]:
A.pretty(pa, highlights={p, pa})
A.pretty(pa, highlights={p, pa}, hideTypes=False)
In [77]:
A.pretty(pa, highlights={pa})
A.pretty(pa, highlights={pa}, hideTypes=False)
In [78]:
A.pretty(pa, highlights={p})
A.pretty(pa, highlights={p}, hideTypes=False)

Highlights

In [79]:
cl = 435509
ph = 675481
w = 38625

highlights = {ph, w}
In [80]:
A.pretty(cl, highlights=highlights, withNodes=True)
clause:435509
phrase:675481
In [81]:
A.pretty(cl, highlights=highlights, baseTypes={"phrase"}, withNodes=True)
clause:435509
phrase:675481 אֵ֤ת כָּל־הַ38625תְּלָאָה֙
In [82]:
A.plain(ph, highlights=highlights)
Exodus 18:8  אֵ֤ת כָּל־הַתְּלָאָה֙
In [83]:
A.plain(ph, highlights=highlights, baseTypes={"phrase"}, withNodes=True)
Exodus 18:8  675481אֵ֤ת כָּל־הַ38625תְּלָאָה֙
In [84]:
typeShow(A)

book 426585

Genesis   
book Genesis

chapter 426624

Genesis 1   
chapter Genesis 1

lex 1437567

בְּ  

verse 1414354

Genesis 1:1  בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃

half_verse 606362

Genesis 1:1  בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים

sentence 1172290

Genesis 1:1  בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃

sentence_atom 1236017

Genesis 1:1  בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃

clause 427553

Genesis 1:1  בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃

clause_atom 515674

Genesis 1:1  בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃

phrase 651542

Genesis 1:1  בְּרֵאשִׁ֖ית

phrase_atom 904749

Genesis 1:1  בְּרֵאשִׁ֖ית

subphrase 1300542

Genesis 1:1  אֵ֥ת הַשָּׁמַ֖יִם

word 1

Genesis 1:1  בְּ