Skip to content

Commit 4fc68c6

Browse files
committed
readme badges
1 parent 8d87675 commit 4fc68c6

File tree

14 files changed

+49
-56
lines changed

14 files changed

+49
-56
lines changed

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
[![DOI](https://zenodo.org/badge/180373562.svg)](https://zenodo.org/badge/latestdoi/180373562)
1212

1313
This is a
14-
[Text-Fabric](https://githubv.com/annotation/text-fabric)
14+
[Text-Fabric](https://github.com/annotation/text-fabric)
1515
example app for working with
1616
a mini corpus consisting of just 99 words from the book
1717
[Consider Phlebas](https://en.wikipedia.org/wiki/Consider_Phlebas)
@@ -45,5 +45,4 @@ Authors
4545

4646
This repo is by
4747

48-
* [Dirk Roorda](https://www.linkedin.com/in/dirkroorda/) at
49-
[DANS](https://www.dans.knaw.nl)
48+
* Dirk Roorda @ [annotation](https://www.annotation.nl)

programs/convert.ipynb

+36-42
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
},
8888
{
8989
"cell_type": "code",
90-
"execution_count": 1,
90+
"execution_count": 2,
9191
"metadata": {},
9292
"outputs": [],
9393
"source": [
@@ -126,22 +126,6 @@
126126
"TF = Fabric(locations=TF_PATH, silent=True)"
127127
]
128128
},
129-
{
130-
"cell_type": "markdown",
131-
"metadata": {},
132-
"source": [
133-
"Next we initialize the conversion machinery: we obtain an object with methods."
134-
]
135-
},
136-
{
137-
"cell_type": "code",
138-
"execution_count": 4,
139-
"metadata": {},
140-
"outputs": [],
141-
"source": [
142-
"cv = CV(TF)"
143-
]
144-
},
145129
{
146130
"cell_type": "markdown",
147131
"metadata": {},
@@ -164,7 +148,7 @@
164148
},
165149
{
166150
"cell_type": "code",
167-
"execution_count": 5,
151+
"execution_count": 4,
168152
"metadata": {},
169153
"outputs": [],
170154
"source": [
@@ -185,7 +169,7 @@
185169
},
186170
{
187171
"cell_type": "code",
188-
"execution_count": 6,
172+
"execution_count": 5,
189173
"metadata": {},
190174
"outputs": [],
191175
"source": [
@@ -233,7 +217,7 @@
233217
},
234218
{
235219
"cell_type": "code",
236-
"execution_count": 7,
220+
"execution_count": 6,
237221
"metadata": {},
238222
"outputs": [],
239223
"source": [
@@ -262,7 +246,7 @@
262246
},
263247
{
264248
"cell_type": "code",
265-
"execution_count": 8,
249+
"execution_count": 7,
266250
"metadata": {},
267251
"outputs": [],
268252
"source": [
@@ -288,7 +272,7 @@
288272
},
289273
{
290274
"cell_type": "code",
291-
"execution_count": 9,
275+
"execution_count": 8,
292276
"metadata": {},
293277
"outputs": [],
294278
"source": [
@@ -354,6 +338,7 @@
354338
" in the sense that it will be linked to subsequent slot nodes, before it is terminated,\n",
355339
" or after it has been resumed;\n",
356340
"* If a fatal error is encountered, the director can simply say `cv.stop(message)`;\n",
341+
" the director is responsible for returning control after issuing a `cv.stop)`;\n",
357342
"* If the actions involve section nodes, it will be checked whether all slots occur in a section,\n",
358343
" and whether big sections such as books will not start, end, or terminate inside small sections such\n",
359344
" as verses. Warnings will be issued, but you can suppress them;\n",
@@ -362,7 +347,7 @@
362347
},
363348
{
364349
"cell_type": "code",
365-
"execution_count": 10,
350+
"execution_count": 12,
366351
"metadata": {},
367352
"outputs": [],
368353
"source": [
@@ -379,7 +364,7 @@
379364
"\n",
380365
" wordRe = re.compile(r'^(.*?)([^A-Za-z0-9]*)$')\n",
381366
" metaRe = re.compile(r'^\\$\\s*([^= ]+)\\s*=\\s*(.*)')\n",
382-
"\n",
367+
" \n",
383368
" for line in source.strip().split('\\n'):\n",
384369
" line = line.rstrip()\n",
385370
" if not line:\n",
@@ -498,9 +483,16 @@
498483
"We are going to run the conversion and check whether all is well."
499484
]
500485
},
486+
{
487+
"cell_type": "markdown",
488+
"metadata": {},
489+
"source": [
490+
"Next we initialize the conversion machinery: we obtain an object with methods."
491+
]
492+
},
501493
{
502494
"cell_type": "code",
503-
"execution_count": 11,
495+
"execution_count": 13,
504496
"metadata": {},
505497
"outputs": [
506498
{
@@ -536,7 +528,7 @@
536528
" | 119 nodes of all types\n",
537529
" | 0.01s OK\n",
538530
" | 0.00s Removing unlinked nodes ... \n",
539-
" | | 0.00s 2 unlinked \"sentence\" nodes: [1, 4]\n",
531+
" | | -0.00s 2 unlinked \"sentence\" nodes: [1, 4]\n",
540532
" | | 0.00s 2 unlinked nodes\n",
541533
" | | 0.00s Leaving 117 nodes\n",
542534
" | 0.00s checking for nodes and edges ... \n",
@@ -567,9 +559,9 @@
567559
" 0.00s OK: oslots is valid\n",
568560
" | 0.00s T author to /Users/dirk/github/annotation/banks/tf/0.2\n",
569561
" | 0.00s T gap to /Users/dirk/github/annotation/banks/tf/0.2\n",
570-
" | 0.00s T letters to /Users/dirk/github/annotation/banks/tf/0.2\n",
571-
" | 0.00s T number to /Users/dirk/github/annotation/banks/tf/0.2\n",
572-
" | 0.00s T otype to /Users/dirk/github/annotation/banks/tf/0.2\n",
562+
" | 0.01s T letters to /Users/dirk/github/annotation/banks/tf/0.2\n",
563+
" | 0.01s T number to /Users/dirk/github/annotation/banks/tf/0.2\n",
564+
" | 0.01s T otype to /Users/dirk/github/annotation/banks/tf/0.2\n",
573565
" | 0.00s T punc to /Users/dirk/github/annotation/banks/tf/0.2\n",
574566
" | 0.00s T terminator to /Users/dirk/github/annotation/banks/tf/0.2\n",
575567
" | 0.00s T title to /Users/dirk/github/annotation/banks/tf/0.2\n",
@@ -584,12 +576,14 @@
584576
"True"
585577
]
586578
},
587-
"execution_count": 11,
579+
"execution_count": 13,
588580
"metadata": {},
589581
"output_type": "execute_result"
590582
}
591583
],
592584
"source": [
585+
"cv = CV(TF)\n",
586+
"\n",
593587
"good = cv.walk(\n",
594588
" director,\n",
595589
" slotType,\n",
@@ -615,7 +609,7 @@
615609
},
616610
{
617611
"cell_type": "code",
618-
"execution_count": 12,
612+
"execution_count": 37,
619613
"metadata": {},
620614
"outputs": [
621615
{
@@ -632,7 +626,7 @@
632626
"@valueType=str\n",
633627
"@version=0.2\n",
634628
"@writtenBy=Text-Fabric\n",
635-
"@dateWritten=2019-06-03T07:30:41Z\n",
629+
"@dateWritten=2020-02-13T06:46:28Z\n",
636630
"\n",
637631
"1-99\tword\n",
638632
"100\tbook\n",
@@ -657,7 +651,7 @@
657651
},
658652
{
659653
"cell_type": "code",
660-
"execution_count": 13,
654+
"execution_count": 38,
661655
"metadata": {},
662656
"outputs": [
663657
{
@@ -680,7 +674,7 @@
680674
"@url=https://www.goodreads.com/work/quotes/14366-consider-phlebas\n",
681675
"@version=0.2\n",
682676
"@writtenBy=Text-Fabric\n",
683-
"@dateWritten=2019-06-03T07:30:41Z\n",
677+
"@dateWritten=2020-02-13T06:46:28Z\n",
684678
"\n",
685679
"\n"
686680
]
@@ -700,7 +694,7 @@
700694
},
701695
{
702696
"cell_type": "code",
703-
"execution_count": 14,
697+
"execution_count": 39,
704698
"metadata": {},
705699
"outputs": [
706700
{
@@ -717,7 +711,7 @@
717711
"@valueType=str\n",
718712
"@version=0.2\n",
719713
"@writtenBy=Text-Fabric\n",
720-
"@dateWritten=2019-06-03T07:30:41Z\n",
714+
"@dateWritten=2020-02-13T06:46:28Z\n",
721715
"\n",
722716
"100\t1-99\n",
723717
"1-55\n",
@@ -767,7 +761,7 @@
767761
},
768762
{
769763
"cell_type": "code",
770-
"execution_count": 15,
764+
"execution_count": 40,
771765
"metadata": {},
772766
"outputs": [
773767
{
@@ -785,7 +779,7 @@
785779
"@valueType=int\n",
786780
"@version=0.2\n",
787781
"@writtenBy=Text-Fabric\n",
788-
"@dateWritten=2019-06-03T07:30:41Z\n",
782+
"@dateWritten=2020-02-13T06:46:28Z\n",
789783
"\n",
790784
"101\t1\n",
791785
"2\n",
@@ -838,7 +832,7 @@
838832
},
839833
{
840834
"cell_type": "code",
841-
"execution_count": 16,
835+
"execution_count": 41,
842836
"metadata": {},
843837
"outputs": [
844838
{
@@ -856,7 +850,7 @@
856850
"@valueType=str\n",
857851
"@version=0.2\n",
858852
"@writtenBy=Text-Fabric\n",
859-
"@dateWritten=2019-06-03T07:30:41Z\n",
853+
"@dateWritten=2020-02-13T06:46:28Z\n",
860854
"\n",
861855
"Everything\n",
862856
"about\n",
@@ -984,7 +978,7 @@
984978
},
985979
{
986980
"cell_type": "code",
987-
"execution_count": 17,
981+
"execution_count": 42,
988982
"metadata": {},
989983
"outputs": [
990984
{
@@ -1003,7 +997,7 @@
1003997
"@valueType=str\n",
1004998
"@version=0.2\n",
1005999
"@writtenBy=Text-Fabric\n",
1006-
"@dateWritten=2019-06-03T07:30:41Z\n",
1000+
"@dateWritten=2020-02-13T06:46:28Z\n",
10071001
"\n",
10081002
"3\t,\n",
10091003
"6\t,\n",

sha.png

-5.11 KB
Binary file not shown.

sim/tf/0.2/sim.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
@valueType=int
88
@version=0.2
99
@writtenBy=Text-Fabric
10-
@dateWritten=2019-05-17T11:29:52Z
10+
@dateWritten=2020-06-10T19:40:37Z
1111

1212
15 7
1313
1 2,9,12,23,41,43,47,76 8

tf/0.2/author.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
@valueType=str
1010
@version=0.2
1111
@writtenBy=Text-Fabric
12-
@dateWritten=2019-06-03T07:30:41Z
12+
@dateWritten=2020-02-13T13:37:47Z
1313

1414
100 Iain M. Banks

tf/0.2/gap.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
@valueType=int
1010
@version=0.2
1111
@writtenBy=Text-Fabric
12-
@dateWritten=2019-06-03T07:30:41Z
12+
@dateWritten=2020-02-13T13:37:47Z
1313

1414
10 1
1515
1

tf/0.2/letters.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
@valueType=str
1010
@version=0.2
1111
@writtenBy=Text-Fabric
12-
@dateWritten=2019-06-03T07:30:41Z
12+
@dateWritten=2020-02-13T13:37:47Z
1313

1414
Everything
1515
about

tf/0.2/number.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
@valueType=int
1010
@version=0.2
1111
@writtenBy=Text-Fabric
12-
@dateWritten=2019-06-03T07:30:41Z
12+
@dateWritten=2020-02-13T13:37:47Z
1313

1414
101 1
1515
2

tf/0.2/oslots.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
@valueType=str
99
@version=0.2
1010
@writtenBy=Text-Fabric
11-
@dateWritten=2019-06-03T07:30:41Z
11+
@dateWritten=2020-02-13T13:37:47Z
1212

1313
100 1-99
1414
1-55

tf/0.2/otext.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
@url=https://www.goodreads.com/work/quotes/14366-consider-phlebas
1515
@version=0.2
1616
@writtenBy=Text-Fabric
17-
@dateWritten=2019-06-03T07:30:41Z
17+
@dateWritten=2020-02-13T13:37:47Z
1818

tf/0.2/otype.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
@valueType=str
99
@version=0.2
1010
@writtenBy=Text-Fabric
11-
@dateWritten=2019-06-03T07:30:41Z
11+
@dateWritten=2020-02-13T13:37:47Z
1212

1313
1-99 word
1414
100 book

tf/0.2/punc.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
@valueType=str
1111
@version=0.2
1212
@writtenBy=Text-Fabric
13-
@dateWritten=2019-06-03T07:30:41Z
13+
@dateWritten=2020-02-13T13:37:47Z
1414

1515
3 ,
1616
6 ,

tf/0.2/terminator.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
@valueType=str
1010
@version=0.2
1111
@writtenBy=Text-Fabric
12-
@dateWritten=2019-06-03T07:30:41Z
12+
@dateWritten=2020-02-13T13:37:47Z
1313

1414
103 ,
1515
,

tf/0.2/title.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
@valueType=str
1010
@version=0.2
1111
@writtenBy=Text-Fabric
12-
@dateWritten=2019-06-03T07:30:41Z
12+
@dateWritten=2020-02-13T13:37:47Z
1313

1414
100 Consider Phlebas

0 commit comments

Comments
 (0)