schemacast.output¶
A cast on disk.
| File | Holds | Same bytes on replay |
|---|---|---|
mentions.jsonl |
one graflo RecordGraph per episode: what each text names |
yes |
graph.json |
the schema and what the records' keys identify (graflo GraFloOutput) |
yes |
staged.jsonl |
records not identified, with why, and the relations they hold | yes |
groundings.jsonl |
one grounding per record, relation and property | yes |
episodes.jsonl |
one result per episode | yes |
quarantine.jsonl |
what was left out, and unmapped items |
yes |
manifest.json |
versions, settings, counts and usage | no: usage differs |
write.json |
what was sent to the database, when one was given | — |
A pick (save_picks) writes picks.jsonl (one pick per staged record),
episodes.jsonl and manifest.json to its own directory.
With a database, staged.jsonl holds what is still staged after the lookups
there. manifest.json names the output_format_version. Version 6: a cast
is a record graph, quotes and spans in evidence; unmapped is outside it.
A record of a known entity (ref k1…) has evidence {"known": role,
"label": label} and no quote or span, and no grounding.
Attributes¶
QUARANTINE_FILE = 'quarantine.jsonl'
module-attribute
¶
STAGED_FILE = 'staged.jsonl'
module-attribute
¶
Classes¶
Functions:¶
save_cast(result, out_dir, *, write_report=None, resolution=None)
¶
Write result under out_dir (created if needed); returns the directory.
resolution, from a database write, replaces the offline one in
staged.jsonl.
Source code in schemacast/output.py
save_picks(result, out_dir)
¶
Write a pick run under out_dir (created if needed); returns the directory.
Source code in schemacast/output.py
staged_lines(resolution)
¶
Staged records (a record key), then held relations (a relation
key), one JSON object per line.