/ Модель

Характеристики

Контекст
514 токенов
Параметры
659 млн
Лицензия
CC BY-NC 4.0
Архитектура
xlm-roberta · dense
Базовая модель
xlm-roberta-large
Библиотека
transformers
Опубликована
20 окт 2026

ApplePie

Разметка токеновТекст → label4 профессии

ApplePie — дообученная XLM-RoBERTa large для обнаружения и разметки персональных данных в текстах на 21 европейском языке.

28скачиваний за 30 дней2лайкавеса обновлены20 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

ApplePie — открытая модель The General Data Corporation для обнаружения персональных данных в тексте на европейских языках. Она размечает фрагменты текста метками BIO и распознаёт 20 категорий данных, включая имена, адреса, номера национальных документов, банковские и платёжные реквизиты, телефоны и электронную почту. Модель основана на XLM-RoBERTa large, содержит 658,7 млн параметров, принимает последовательности длиной до 514 токенов и доступна в формате safetensors для Transformers.

Модель предназначена для поиска персональных данных в юридических текстах и деловых документах, например перед проверкой документов на соответствие требованиям приватности. В карточке заявлены результаты F1 0,846 на MAPA, 0,997 на GD Europe и 0,975 на Nemotron-PII; оценка проведена авторами по собственной методике, причём часть обучающих данных синтетическая. Поддерживаются 21 европейский язык. Лицензия CC-BY-NC-4.0 разрешает использование с указанием авторства, но некоммерческое.

Сценарии применения

  • Поиск персональных данных в юридических документах ЕС
  • Выявление национальных идентификаторов, например PESEL, BSN и DNI
  • Обнаружение имён, адресов и контактных данных в деловых документах
  • Предварительная проверка текстов перед передачей на анонимизацию
  • Разметка фрагментов с персональными данными для последующей проверки человеком

Ограничения

Обнаружение персональных данных само по себе не обеспечивает анонимизацию и не заменяет проверку человеком. Синтетические данные составляют значительную часть обучения; результаты на незнакомых форматах и в иных областях могут быть хуже, а языки вне заявленного списка не тестировались.

Для каких профессий подходит4

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

ApplePie: open PII detection model built for Europe

ApplePie

Open PII detection model built for Europe. By The General Data Corporation.

ApplePie finds personal data in text across European languages: names, addresses, national ID numbers, IBANs, payment cards, phone numbers, emails, dates of birth, health and customer identifiers, licence plates and more. It recognises the real formats of European identifiers, including French NIR and SIRET, German Steuer-ID, Spanish DNI and NIE, Italian codice fiscale, Dutch BSN, Polish PESEL, Portuguese NIF, Belgian national numbers and IBANs.

On real European legal text in 21 languages, ApplePie reaches 0.846 F1, against 0.546 for the strongest open detector we measured.

Results

F1 on held-out test sets. Higher is better.

BenchmarkWhat it isApplePieNVIDIA GLiNER-PIIMicrosoft PresidioGLiNER multi-PIIGretel GLiNER
MAPAReal EU legal text, 21 languages0.8460.5460.1660.4900.296
GD EuropeBusiness records, 9 EU countries0.9970.8760.6050.8530.525
Nemotron-PIINVIDIA, English0.9750.8300.7130.7490.448
Gretel PIIGretel, English0.9970.9050.7210.8400.826
TABCourt rulings, English0.7190.7090.7390.5940.418

Precision and recall for ApplePie:

BenchmarkRecallPrecisionF1
MAPA0.8130.8810.846
GD Europe0.9990.9950.997
Nemotron-PII0.9660.9840.975
Gretel PII0.9980.9950.997
TAB0.6040.8890.719

