CorpusReader

Reads the corpus file written by CorpusBuild.assemble, one issue at a time.

Functions

Link copied to clipboard

Issues of lines in file order: the first line and the closing line are framing.

Link copied to clipboard
Link copied to clipboard
fun <T> use(path: Path, block: (Sequence<CorpusIssue>) -> T): T

Runs block over the issues of a .json or .json.zst file (read with zstd -dc).