/** * The corpus source of every probe row. */ export declare const JP_PROBE_SOURCE = "overture-jp"; /** * The probe corpus's columns: the CJK corpus columns without `register`. */ export declare const JP_PROBE_COLUMNS: (readonly [name: string, kind: import("#parquet/writers").ParquetColumnKind])[]; /** * One rendered probe row. */ export interface JPProbeRecord { raw: string; tokens: string[]; labels: string[]; span_starts: number[]; span_ends: number[]; span_tags: string[]; country: string; source: string; } /** * Renders the fields large to small, with a `〒NNN-NNNN ` lead when `postcode` is set. */ export declare function renderProbeRow(prefecture: string, municipality: string, street: string | null, number: string | null, postcode: string | null): JPProbeRecord; /** * One Overture-JP address as the reservoirs keep it. */ export interface JPProbeSource { pref: string; muni: string; street: string | null; number: string | null; lon: number | null; lat: number | null; } /** * Options for {@linkcode buildJPProbeCorpus}. */ export interface JPProbeOptions { parquet: string; kenAll: string; outDir: string; trainRows: number; valRows: number; boardRows: number; postcodeFraction: number; seed: number; } /** * The defaults the Python builder registered. */ export declare const JP_PROBE_DEFAULTS: { readonly trainRows: 200000; readonly valRows: 4000; readonly boardRows: 2000; readonly postcodeFraction: 0.3; readonly seed: 42; }; /** * Each prefecture's train row count, and the board's normalized municipalities. * * @throws When train misses a prefecture, or a board municipality also appears in train or val. */ export declare function checkStratification(train: readonly JPProbeSource[], val: readonly JPProbeSource[], board: readonly JPProbeSource[]): { prefectures: Map; boardMunicipalities: Set; }; /** * Writes the probe corpus's train and val parts, board, vocabulary and build report, and returns the report. * * @throws When an input is missing, a split holds an all-O row, or {@linkcode checkStratification} refuses. */ export declare function buildJPProbeCorpus(options: JPProbeOptions): Promise>; //# sourceMappingURL=probe.d.ts.map