How these were measured

  • Each system is scored on the first 1,000 documents of each test split (all 127 for TAB). A personal data span counts as found when at least half of its characters are covered. This is our own scoring rule, not each benchmark's official metric.
  • Open models run at their default settings: GLiNER models at a 0.5 threshold, Presidio at 0.4. ApplePie runs at its default 0.5.
  • ApplePie was trained on the training splits of MAPA, Nemotron-PII, Gretel and GD Europe, and scored only on their held-out test splits. That gives it a home advantage on those four, as NVIDIA's model has on Nemotron-PII. ApplePie never saw TAB.
  • GD Europe is our own benchmark, generated by the same process as ApplePie's European training data, from separate templates. MAPA is the independent European test: real text, annotated by the EU-funded MAPA project.
  • No setting was tuned on any test set.

Usage

from transformers import pipeline

pii = pipeline("token-classification", model="generaldata/ApplePie", aggregation_strategy="simple")

for found in pii("Bonjour, je suis Marie Dubois, née le 03/08/1980. Mon IBAN est FR76 3000 6000 0112 3456 7890 189."):
    print(found["entity_group"], found["start"], found["end"], round(found["score"], 3))

Each result carries the label (entity_group), the character offsets (start, end), the matched text (word) and a confidence (score).

Texts longer than 512 tokens should be split into overlapping windows; the pipeline's stride argument does this.

Labels

ApplePie tags 20 kinds of personal data, in BIO format.

LabelCovers
person_nameFull names, first names, surnames
organizationCompanies and institutions
street_addressStreet addresses and postcodes
locationCities, regions, countries
coordinateGPS coordinates
dateDates and times
date_of_birthDates of birth
emailEmail addresses
phone_numberPhone and fax numbers
urlPersonal links and profiles
user_nameLogins and usernames
card_numberPayment card numbers and CVVs
bank_accountIBANs, account and routing numbers, SWIFT/BIC
national_idNational IDs, social security and tax numbers, passports, licences
secretPasswords, PINs, API keys, cookies
device_identifierIP and MAC addresses, device IDs
customer_idCustomer, contract and employee numbers
health_idMedical record, health insurance and biometric identifiers
vehicle_identifierLicence plates and VINs
traitAge, gender, occupation, nationality and other personal attributes

Training

  • Base model: XLM-RoBERTa large, multilingual.
  • Data:
    • Nemotron-PII training split (NVIDIA)
    • Gretel PII masking training split (Gretel)
    • MAPA training split: EU legal text in 21 languages
    • GD Europe, our own corpus of 17,950 business documents from France, Germany, Spain, Italy, the Netherlands, Portugal, Poland, Belgium, Ireland and the UK. The documents were written by an open model, Mistral Nemo, with placeholders for personal data. Each placeholder was then filled with values in that country's real format, so every label is exact and every identifier carries valid check digits.
  • Setup: one epoch, learning rate 2e-5, batch size 16, sequence length 512, bf16, on one NVIDIA A100.

Limitations

  • Detection is not anonymisation. Under the GDPR, pseudonymised data is still personal data; use ApplePie as one control among several, with human review for sensitive releases.
  • Much of the European training data is synthetic. Real documents in unfamiliar layouts or domains may score lower than the benchmarks above.
  • Context-dependent personal data, such as a rare job title that identifies one person, is harder to catch than structured identifiers. On TAB, a benchmark built around this, ApplePie is close to but below Presidio.
  • Languages outside those listed above are untested.

License

ApplePie is © 2026 The General Data Corporation and released under Creative Commons Attribution-NonCommercial 4.0 (CC BY-NC 4.0).

  • Non-commercial use (research, evaluation, personal projects) is free, with attribution: "ApplePie by The General Data Corporation".
  • Commercial use requires a commercial licence from The General Data Corporation. Contact us at generaldata.io.

See LICENSE for the full terms and third-party notices.

Citation

@misc{applepie2026,
  title        = {ApplePie: PII detection built for Europe},
  author       = {Allani, Louai and {The General Data Corporation}},
  year         = {2026},
  howpublished = {\url{https://huggingface.co/generaldata/ApplePie}}
}

Author

Louai Allani, The General Data Corporation.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers · token-classification

Можно запустить

Подбираем GPU…

Класс архитектуры
XLMRobertaForTokenClassification
Ревизия весов
b5032fd

0 моделей