/** * @file Reads corpus rows from a parquet file of either schema, mapped to the current columns. * * A corpus file written before #2741 holds `corpus_version` and `recipe` columns, and a current one holds * `augmentation`. The training configs still point at v0.7.x corpora, so a tool that reads rows reads both. * {@linkcode corpusRowFromParquet} in `#parquet/schema` is the one mapping, and this stream applies it, so no * caller branches on the schema. */ import type { PathBuilderLike } from "path-ts"; import { type ParquetRow } from "#parquet/schema"; import { type ParquetRowStreamOptions } from "#parquet/streams"; /** * Open a stream of corpus rows over a parquet file of either schema. * * A projection names current columns. * On an older file `augmentation` is read from `recipe` and `base_source_id`, * and `base_source_id` is dropped again unless the caller asked for it. * * Any other column the file lacks raises, as {@linkcode openParquetRowStream} does. */ export declare function openCorpusRowStream = ParquetRow>(path: PathBuilderLike, options?: ParquetRowStreamOptions): AsyncGenerator; //# sourceMappingURL=corpus-rows.d.ts.map