Overview of feature values

We show how you can get a quick overview of the values of a feature.

This might help to make queries that use a particular feature more to the point.

In [1]:
from tf.app import use
In [2]:
A = use('bhsa:clone', hoist=globals())
TF-app: ~/github/annotation/app-bhsa/code
data: ~/text-fabric-data/etcbc/bhsa/tf/c
data: ~/text-fabric-data/etcbc/phono/tf/c
data: ~/text-fabric-data/etcbc/parallels/tf/c
Text-Fabric API: names N F E L T S C TF directly usable

Let's see the uvf feature.

In [3]:
F.uvf.freqList()
Out[3]:
(('absent', 423038),
 ('H', 1068),
 ('J', 946),
 ('>', 865),
 ('N', 650),
 ('W', 17))

You see a tuple of pairs, of which the first is a value of the uvf feature and the second is the number of nodes that carry that value.

While we're at it, we also show the values of nme, pfm, prs, vbe, vbs, tab. To see what the features stand for, consult the feature documentation by clicking on the appropriate link above.

In [4]:
F.nme.freqList()
Out[4]:
(('n/a', 188846),
 ('', 121966),
 ('absent', 56508),
 ('J', 15826),
 ('JM', 14661),
 ('H', 8934),
 ('T', 8558),
 ('WT', 6363),
 ('J=', 1770),
 ('WTJ', 1672),
 ('JM=', 562),
 ('TJM', 257),
 ('TJ', 256),
 ('JN', 254),
 ('T=', 61),
 ('W', 53),
 ('N', 24),
 ('JN=', 5),
 ('W=', 5),
 ('TJN', 3))
In [5]:
F.pfm.freqList()
Out[5]:
(('n/a', 352874),
 ('absent', 28713),
 ('J', 21111),
 ('', 11439),
 ('T', 3740),
 ('>', 2853),
 ('T=', 2699),
 ('M', 2144),
 ('N', 645),
 ('H', 341),
 ('L', 25))
In [6]:
F.prs.freqList()
Out[6]:
(('absent', 235942),
 ('n/a', 145484),
 ('W', 11905),
 ('K', 7134),
 ('J', 6566),
 ('M', 3938),
 ('H', 3352),
 ('HM', 3047),
 ('KM', 2657),
 ('NW', 1635),
 ('HW', 1611),
 ('NJ', 1321),
 ('K=', 1308),
 ('HN', 192),
 ('H=', 161),
 ('MW', 117),
 ('HJ', 77),
 ('HWN', 51),
 ('N', 47),
 ('KN', 19),
 ('KWN', 10),
 ('N>', 10))
In [7]:
F.vbe.freqList()
Out[7]:
(('n/a', 352874),
 ('', 50655),
 ('W', 12801),
 ('TJ', 3049),
 ('T', 2085),
 ('H', 1385),
 ('H=', 935),
 ('TM', 825),
 ('J', 549),
 ('WN', 381),
 ('NW', 370),
 ('NH', 358),
 ('T=', 249),
 ('T==', 34),
 ('N>', 11),
 ('TN', 10),
 ('JN', 7),
 ('N', 3),
 ('TWN', 3))
In [8]:
F.vbs.freqList()
Out[8]:
(('n/a', 352874),
 ('absent', 58304),
 ('H', 9997),
 ('N', 4145),
 ('HT', 1054),
 ('HCT', 172),
 ('C', 15),
 ('>T', 11),
 ('T', 5),
 ('>', 4),
 ('NT', 3))
In [9]:
F.tab.freqList()
Out[9]:
((6, 9649),
 (5, 9637),
 (7, 8880),
 (4, 8806),
 (8, 7908),
 (3, 7272),
 (9, 6591),
 (10, 5385),
 (2, 5188),
 (11, 4280),
 (12, 3253),
 (1, 3164),
 (13, 2406),
 (0, 2203),
 (14, 1763),
 (15, 1293),
 (16, 884),
 (17, 605),
 (18, 442),
 (19, 325),
 (20, 247),
 (21, 166),
 (22, 112),
 (23, 79),
 (24, 64),
 (25, 37),
 (26, 26),
 (27, 13),
 (28, 9),
 (29, 1))
In [ ]: