File size: 3,596 Bytes
5e0532d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
��--- Starting Bible Ingestion ---

Loading 'odunola/bible-reference-sentence-pair' (streaming)...

Fetching first 200 items...

Processing 200 verses...

debug: first item: {'Unnamed: 0': 0, 'headers': 'Adam, Seth, Enosh,', 'references': 'All the tribes came from a common ancestor, Jacob, and through him from Abraham. Abraham was the true father of the nation and a key figure in GodRs purposes for the human race (cf. Genesis 12:1-3; Genesis 13:14-17; Matthew 1:2-16).'}

debug: Using Ref Key: reference, Text Key: sentence

python : Traceback (most recent call 

last):

At line:1 char:1

+ python scripts/ingest_bible.py > 

logs/ingest_debug.txt 2>&1

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpeci 

   fied: (Traceback (most recent call  

   last)::String) [], RemoteExceptio   

 n

    + FullyQualifiedErrorId : NativeCo 

   mmandError

 

  File "C:\Users\max\Desktop\soap\ORA\s

cripts\ingest_bible.py", line 83, in 

<module>

    asyncio.run(ingest())

    ~~~~~~~~~~~^^^^^^^^^^

  File "C:\Users\max\AppData\Local\Prog

rams\Python\Python313\Lib\asyncio\runne

rs.py", line 195, in run

    return runner.run(main)

           ~~~~~~~~~~^^^^^^

  File "C:\Users\max\AppData\Local\Prog

rams\Python\Python313\Lib\asyncio\runne

rs.py", line 118, in run

    return 

self._loop.run_until_complete(task)

           

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^

  File "C:\Users\max\AppData\Local\Prog

rams\Python\Python313\Lib\asyncio\base_

events.py", line 725, in 

run_until_complete

    return future.result()

           ~~~~~~~~~~~~~^^

  File "C:\Users\max\Desktop\soap\ORA\s

cripts\ingest_bible.py", line 50, in 

ingest

    first_text = verses[0][text_key]

                 ~~~~~~~~~^^^^^^^^^^

KeyError: 'sentence'