%load_ext autoreload
%autoreload 2
from tf.app import use
from fixture import typeShow
A = use('~/github/annotation/banks/tf/0.2', hoist=globals())
typeShow(A)
A = use('./banksOld', checkout="clone", hoist=globals())
App `banksOld` requires API version 2 but Text-Fabric provides 3. Your copy of the TF app `banksOld` is outdated for this version of TF. Recommendation: obtain a newer version of `banksOld`. Hint: load the app in one of the following ways: banksOld banksOld:latest banksOld:hot For example: The Text-Fabric browser: text-fabric banksOld:latest In a program/notebook: A = use('banksOld:latest', hoist=globals())
A = use('./banks', checkout="clone", hoist=globals())
typeShow(A)
A = use('banks:clone', checkout="clone", hoist=globals())
TF.info(N.sortNodes(range(1,118)))
0.97s [100, 101, 115, 103, 1, 2, 3, 104, 4, 5, 6, 105, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 106, 21, 22, 23, 24, 25, 26, 27, 116, 107, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 108, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 109, 52, 53, 54, 55, 102, 117, 110, 56, 111, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 112, 76, 77, 78, 79, 80, 81, 82, 83, 113, 84, 85, 86, 87, 88, 114, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99]
typeShow(A)
A.plain(115, highlights={3})
A.plain(115, plainGaps=False)
A.pretty(115, withNodes=True)
A.plain(103, standardFeatures=False, withTypes=False, withNodes=True, highlights={1, 2, 3}, explain=True)
<0> TOP <1> line 103 {1-3} <2> word 1 {1} <2> word 2 {2} <2> word 3 {3}
A.showContext()
{}
baseTypes
:line
word
condenseType
:book
chapter
sentence
line
hiddenTypes
:line
textFormat
:layout-orig-full
: word
line-default
: word
line-term
: line
text-orig-full
: word
None
banks
~/github/annotation/app-banks/code
word
set()
False
2
How TF features represent text
https://annotation.github.io/text-fabric/writing/.html
book
:chapter
chapter
:sentence
line
:word
sentence
:line
word
None
sentence
Two quotes from Consider Phlebas by Iain M. Banks
empty
textFormats
:layout-orig-full
:method
: layoutRich
style
: normal
txtu
book
:book
chapter
line
sentence
word
chapter
:chapter
line
sentence
word
line
:line
word
sentence
:line
sentence
word
ltr
https://nbviewer.jupyter.org/github/annotation/banks/blob/master/programs
.ipynb
convert
https://nbviewer.jupyter.org/github
https://nbviewer.jupyter.org/github/annotation/banks/blob/master/programs/convert.ipynb
charText
: How TF features represent text
charUrl
: https://annotation.github.io/text-fabric/writing/.html
docBase
: https://nbviewer.jupyter.org/github/annotation/banks/blob/master/programs
docExt
: .ipynb
docPage
: convert
docRoot
: https://nbviewer.jupyter.org/github
docUrl
: https://nbviewer.jupyter.org/github/annotation/banks/blob/master/programs/convert.ipynb
featureBase
: https://nbviewer.jupyter.org/github/annotation/banks/blob/master/programs
featurePage
: convert
10.5281/zenodo.2630416
Consider Phlebas 1:1
<code>Consider Phlebas 1:1</code>
set()
{}
empty
https://nbviewer.jupyter.org/github/annotation/banks/blob/master/programs
convert
book
:line
:terminator
word
:gap
book
:author
line
:word
:layout-orig-full
: txtn
line-default
: txtn
line-term
: txtn
text-orig-full
: txtu
layout-orig-full
layout-orig-full
: layoutRich
normal
: txtn
orig
: txtu
phono
: txtp
source
: txto
trans
: txtt
None
set()
set()
condensed
: FalsehideTypes
: True
lineNumbers
: NoneplainGaps
: True
prettyTypes
: True
queryFeatures
: True
showGraphics
: NonestandardFeatures
: FalsewithNodes
: FalsewithTypes
: FalseTrue
book
:True
chapter
:True
line
:{number}
number
sentence
:word
:True
empty
book
:children
: children hor wrap
container
: contnr c4
label
: lbl c4
chapter
:children
: children hor wrap
container
: contnr c4
label
: lbl c4
line
:children
: children hor wrap
container
: contnr c3
label
: lbl c3
sentence
:children
: children hor wrap
container
: contnr c3
label
: lbl c3
word
:children
: emptycontainer
: contnr c0
label
: lbl c0
book
:flow
: hor
level
: 4
stretch
: True
wrap
: True
chapter
:flow
: hor
level
: 4
stretch
: True
wrap
: True
line
:flow
: hor
level
: 3
stretch
: True
wrap
: True
sentence
:flow
: hor
level
: 3
stretch
: True
wrap
: True
word
:flow
: ver
level
: 0stretch
: Falsewrap
: False{}
set()
{}
clone
~/github/annotation/banks/_temp
()
set()
annotation
{}
{}
corpus
: Two quotes from Consider Phlebas by Iain M. Banks
doi
: 10.5281/zenodo.2630416
graphicsRelative
: NonemoduleSpecs
: ()org
: annotation
relative
: tf
repo
: banks
version
: 0.2
webBase
: NonewebHint
: NonewebLang
: NonewebLexId
: NonewebUrl
: NonewebUrlLex
: Nonezip
: Nonetf
None
banks
:
False
{}
book
:True
chapter
:True
line
:{number}
number
sentence
:word
:True
text-orig-full
https://annotation.github.io/text-fabric
{}
book
:featuresBare
: author
line
:features
: terminator
label
: {number}
template
: {number}
verselike
: True
word
:features
: gap
https://github.com
https://nbviewer.jupyter.org/github
line
sentence
0.2
None
None
None
None
None
None
empty
banks
A.displayShow()
word
None
sentence
False
None
None
False
set()
True
{}
None
True
True
True
None
set()
False
None
set()
()
False
True
False