{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "8a13cfae", "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "5837401d683f4cda99521aaad9baa6f6", "version_major": 2, "version_minor": 0 }, "text/plain": [ "sermons: 0%| | 0/46 [00:00\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
churchsourcetextsentencesprocessing_timetranscription_errorsduration(s)
1.1all-souls_org04.02.22ILeftMyHeartInSF.mp3Our reading this morning. Is from the same scr...177327.6261528.2
1.2all-souls_org04.02.15AfraidOfTheDark.mp3Mornings readings are. 2 and brief. The first ...123139.66697.2
1.3all-souls_org03.01.26AwesomeMeetsTheFamiliar.mp3It is a great joy and privilege for me to be h...269323.851443.6
1.4all-souls_org04.02.11WhatGoodIsGod.mp3I've told many of you how excited i am to have...125367.631387.1
1.5all-souls_org04.02.29ConspiracyAgainstVu.mp3Some of you may have thought that. Service wou...198280.871248.1
........................
45.470uufvb_org2012Mar18Sermon32.mp330 years old. Person. Usefulness. By the time ...302209.84913.2
45.471uufvb_org2015Feb22Sermon128.mp3Good morning everyone is glad to be 80° today ...632450.8201885.9
45.472uufvb_org2011Jul24Sermon32.mp34 years ago. As my partner charlie and i were ...405295.851386.5
45.473uufvb_org2015Feb15Sermon32.mp3Good morning. Welcome to the unitarian univers...472345.6181592.7
45.474uufvb_org2010Dec12Sermon128.mp3I shared the words of bill mckibben with joyce...463225.54111339.5
\n", "

6900 rows × 7 columns

\n", "" ], "text/plain": [ " church source \\\n", "1.1 all-souls_org 04.02.22ILeftMyHeartInSF.mp3 \n", "1.2 all-souls_org 04.02.15AfraidOfTheDark.mp3 \n", "1.3 all-souls_org 03.01.26AwesomeMeetsTheFamiliar.mp3 \n", "1.4 all-souls_org 04.02.11WhatGoodIsGod.mp3 \n", "1.5 all-souls_org 04.02.29ConspiracyAgainstVu.mp3 \n", "... ... ... \n", "45.470 uufvb_org 2012Mar18Sermon32.mp3 \n", "45.471 uufvb_org 2015Feb22Sermon128.mp3 \n", "45.472 uufvb_org 2011Jul24Sermon32.mp3 \n", "45.473 uufvb_org 2015Feb15Sermon32.mp3 \n", "45.474 uufvb_org 2010Dec12Sermon128.mp3 \n", "\n", " text sentences \\\n", "1.1 Our reading this morning. Is from the same scr... 177 \n", "1.2 Mornings readings are. 2 and brief. The first ... 123 \n", "1.3 It is a great joy and privilege for me to be h... 269 \n", "1.4 I've told many of you how excited i am to have... 125 \n", "1.5 Some of you may have thought that. Service wou... 198 \n", "... ... ... \n", "45.470 30 years old. Person. Usefulness. By the time ... 302 \n", "45.471 Good morning everyone is glad to be 80° today ... 632 \n", "45.472 4 years ago. As my partner charlie and i were ... 405 \n", "45.473 Good morning. Welcome to the unitarian univers... 472 \n", "45.474 I shared the words of bill mckibben with joyce... 463 \n", "\n", " processing_time transcription_errors duration(s) \n", "1.1 327.6 26 1528.2 \n", "1.2 139.6 6 697.2 \n", "1.3 323.8 5 1443.6 \n", "1.4 367.6 3 1387.1 \n", "1.5 280.8 7 1248.1 \n", "... ... ... ... \n", "45.470 209.8 4 913.2 \n", "45.471 450.8 20 1885.9 \n", "45.472 295.8 5 1386.5 \n", "45.473 345.6 18 1592.7 \n", "45.474 225.5 411 1339.5 \n", "\n", "[6900 rows x 7 columns]" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# rows are (church, MP3): cols are text, etc.\n", "vals = []\n", "ids = []\n", "for idx,item in enumerate(data):\n", " _id = 1\n", " for mp3,val in item.items():\n", " vals.append(val) # dict with text, time, sent, errors, dur, file(name)\n", " ids.append(f\"{idx+1}.{_id}\")\n", " _id += 1\n", "df = pd.DataFrame(data=vals, columns=['church', 'file', 'text', 'sentences', 'processing_time', 'errors', 'duration'], index=ids)\n", "df.duration = df.duration.round(1)\n", "df = df.rename(columns={'duration': 'duration(s)', 'file':'source', 'errors':'transcription_errors'})\n", "df.to_csv(\"unitarian-universalist-church-sermons-n=6900b.csv\")\n", "df" ] }, { "cell_type": "code", "execution_count": null, "id": "fd50088f", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.9.12" } }, "nbformat": 4, "nbformat_minor": 5 }