import { type PathBuilderLike } from "path-ts"; import { type CJKSplitReport, type CoverageStats } from "#cjk/builder"; /** * The hold-out bucket from which a 시군구 is a board unit: buckets 90 to 99 of 100. */ export declare const KR_BOARD_BUCKET_MIN = 90; /** * The monthly 주소DB edition the corpus reads: the 2026-08 snapshot. */ export declare function jusoZipPath(): import("path-ts").PathBuilder; /** * The directory of permit-registry CSVs, a current source. */ export declare function permitDirectoryPath(): import("path-ts").PathBuilder; /** * Planar EPSG:5174 points projected to EPSG:4326 by `gdaltransform`, each `null` * when it falls outside Korea. * * @throws When `gdaltransform` answers a different number of lines than it was given points. */ export declare function transformKRCoordinates(points: ReadonlyArray): Array; /** * Options for {@linkcode buildKRCorpus}, corresponding to the Python assembler's flags. */ export interface KRCorpusOptions { jusoZip: PathBuilderLike; permitDir: PathBuilderLike; outDir: PathBuilderLike; registryOutDir: PathBuilderLike; trainRows: number; valRows: number; boardRows: number; registryRows: number; registryValFraction: number; registryBoardRows: number; boardBucketMin: number; rowsPerPart: number; statsSamplePerPart: number; countryFraction: number; maxFieldChars: number; maxRowsPerRegion?: number; /** * The permit category files to read. * * @defaultValue `*.csv` */ permitGlob?: string; seed: number; force: boolean; /** * Projects permit points. * * Tests pass a stub, because `gdaltransform` is a host binary. * * @defaultValue {@linkcode transformKRCoordinates} */ transform?: typeof transformKRCoordinates; } /** * The defaults of the Python assembler's flags. */ export declare const KR_CORPUS_DEFAULTS: { readonly trainRows: 2000000; readonly valRows: 20000; readonly boardRows: 20000; readonly registryRows: 600000; readonly registryValFraction: 0.02; readonly registryBoardRows: 20000; readonly boardBucketMin: 90; readonly rowsPerPart: 250000; readonly statsSamplePerPart: 50000; readonly countryFraction: 0.05; readonly maxFieldChars: 64; readonly seed: 42; }; /** * The KR registry corpus's build report. * `build-report.json` serializes this interface in key order. */ export interface KRRegistryReport { alignment_census: { per_form: ReadonlyMap; per_category: ReadonlyMap>; }; pool: { aligned: number; held_out: number; unaligned: number; }; registers: ReadonlyMap; splits: ReadonlyMap; board_rows: number; char_vocab_size: number; } /** * The KR label corpus's build report. * `build-report.json` serializes this interface in key order. */ export interface KRCorpusReport { seed: number; juso_zip: string; permit_dir: string; label_set: string; source: string; registry_source: string; eligible_rows_scanned: number; dropped_at_source: ReadonlyMap; per_region_cap: number; regions_train: number; board_bucket_min: number; board_sigungu: number; board_rows: number; board_rows_without_centroid: number; registers: ReadonlyMap; char_vocab_size: number; centroid_units: number; fractions: { country: number; }; register_weights: ReadonlyMap; splits: ReadonlyMap; board_coverage: CoverageStats; registry: KRRegistryReport; } /** * Builds both corpora and returns the label corpus's build report. * Its `registry` field holds the registry report. * * @throws When an output directory holds files and `force` is unset, an input is missing, * the register drop rate exceeds 2%, or a board 시군구 reaches train or val. */ export declare function buildKRCorpus(options: KRCorpusOptions): Promise; //# sourceMappingURL=assemble.d.ts.map