Basic instructions on loading the Text-Fabric and start using it on your system.
You need to have Python on your system. Most systems have it out of the box, but alas, that is python2 and we need at least python 3.6.
Install it from python.org or from Anaconda.
pip3 install text-fabric
You need Jupyter or a platform like Anaconda which includes Jupyter.
If it is not already installed:
pip3 install jupyter
It may be required to increase rate limit for GitHub. See instructions on aquiring and setting the GHPERS variable. See here if you want to set the varibale on windows using the command prompt.
%load_ext autoreload
%autoreload 2
# Loading the New Testament TextFabric code
from tf.fabric import Fabric
from tf.app import use
# load the app and data
NA = use ("tonyjurg/Nestle1904:clone", hoist=globals())
Locating corpus resources ...
The requested data is not available offline ~/text-fabric-data/github/tonyjurg/Nestle1904/tf/1904 not found
File is not a zip file could not save corpus data to ~/text-fabric-data/github
rate limit is 5000 requests per hour, with 4944 left for this hour connecting to online GitHub repo tonyjurg/Nestle1904 ... connected cannot find releases cannot find releases tf/1904/.nojekyll...downloaded tf/1904/.tf...directory tf/1904/.tf/3...directory tf/1904/.tf/3/__boundary__.tfx...excluded tf/1904/.tf/3/__characters__.tfx...excluded tf/1904/.tf/3/__levDown__.tfx...excluded tf/1904/.tf/3/__levUp__.tfx...excluded tf/1904/.tf/3/__levels__.tfx...excluded tf/1904/.tf/3/__order__.tfx...excluded tf/1904/.tf/3/__rank__.tfx...excluded tf/1904/.tf/3/__sections__.tfx...excluded tf/1904/.tf/3/__structure__.tfx...excluded tf/1904/.tf/3/book.tfx...excluded tf/1904/.tf/3/book_long.tfx...excluded tf/1904/.tf/3/book_short.tfx...excluded tf/1904/.tf/3/booknum.tfx...excluded tf/1904/.tf/3/case.tfx...excluded tf/1904/.tf/3/chapter.tfx...excluded tf/1904/.tf/3/clause.tfx...excluded tf/1904/.tf/3/clausetype.tfx...excluded tf/1904/.tf/3/degree.tfx...excluded tf/1904/.tf/3/formaltag.tfx...excluded tf/1904/.tf/3/functionaltag.tfx...excluded tf/1904/.tf/3/gloss_EN.tfx...excluded tf/1904/.tf/3/gn.tfx...excluded tf/1904/.tf/3/lemma.tfx...excluded tf/1904/.tf/3/lex_dom.tfx...excluded tf/1904/.tf/3/ln.tfx...excluded tf/1904/.tf/3/monad.tfx...excluded tf/1904/.tf/3/mood.tfx...excluded tf/1904/.tf/3/nodeID.tfx...excluded tf/1904/.tf/3/normalized.tfx...excluded tf/1904/.tf/3/nu.tfx...excluded tf/1904/.tf/3/number.tfx...excluded tf/1904/.tf/3/orig_order.tfx...excluded tf/1904/.tf/3/oslots.tfx...excluded tf/1904/.tf/3/otype.tfx...excluded tf/1904/.tf/3/person.tfx...excluded tf/1904/.tf/3/phrase.tfx...excluded tf/1904/.tf/3/phrasefunction.tfx...excluded tf/1904/.tf/3/phrasefunction_long.tfx...excluded tf/1904/.tf/3/phrasetype.tfx...excluded tf/1904/.tf/3/reference.tfx...excluded tf/1904/.tf/3/sentence.tfx...excluded tf/1904/.tf/3/sentencetype.tfx...excluded tf/1904/.tf/3/sp.tfx...excluded tf/1904/.tf/3/sp_full.tfx...excluded tf/1904/.tf/3/strongs.tfx...excluded tf/1904/.tf/3/subj_ref.tfx...excluded tf/1904/.tf/3/tense.tfx...excluded tf/1904/.tf/3/type.tfx...excluded tf/1904/.tf/3/verse.tfx...excluded tf/1904/.tf/3/voice.tfx...excluded tf/1904/.tf/3/word.tfx...excluded tf/1904/README.md...downloaded tf/1904/__checkout__.txt...downloaded tf/1904/book.tf...downloaded tf/1904/book_long.tf...downloaded tf/1904/book_short.tf...downloaded tf/1904/booknum.tf...downloaded tf/1904/case.tf...downloaded tf/1904/chapter.tf...downloaded tf/1904/clause.tf...downloaded tf/1904/clausetype.tf...downloaded tf/1904/degree.tf...downloaded tf/1904/formaltag.tf...downloaded tf/1904/functionaltag.tf...downloaded tf/1904/gloss_EN.tf...downloaded tf/1904/gn.tf...downloaded tf/1904/lemma.tf...downloaded tf/1904/lex_dom.tf...downloaded tf/1904/ln.tf...downloaded tf/1904/monad.tf...downloaded tf/1904/mood.tf...downloaded tf/1904/nodeID.tf...downloaded tf/1904/normalized.tf...downloaded tf/1904/nu.tf...downloaded tf/1904/number.tf...downloaded tf/1904/orig_order.tf...downloaded tf/1904/oslots.tf...downloaded tf/1904/otext.tf...downloaded tf/1904/otype.tf...downloaded tf/1904/person.tf...downloaded tf/1904/phrase.tf...downloaded tf/1904/phrasefunction.tf...downloaded tf/1904/phrasefunction_long.tf...downloaded tf/1904/phrasetype.tf...downloaded tf/1904/reference.tf...downloaded tf/1904/sentence.tf...downloaded tf/1904/sentencetype.tf...downloaded tf/1904/sp.tf...downloaded tf/1904/sp_full.tf...downloaded tf/1904/strongs.tf...downloaded tf/1904/subj_ref.tf...downloaded tf/1904/tense.tf...downloaded tf/1904/type.tf...downloaded tf/1904/verse.tf...downloaded tf/1904/voice.tf...downloaded tf/1904/word.tf...downloaded OK
| 0.20s T otype from ~/text-fabric-data/github/tonyjurg/Nestle1904/tf/1904 | 2.00s T oslots from ~/text-fabric-data/github/tonyjurg/Nestle1904/tf/1904 | 0.51s T verse from ~/text-fabric-data/github/tonyjurg/Nestle1904/tf/1904 | 0.48s T chapter from ~/text-fabric-data/github/tonyjurg/Nestle1904/tf/1904 | 0.67s T word from ~/text-fabric-data/github/tonyjurg/Nestle1904/tf/1904 | 0.01s T book from ~/text-fabric-data/github/tonyjurg/Nestle1904/tf/1904 | | 0.05s C __levels__ from otype, oslots, otext | | 1.51s C __order__ from otype, oslots, __levels__ | | 0.06s C __rank__ from otype, __order__
The following example will query (and indicate) the phrases with function 'O' (=Object). This is done by selecting versed containing the value 'O' for feature 'phrasefunction' belonging to node type 'phrase'. See also the feature description of 'phrasefunction'.
Search0 = '''
book book=Matthew
chapter chapter=1
phrase phrasefunction=O
'''
Search0 = NA.search(Search0)
NA.show(Search0, start=1, end=2, condensed=True, extraFeatures={'sp', 'clausetype'}, suppress={'chapter'}, colorMap={4:'pink', 5:'turquoise', 6:'lightblue', 7:'red'}, multiFeatures=False)
0.05s 51 results
verse 1
verse 2