Restructured data/ into analysis/

This commit is contained in:
Nathan Schneider
2025-10-28 11:04:06 -06:00
parent 9f46b3a2ac
commit d2da0425c6
10 changed files with 1821 additions and 13 deletions

8
analysis/chunk.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
prompt="Return csv-formatted data (with no markdown wrapper) that consists of a list of protocols discussed or referred to in the attached text. Protocols are defined extremely broadly as 'patterns of interaction,' and may be of a nontechnical nature. Protocols should be as specific as possible, such as 'Sacrament of Reconciliation' rather than 'Religious Protocols.' The first column should provide a brief descriptor of the protocol, and the second column should describe it in a substantial paragraph of 3-5 sentences, encapsulated in quotation marks to avoid breaking on commas. Be sure to paraphrase rather than quoting directly from the source text."
for file in "$@"; do
llm -m gemma3:12b -f $file "$prompt" >> output.csv
echo "Completed $file"
done