NAF 2025 — Hierarchical structure
Click on a level to display its description.
The Nomenclature of French Activities 2025 (NAF 2025) is France’s official classification of economic activities, aligned with NACE Rev. 2.1. Every business unit is assigned an APE code from this nomenclature, which underpins official economic statistics across Europe. It organises all activities into five nested hierarchical levels; a full interactive breakdown is available in the appendix.
The training dataset was built by relabelling INSEE’s previous 2.7-million-observation corpus from NACE 2.0 to NACE 2.1. While 75% of codes map one-to-one and were converted by direct table lookup, the remaining 25% are multivocal (one old code → several candidates) and, due to their overrepresentation in practice, account for ~52% of observations. These required reading the activity description to resolve. A Rule-Based Augmented Generation (RBAG) pipeline was developed for this: given a description and its legacy NACE 2.0 code, the correspondence table retrieves the 2–5 candidate NACE 2.1 codes, their official explanatory notes are injected into a prompt, and a LLM picks the best match. Evaluated on a 30,000-observation benchmark annotated by ~25 experts (strict inter-annotator agreement: 62%), an ensemble of three LLMs reaches 78% accuracy — with much of the gap attributable to genuine ambiguity rather than model errors. The final corpus contains ~2.3 million NAF 2025 labels, though only ~1.3 million have an already-preprocessed text description usable for training — plenty on its own, training on the full 2.3 million wouldn’t have been practical anyway. More details in the codif-ape-nace-revision repository.
NAF 2025 — Hierarchical structure
Click on a level to display its description.
Two independent modelling approaches are covered, each on its own page: