/** * The states whose OpenAddresses files the training feed reads, left out of the board. */ export declare const DE_TRAINING_STATES: ReadonlySet; /** * The board's classes, in the order the board file lists them. */ export declare const DE_BOARD_CLASSES: readonly ["admin-street-homonym", "alnum-housenumber", "bare-locality", "bare-street", "date-name", "street-housenumber", "street-particle"]; export type DEBoardClass = (typeof DE_BOARD_CLASSES)[number]; /** * The painter's word fold (`painterFold` in the gazetteer's evidence lexicons), which this * package cannot import because the gazetteer depends on it: whitespace tokens with their * leading and trailing non-word characters removed, lower-cased, empty tokens dropped. */ export declare function foldBoardWords(surface: string): string[]; /** * A surface's board key: NFC, folded, the words joined by one space. */ export declare function normalizeBoardSurface(text: string): string; /** * The class a street takes, checked in order: date, particle, lexicon homonym, then bare street. */ export declare function streetClass(street: string, lexicon: ReadonlySet): DEBoardClass; /** * The class a street with a house number takes. */ export declare const housenumberClass: (number: string) => DEBoardClass; /** * One board row before its class, source and id. */ export type DEBoardRow = { input: string; expect_no_street: true; surface: string; } | { input: string; expect: { street: string[]; }; surface: string; }; /** * Options for {@linkcode buildDEFragmentBoard}. */ export interface DEFragmentBoardOptions { parquet: string; lexicon: string; out: string; perClass: number; seed: number; } /** * Writes the board JSONL at `out` and the sorted reserved surfaces beside it as * `.surfaces.txt`, and returns each class's row count. * * A class short of `perClass` is written with the rows it has. * * @throws When the parquet file or the lexicon is missing, naming it. */ export declare function buildDEFragmentBoard(options: DEFragmentBoardOptions): Promise>; //# sourceMappingURL=fragment-board.d.ts.map