Skip to content

Commit

Permalink
Modified grep commands to use simple output from parse-greek-to-singl…
Browse files Browse the repository at this point in the history
…efile.py.ipynb
  • Loading branch information
pcolazurdo committed May 5, 2021
1 parent 2e7ff24 commit 6080289
Showing 1 changed file with 24 additions and 134 deletions.
158 changes: 24 additions & 134 deletions greektext-analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,167 +2,57 @@
"cells": [
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 35,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"env: STRONG_ID=4973\n",
"data/greektext-textus-receptus/parsed/1CO.UTR-9:2 ei 1487 {COND} alloiv 243 {A-DPM} ouk 3756 {PRT-N} eimi 1510 5719\n",
"data/greektext-textus-receptus/parsed/1CO.UTR- {V-PAI-1S} apostolov 652 {N-NSM} alla 235 {CONJ} ge 1065 {PRT} umin\n",
"data/greektext-textus-receptus/parsed/1CO.UTR- 4771 {P-2DP} eimi 1510 5719 {V-PAI-1S} h 3588 {T-NSF} gar 1063\n",
"data/greektext-textus-receptus/parsed/1CO.UTR: {CONJ} sfragiv 4973 {N-NSF} thv 3588 {T-GSF} emhv 1699 {S-1SGSF}\n",
"data/greektext-textus-receptus/parsed/1CO.UTR- apostolhv 651 {N-GSF} umeiv 4771 {P-2NP} este 1510 5719 {V-PAI-2P}\n",
"data/greektext-textus-receptus/parsed/1CO.UTR- en 1722 {PREP} kuriw 2962 {N-DSM}\n",
"data/greektext-textus-receptus/parsed/1CO.UTR-9:3 h 3588 {T-NSF} emh 1699 {S-1SNSF} apologia 627 {N-NSF} toiv 3588\n",
"--\n",
"data/greektext-textus-receptus/parsed/2TI.UTR- {V-PAI-3P} thn 3588 {T-ASF} tinwn 5100 {X-GPM} pistin 4102 {N-ASF}\n",
"data/greektext-textus-receptus/parsed/2TI.UTR-2:19 o 3588 {T-NSM} mentoi 3305 {CONJ} stereov 4731 {A-NSM} qemeliov\n",
"data/greektext-textus-receptus/parsed/2TI.UTR- 2310 {N-NSM} tou 3588 {T-GSM} qeou 2316 {N-GSM} esthken 2476 5758\n",
"data/greektext-textus-receptus/parsed/2TI.UTR: {V-RAI-3S} ecwn 2192 5723 {V-PAP-NSM} thn 3588 {T-ASF} sfragida 4973\n",
"data/greektext-textus-receptus/parsed/2TI.UTR- {N-ASF} tauthn 3778 {D-ASF} egnw 1097 5627 {V-2AAI-3S} kuriov 2962\n",
"data/greektext-textus-receptus/parsed/2TI.UTR- {N-NSM} touv 3588 {T-APM} ontav 1510 5723 {V-PAP-APM} autou 846\n",
"data/greektext-textus-receptus/parsed/2TI.UTR- {P-GSM} kai 2532 {CONJ} aposthtw 868 5628 {V-2AAM-3S} apo 575 {PREP}\n",
"--\n",
"data/greektext-textus-receptus/parsed/RE.UTR- 5740 {V-PNP-GSM} epi 1909 {PREP} tou 3588 {T-GSM} qronou 2362\n",
"data/greektext-textus-receptus/parsed/RE.UTR- {N-GSM} biblion 975 {N-ASN} gegrammenon 1125 5772 {V-RPP-ASN} eswqen\n",
"data/greektext-textus-receptus/parsed/RE.UTR- 2081 {ADV} kai 2532 {CONJ} opisqen 3693 {ADV} katesfragismenon 2696\n",
"data/greektext-textus-receptus/parsed/RE.UTR: 5772 {V-RPP-ASN} sfragisin 4973 {N-DPF} epta 2033 {A-NUI}\n",
"data/greektext-textus-receptus/parsed/RE.UTR-5:2 kai 2532 {CONJ} eidon 3708 5627 {V-2AAI-1S} aggelon 32 {N-ASM}\n",
"data/greektext-textus-receptus/parsed/RE.UTR- iscuron 2478 {A-ASM} khrussonta 2784 5723 {V-PAP-ASM} fwnh 5456\n",
"data/greektext-textus-receptus/parsed/RE.UTR- {N-DSF} megalh 3173 {A-DSF} tiv 5101 {I-NSM} estin 1510 5719\n",
"data/greektext-textus-receptus/parsed/RE.UTR- {V-PAI-3S} axiov 514 {A-NSM} anoixai 455 5658 {V-AAN} to 3588\n",
"data/greektext-textus-receptus/parsed/RE.UTR- {T-ASN} biblion 975 {N-ASN} kai 2532 {CONJ} lusai 3089 5658 {V-AAN}\n",
"data/greektext-textus-receptus/parsed/RE.UTR: tav 3588 {T-APF} sfragidav 4973 {N-APF} autou 846 {P-GSN}\n",
"data/greektext-textus-receptus/parsed/RE.UTR-5:3 kai 2532 {CONJ} oudeiv 3762 {A-NSM-N} hdunato 1410 5711\n",
"data/greektext-textus-receptus/parsed/RE.UTR- {V-INI-3S-ATT} en 1722 {PREP} tw 3588 {T-DSM} ouranw 3772 {N-DSM}\n",
"data/greektext-textus-receptus/parsed/RE.UTR- oude 3761 {CONJ-N} epi 1909 {PREP} thv 3588 {T-GSF} ghv 1093 {N-GSF}\n",
"--\n",
"data/greektext-textus-receptus/parsed/RE.UTR- 3588 {T-GSF} fulhv 5443 {N-GSF} iouda 2448 {N-GSM} h 3588 {T-NSF}\n",
"data/greektext-textus-receptus/parsed/RE.UTR- riza 4491 {N-NSF} dabid 1138 {N-PRI} anoixai 455 5658 {V-AAN} to\n",
"data/greektext-textus-receptus/parsed/RE.UTR- 3588 {T-ASN} biblion 975 {N-ASN} kai 2532 {CONJ} lusai 3089 5658\n",
"data/greektext-textus-receptus/parsed/RE.UTR: {V-AAN} tav 3588 {T-APF} epta 2033 {A-NUI} sfragidav 4973 {N-APF}\n",
"data/greektext-textus-receptus/parsed/RE.UTR- autou 846 {P-GSN}\n",
"data/greektext-textus-receptus/parsed/RE.UTR-5:6 kai 2532 {CONJ} eidon 3708 5627 {V-2AAI-1S} kai 2532 {CONJ} idou\n",
"data/greektext-textus-receptus/parsed/RE.UTR- 3708 5640 {V-2AMM-2S} en 1722 {PREP} mesw 3319 {A-DSN} tou 3588\n",
"--\n",
"data/greektext-textus-receptus/parsed/RE.UTR- kainhn 2537 {A-ASF} legontev 3004 5723 {V-PAP-NPM} axiov 514 {A-NSM}\n",
"data/greektext-textus-receptus/parsed/RE.UTR- ei 1510 5719 {V-PAI-2S} labein 2983 5629 {V-2AAN} to 3588 {T-ASN}\n",
"data/greektext-textus-receptus/parsed/RE.UTR- biblion 975 {N-ASN} kai 2532 {CONJ} anoixai 455 5658 {V-AAN} tav\n",
"data/greektext-textus-receptus/parsed/RE.UTR: 3588 {T-APF} sfragidav 4973 {N-APF} autou 846 {P-GSN} oti 3754\n",
"data/greektext-textus-receptus/parsed/RE.UTR- {CONJ} esfaghv 4969 5648 {V-2API-2S} kai 2532 {CONJ} hgorasav 59\n",
"data/greektext-textus-receptus/parsed/RE.UTR- 5656 {V-AAI-2S} tw 3588 {T-DSM} qew 2316 {N-DSM} hmav 1473 {P-1AP}\n",
"data/greektext-textus-receptus/parsed/RE.UTR- en 1722 {PREP} tw 3588 {T-DSN} aimati 129 {N-DSN} sou 4771 {P-2GS}\n",
"--\n",
"data/greektext-textus-receptus/parsed/RE.UTR- 3588 {T-APM} aiwnav 165 {N-APM} twn 3588 {T-GPM} aiwnwn 165 {N-GPM}\n",
"data/greektext-textus-receptus/parsed/RE.UTR-6:1 kai 2532 {CONJ} eidon 3708 5627 {V-2AAI-1S} ote 3753 {ADV}\n",
"data/greektext-textus-receptus/parsed/RE.UTR- hnoixen 455 5656 {V-AAI-3S} to 3588 {T-NSN} arnion 721 {N-NSN} mian\n",
"data/greektext-textus-receptus/parsed/RE.UTR: 1520 {A-ASF} ek 1537 {PREP} twn 3588 {T-GPF} sfragidwn 4973 {N-GPF}\n",
"data/greektext-textus-receptus/parsed/RE.UTR- kai 2532 {CONJ} hkousa 191 5656 {V-AAI-1S} enov 1520 {A-GSN} ek 1537\n",
"data/greektext-textus-receptus/parsed/RE.UTR- {PREP} twn 3588 {T-GPN} tessarwn 5064 {A-GPN} zwwn 2226 {N-GPN}\n",
"data/greektext-textus-receptus/parsed/RE.UTR- legontov 3004 5723 {V-PAP-GSN} wv 5613 {ADV} fwnhv 5456 {N-GSF}\n",
"--\n",
"data/greektext-textus-receptus/parsed/RE.UTR- nikwn 3528 5723 {V-PAP-NSM} kai 2532 {CONJ} ina 2443 {CONJ} nikhsh\n",
"data/greektext-textus-receptus/parsed/RE.UTR- 3528 5661 {V-AAS-3S}\n",
"data/greektext-textus-receptus/parsed/RE.UTR-6:3 kai 2532 {CONJ} ote 3753 {ADV} hnoixen 455 5656 {V-AAI-3S} thn\n",
"data/greektext-textus-receptus/parsed/RE.UTR: 3588 {T-ASF} deuteran 1208 {A-ASF} sfragida 4973 {N-ASF} hkousa 191\n",
"data/greektext-textus-receptus/parsed/RE.UTR- 5656 {V-AAI-1S} tou 3588 {T-GSN} deuterou 1208 {A-GSN} zwou 2226\n",
"data/greektext-textus-receptus/parsed/RE.UTR- {N-GSN} legontov 3004 5723 {V-PAP-GSN} ercou 2064 5737 {V-PNM-2S}\n",
"data/greektext-textus-receptus/parsed/RE.UTR- kai 2532 {CONJ} blepe 991 5720 {V-PAM-2S}\n",
"--\n",
"data/greektext-textus-receptus/parsed/RE.UTR- edoqh 1325 5681 {V-API-3S} autw 846 {P-DSM} macaira 3162 {N-NSF}\n",
"data/greektext-textus-receptus/parsed/RE.UTR- megalh 3173 {A-NSF}\n",
"data/greektext-textus-receptus/parsed/RE.UTR-6:5 kai 2532 {CONJ} ote 3753 {ADV} hnoixen 455 5656 {V-AAI-3S} thn\n",
"data/greektext-textus-receptus/parsed/RE.UTR: 3588 {T-ASF} trithn 5154 {A-ASF} sfragida 4973 {N-ASF} hkousa 191\n",
"data/greektext-textus-receptus/parsed/RE.UTR- 5656 {V-AAI-1S} tou 3588 {T-GSN} tritou 5154 {A-GSN} zwou 2226\n",
"data/greektext-textus-receptus/parsed/RE.UTR- {N-GSN} legontov 3004 5723 {V-PAP-GSN} ercou 2064 5737 {V-PNM-2S}\n",
"data/greektext-textus-receptus/parsed/RE.UTR- kai 2532 {CONJ} blepe 991 5720 {V-PAM-2S} kai 2532 {CONJ} eidon 3708\n",
"--\n",
"data/greektext-textus-receptus/parsed/RE.UTR- {CONJ} ton 3588 {T-ASM} oinon 3631 {N-ASM} mh 3361 {PRT-N} adikhshv\n",
"data/greektext-textus-receptus/parsed/RE.UTR- 91 5661 {V-AAS-2S}\n",
"data/greektext-textus-receptus/parsed/RE.UTR-6:7 kai 2532 {CONJ} ote 3753 {ADV} hnoixen 455 5656 {V-AAI-3S} thn\n",
"data/greektext-textus-receptus/parsed/RE.UTR: 3588 {T-ASF} sfragida 4973 {N-ASF} thn 3588 {T-ASF} tetarthn 5067\n",
"data/greektext-textus-receptus/parsed/RE.UTR- {A-ASF} hkousa 191 5656 {V-AAI-1S} fwnhn 5456 {N-ASF} tou 3588\n",
"data/greektext-textus-receptus/parsed/RE.UTR- {T-GSN} tetartou 5067 {A-GSN} zwou 2226 {N-GSN} legousan 3004 5723\n",
"data/greektext-textus-receptus/parsed/RE.UTR- {V-PAP-ASF} ercou 2064 5737 {V-PNM-2S} kai 2532 {CONJ} blepe 991\n",
"--\n",
"data/greektext-textus-receptus/parsed/RE.UTR- 2288 {N-DSM} kai 2532 {CONJ} upo 5259 {PREP} twn 3588 {T-GPN} qhriwn\n",
"data/greektext-textus-receptus/parsed/RE.UTR- 2342 {N-GPN} thv 3588 {T-GSF} ghv 1093 {N-GSF}\n",
"data/greektext-textus-receptus/parsed/RE.UTR-6:9 kai 2532 {CONJ} ote 3753 {ADV} hnoixen 455 5656 {V-AAI-3S} thn\n",
"data/greektext-textus-receptus/parsed/RE.UTR: 3588 {T-ASF} pempthn 3991 {A-ASF} sfragida 4973 {N-ASF} eidon 3708\n",
"data/greektext-textus-receptus/parsed/RE.UTR- 5627 {V-2AAI-1S} upokatw 5270 {ADV} tou 3588 {T-GSN} qusiasthriou\n",
"data/greektext-textus-receptus/parsed/RE.UTR- 2379 {N-GSN} tav 3588 {T-APF} yucav 5590 {N-APF} twn 3588 {T-GPM}\n",
"data/greektext-textus-receptus/parsed/RE.UTR- esfagmenwn 4969 5772 {V-RPP-GPM} dia 1223 {PREP} ton 3588 {T-ASM}\n",
"--\n",
"data/greektext-textus-receptus/parsed/RE.UTR- {V-PAP-NPM} apokteinesqai 615 5745 {V-PPN} wv 5613 {ADV} kai 2532\n",
"data/greektext-textus-receptus/parsed/RE.UTR- {CONJ} autoi 846 {P-NPM}\n",
"data/greektext-textus-receptus/parsed/RE.UTR-6:12 kai 2532 {CONJ} eidon 3708 5627 {V-2AAI-1S} ote 3753 {ADV}\n",
"data/greektext-textus-receptus/parsed/RE.UTR: hnoixen 455 5656 {V-AAI-3S} thn 3588 {T-ASF} sfragida 4973 {N-ASF}\n",
"data/greektext-textus-receptus/parsed/RE.UTR- thn 3588 {T-ASF} ekthn 1623 {A-ASF} kai 2532 {CONJ} idou 3708 5640\n",
"data/greektext-textus-receptus/parsed/RE.UTR- {V-2AMM-2S} seismov 4578 {N-NSM} megav 3173 {A-NSM} egeneto 1096\n",
"data/greektext-textus-receptus/parsed/RE.UTR- 5633 {V-2ADI-3S} kai 2532 {CONJ} o 3588 {T-NSM} hliov 2246 {N-NSM}\n",
"--\n",
"data/greektext-textus-receptus/parsed/RE.UTR-7:2 kai 2532 {CONJ} eidon 3708 5627 {V-2AAI-1S} allon 243 {A-ASM}\n",
"data/greektext-textus-receptus/parsed/RE.UTR- aggelon 32 {N-ASM} | anabanta 305 5631 {V-2AAP-ASM} | anabainonta\n",
"data/greektext-textus-receptus/parsed/RE.UTR- 305 5723 {V-PAP-ASM} | apo 575 {PREP} anatolhv 395 {N-GSF} hliou\n",
"data/greektext-textus-receptus/parsed/RE.UTR: 2246 {N-GSM} econta 2192 5723 {V-PAP-ASM} sfragida 4973 {N-ASF} qeou\n",
"data/greektext-textus-receptus/parsed/RE.UTR- 2316 {N-GSM} zwntov 2198 5723 {V-PAP-GSM} kai 2532 {CONJ} ekraxen\n",
"data/greektext-textus-receptus/parsed/RE.UTR- 2896 5656 {V-AAI-3S} fwnh 5456 {N-DSF} megalh 3173 {A-DSF} toiv 3588\n",
"data/greektext-textus-receptus/parsed/RE.UTR- {T-DPM} tessarsin 5064 {A-DPM} aggeloiv 32 {N-DPM} oiv 3739 {R-DPM}\n",
"--\n",
"data/greektext-textus-receptus/parsed/RE.UTR- {T-NSM} qeov 2316 {N-NSM} pan 3956 {A-ASN} dakruon 1144 {N-ASN} apo\n",
"data/greektext-textus-receptus/parsed/RE.UTR- 575 {PREP} twn 3588 {T-GPM} ofqalmwn 3788 {N-GPM} autwn 846 {P-GPM}\n",
"data/greektext-textus-receptus/parsed/RE.UTR-8:1 kai 2532 {CONJ} ote 3753 {ADV} hnoixen 455 5656 {V-AAI-3S} thn\n",
"data/greektext-textus-receptus/parsed/RE.UTR: 3588 {T-ASF} sfragida 4973 {N-ASF} thn 3588 {T-ASF} ebdomhn 1442\n",
"data/greektext-textus-receptus/parsed/RE.UTR- {A-ASF} egeneto 1096 5633 {V-2ADI-3S} sigh 4602 {N-NSF} en 1722\n",
"data/greektext-textus-receptus/parsed/RE.UTR- {PREP} tw 3588 {T-DSM} ouranw 3772 {N-DSM} wv 5613 {ADV} hmiwrion\n",
"data/greektext-textus-receptus/parsed/RE.UTR- 2256 {N-ASN}\n",
"--\n",
"data/greektext-textus-receptus/parsed/RE.UTR- {CONJ-N} pan 3956 {A-ASN} dendron 1186 {N-ASN} ei 1487 {COND} mh\n",
"data/greektext-textus-receptus/parsed/RE.UTR- 3361 {PRT-N} touv 3588 {T-APM} anqrwpouv 444 {N-APM} monouv 3441\n",
"data/greektext-textus-receptus/parsed/RE.UTR- {A-APM} oitinev 3748 {R-NPM} ouk 3756 {PRT-N} ecousin 2192 5719\n",
"data/greektext-textus-receptus/parsed/RE.UTR: {V-PAI-3P} thn 3588 {T-ASF} sfragida 4973 {N-ASF} tou 3588 {T-GSM}\n",
"data/greektext-textus-receptus/parsed/RE.UTR- qeou 2316 {N-GSM} epi 1909 {PREP} twn 3588 {T-GPN} metwpwn 3359\n",
"data/greektext-textus-receptus/parsed/RE.UTR- {N-GPN} autwn 846 {P-GPM}\n",
"data/greektext-textus-receptus/parsed/RE.UTR-9:5 kai 2532 {CONJ} edoqh 1325 5681 {V-API-3S} autaiv 846 {P-DPF} ina\n",
"--\n",
"data/greektext-textus-receptus/parsed/RO.UTR- 1722 {PREP} peritomh 4061 {N-DSF} all 235 {CONJ} en 1722 {PREP}\n",
"data/greektext-textus-receptus/parsed/RO.UTR- akrobustia 203 {N-DSF}\n",
"data/greektext-textus-receptus/parsed/RO.UTR-4:11 kai 2532 {CONJ} shmeion 4592 {N-ASN} elaben 2983 5627\n",
"data/greektext-textus-receptus/parsed/RO.UTR: {V-2AAI-3S} peritomhv 4061 {N-GSF} sfragida 4973 {N-ASF} thv 3588\n",
"data/greektext-textus-receptus/parsed/RO.UTR- {T-GSF} dikaiosunhv 1343 {N-GSF} thv 3588 {T-GSF} pistewv 4102\n",
"data/greektext-textus-receptus/parsed/RO.UTR- {N-GSF} thv 3588 {T-GSF} en 1722 {PREP} th 3588 {T-DSF} akrobustia\n",
"data/greektext-textus-receptus/parsed/RO.UTR- 203 {N-DSF} eiv 1519 {PREP} to 3588 {T-ASN} einai 1510 5721 {V-PAN}\n"
"env: STRONG_ID=3466\n",
"1CO 2:7 , 1CO 4:1 , 1CO 13:2 , 1CO 14:2 , 1TI 3:16 , COL 1:27 , COL 2:2 , COL 4:3 , EPH 1:9 , EPH 3:3 , EPH 3:4 , EPH 3:9 , EPH 6:19 , LU 8:10 , MR 4:11 , MT 13:11 , RE 10:7 , RE 17:5 , RE 17:7 , RO 11:25 , RO 16:25 \r\n"
]
}
],
"source": [
"# Example: Seal: sfragij / http://www.godrules.net/library/strongs2b/gre4973.htm \n",
"%set_env STRONG_ID=4973 \n",
"!grep -C3 \" ${STRONG_ID}\" data/greektext-textus-receptus/parsed/*"
"%set_env STRONG_ID=3466\n",
"# !grep -C3 \" ${STRONG_ID}\" data/greektext-textus-receptus/parsed/*\n",
"!grep \" ${STRONG_ID}\" output.txt | cut -d\\| -f1 | awk -v RS='' '{gsub(\"\\n\", \", \"); print}' "
]
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 36,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"13 data/greektext-textus-receptus/parsed/RE.UTR\r\n",
"1 data/greektext-textus-receptus/parsed/RO.UTR\r\n",
"1 data/greektext-textus-receptus/parsed/2TI.UTR\r\n",
"1 data/greektext-textus-receptus/parsed/1CO.UTR\r\n"
"6 data/greektext-textus-receptus/parsed/EPH.UTR\r\n",
"5 data/greektext-textus-receptus/parsed/1CO.UTR\r\n",
"4 data/greektext-textus-receptus/parsed/RE.UTR\r\n",
"4 data/greektext-textus-receptus/parsed/COL.UTR\r\n",
"2 data/greektext-textus-receptus/parsed/RO.UTR\r\n",
"2 data/greektext-textus-receptus/parsed/1TI.UTR\r\n",
"1 data/greektext-textus-receptus/parsed/MT.UTR\r\n",
"1 data/greektext-textus-receptus/parsed/MR.UTR\r\n",
"1 data/greektext-textus-receptus/parsed/LU.UTR\r\n",
"1 data/greektext-textus-receptus/parsed/2TH.UTR\r\n"
]
}
],
"source": [
"!grep -c \" ${STRONG_ID}\" data/greektext-textus-receptus/parsed/* | grep -v \":0\" | awk 'BEGIN { FS = \":\" } ; { print $2, $1 }' | sort -hr "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit 6080289

Please sign in to comment.