Fourteen corpora split and classified: aesop, bierce, chekhov, holmes, keefe, lawson, lorimer, maupassant, nobody, plaintales, poe, torchy, wallingford and winesburg, each with its splitter and the hand-written groups and pages; catalogue v2 and v3; and the shared splitters gutenberg_chunks.py, se_split.py and se_build.py. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019rwKTmug58sEsJ72AuWsEi
7 lines
288 B
Python
7 lines
288 B
Python
"""python3 dump.py A B prints scenes A..B for reading (same as ../jacobs/dump.py)."""
|
|
import json, sys
|
|
c = json.load(open('chunks.json'))
|
|
a, b = int(sys.argv[1]), int(sys.argv[2])
|
|
for i in range(a, b + 1):
|
|
print(f'=== {i} (story {c[i]["story"]}, {c[i]["words"]}w)\n' + c[i]['text'])
|