Basic instructions on loading the Text-Fabric and start using it on your system.
[Example 1: show all object phrases in clauses](#fifth-bullet)
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/Nestle1904GBI", hoist=globals())
Locating corpus resources ...
The requested app is not available offline ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/app 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 4993 left for this hour connecting to online GitHub repo tonyjurg/Nestle1904GBI ... connected app/README.md...downloaded app/config.yaml...downloaded app/static...directory app/static/display.css...downloaded OK
The requested data is not available offline ~/text-fabric-data/github/tonyjurg/Nestle1904GBI/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 4978 left for this hour connecting to online GitHub repo tonyjurg/Nestle1904GBI ... connected No directory /tf/1904 in #af5dd4a4b6ea90e435d1caee5b8a8648e48a62b9Will try something else Failed
No directory /tf/1904 in #4b7b74b85283250f048b4fcbafbb00ce48da25e1 Failed There were problems with loading data. The Text-Fabric API has not been loaded! The app "tonyjurg/Nestle1904GBI" will not work!
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