/** * @copyright Sister Software * @license AGPL-3.0 * @author Teffen Ellis, et al. * * `ban`: Base Adresse Nationale CSV adapter, street-level over eleven jurisdictions. * * Input is a semicolon-separated CSV dump from `adresse.data.gouv.fr`. The adapter reads `numero` * as `house_number`, `rep` as a repetition index appended to it, `nom_voie` as `street`, * `code_postal` as `postcode`, and `nom_commune` as `locality`. BAN carries no region column, so * region is left to the wof-postalcode and wof-admin cross-reference at corpus build time. * * IGN publishes one file per INSEE department beside the whole-country extract, and the overseas * departments carry the same 23-column header as the metropolitan rows. A row's country is therefore * derived from `code_insee` rather than asserted by the caller, which reads the same whether the * input is one department's file or an extract spanning several. * * The official BAN is dual-licensed under Licence Ouverte 2.0 and ODbL. * This adapter elects Licence Ouverte 2.0. Its terms permit training with attribution. * It records that license on every row. The model card must include BAN attribution. * * The adapter streams with `CSVSpliterator.fromAsync`, so a 25M-row file never sits in memory. It * honors `opts.limit` and `opts.signal`. `opts.country` is optional: when set it both rejects a * jurisdiction BAN does not publish and keeps only the rows of the one named. */ import { type CorpusAdapter } from "#types"; /** * Registry id for this adapter. * * Stamped into every row it emits, so a corpus record can be traced back to the dataset it came from. */ export declare const BAN_ADAPTER_ID = "ban"; export declare function createBanAdapter(): CorpusAdapter; /** * The configured adapter instance registered with the corpus builder. */ export declare const banAdapter: CorpusAdapter; //# sourceMappingURL=adapter.d.ts.map