/ Модель

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

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

seter-pii-he-ar

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

Модель Shoresh Labs на основе XLM-RoBERTa large находит имена и другие персональные данные в текстах на иврите, арабском и английском для последующего редактирования или маскирования.

293скачиваний за 30 дней4лайкавеса обновлены26 ноя 2026

Бенчмарки

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

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

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

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

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

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

Seter PII — Hebrew · Arabic · English — это модель классификации токенов от Shoresh Labs для обнаружения персональных данных в текстах на иврите, арабском и английском, в том числе в смешанных текстах. Модель основана на XLM-RoBERTa large, содержит 658,7 млн параметров и имеет контекст до 514 токенов. Она выдаёт метки для имён, адресов, телефонов, электронных адресов и номеров счетов.

Модель предназначена для локального обнаружения данных перед редактированием или маскированием в сообщениях, документах и записях. Особенно она нацелена на выявление имён на иврите и арабском, включая имена с приставками, титулами и арабскими куньями. По README, выпущенная версия v1.2 показала символьный F1 0,968 на отдельном наборе из 150 документов; результаты зависят от типа данных и декодера.

Это вспомогательный инструмент, а не гарантия анонимизации или соответствия требованиям законодательства. Модель может пропускать номера клиентов в таблицах и числа, записанные словами, а также ошибочно помечать некоторые даты, номера заказов и улицы. Города, организации и государственные учреждения сами по себе не размечаются. Лицензия MIT; инференс можно выполнять локально.

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

  • поиск имён в сообщениях на иврите и арабском
  • обнаружение телефонов и электронных адресов в обращениях
  • поиск адресов и номеров счетов в документах
  • предварительная разметка персональных данных перед маскированием переписки
  • локальное выявление персональных данных в кадровых и медицинских записях

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Seter PII — Hebrew · Arabic · English

Seter (סֵתֶר / سِتْر — "cover, concealment") is an open, MIT-licensed token-classification model that finds personal data in Hebrew, Arabic and English, including mixed-language text. It runs locally. Labels are private_person, private_address, private_phone, private_email, and account_number. This is the accuracy model in the Seter pair (v1.2, 559M), by Shoresh Labs. For laptops and CPU, use the fast model, seter-pii-he-ar-fast (v1.1.2). Try the in-browser demo.

Why

Free PII detectors are strong in English but miss most Hebrew and Arabic names — especially first names on their own, names with attached prefixes (ל/ו/ש), titles (עו"ד, د.) and Arabic kunyas (أبو …).

Key facts

Measured 2026-11-25 (Asia/Jerusalem). REDACT figures are typed character-level micro-F1 on the official split, evaluation only, default decoder.

  • License and deployment. MIT. Inference runs locally, on your machine or server.
  • Languages. Hebrew, Arabic and English, including mixed text.
  • REDACT, shipped large v1.2. Arabic .921. Standalone first-name recall@50%: Hebrew .879, Arabic .933, English .986.
  • 50-sentence set (lenient character F1): .998.
  • Decoder. Benchmark figures use the published decoder, seter_entities.py, which includes an account-number clean-up. An optional strict-ids preset masks only identity and financial numbers (see Decoder).
  • Laptop path. The companion fast v1.1.2 int8 ONNX model is the one to run on CPU (4 threads): 18 ms on a short sentence / 275 ms on a 1,500-character record, 603 MB RAM, 369 MB disk.

Results

Character-level detection, untyped. "Entities caught" = a gold entity overlapped by any prediction.

Test setSystemEntities caughtPerson chars caughtFalse-positive spans
hard1 — 43 hand-written messagesopenai/privacy-filter43%28%3
seter-pii-he-ar (v1.2)100%98%2
hard2 — 40 hand-written, written before training dataopenai/privacy-filter47%27%1
seter-pii-he-ar (v1.2)100%98%0

(The v1.0 card also listed a 300-record ai4privacy English check; it has not been re-measured since and is dropped.)

Held-out documents (new in v1.2)

150 documents (50 Hebrew, 50 Arabic, 50 English; 2,480 labelled spans; 672-1,819 characters each): support tickets, chat threads, emails, HR and medical notes, legal letters, logs, forms. They were written for this evaluation, independently of REDACT and of the training data generator, under Seter's own labelling policy. Text left unlabelled in this set is not personal data, so precision is meaningful here.

v1.1v1.2 (released weights)v1.2, mean of 3 training seedsv1.2 released weights, published decoder
Character F10.9450.9680.9620.972
Character precision0.9320.9620.9480.968
Character recall0.9600.9750.9770.975
Entities fully covered0.9170.9610.9610.961
Predicted spans that touch no labelled entity221117165100
F1 Hebrew / Arabic / English0.937 / 0.954 / 0.9440.969 / 0.973 / 0.9630.966 / 0.962 / 0.9600.971 / 0.974 / 0.969

The first three columns use the plain decoder; the last uses the published decoder with its account clean-up (see Decoder), which removes 17 stray account spans and loses no recall. Read this table with its limits in mind: the set is small; it was written and labelled by an AI model from a written policy and then proof-read in full by a second AI reviewer per language (3 label fixes in 2,480 spans, applied 11 Nov 2026; the figures above use the corrected labels and none moved by more than 0.001), not by a person; and the policy was written by the same author as the v1.2 training classes, so it favours them. The recall and coverage gains appear in all three seeds; the precision gain does not (one seed has none), and the Arabic gain is small on average (+0.008).

Independent benchmark: REDACT (Hebrew, Arabic, English subsets)

Evaluated on the Hebrew, Arabic and English records of REDACT (evaluation only; never used for training). REDACT types mapped to the five labels above; out-of-scope types (dates, cities, medical, …) ignored.

Languageopenai/privacy-filter F1seter-pii-he-ar v1.0 F1seter-pii-he-ar v1.1 F1, mean of 3 training seeds (released weights)seter-pii-he-ar v1.2 (xlm-r-large) F1, mean of 3 training seeds (released weights)seter-pii-he-ar-fast v1.1 (mmBERT-base) F1, mean of 3 training seeds (released weights)
Hebrew (621 records)0.6420.8850.914 (0.918)0.915 (0.914)0.905 (0.908)
Arabic (568)0.7350.9030.923 (0.928)0.922 (0.925)0.913 (0.914)
English (534)0.7090.8510.887 (0.894)0.890 (0.890)0.885 (0.886)

Corrected 10 Nov 2026. The first version of this table was computed with a scoring bug: characters that are both an in-scope entity and inside an out-of-scope REDACT annotation (2.4-3.3% of entity characters) were counted as missed even when a system predicted them. All four systems were re-scored with the fix, openai/privacy-filter included. Every figure rose by 0.01-0.02; the gaps between openai/privacy-filter, large v1.0 and large v1.1 changed by at most 0.002. Figures before the correction: openai/privacy-filter 0.63 / 0.72 / 0.70, v1.0 0.87 / 0.89 / 0.84, v1.1 0.900 / 0.912 / 0.871 (released weights 0.904 / 0.917 / 0.878), fast 0.84 / 0.88 / 0.83.

v1.2 does not raise REDACT F1. Its three-seed mean is within 0.003 of v1.1's, and its released weights are 0.003-0.004 below the v1.1 released weights in every language. REDACT leaves much personal data unlabelled: in an audit of 300 predictions by the v1.1 weights that touch no REDACT label, 59-66% were personal data (names, handles, person ids, phone numbers). REDACT precision therefore understates every system in this table, and v1.2 was judged on REDACT recall (no entity type may regress) and on the held-out documents above.

The v1.2 released weights are training seed 2 and, unlike v1.1, were chosen after the scores were seen: seed 1 lost about 4 points of recall on English national ids and passports, seed 3 showed no precision gain, and seed 2 sat between them on recall with the best precision. Read the three-seed mean (SD 0.003-0.005) as the expected figure. (The v1.1 weights were seed 1, fixed before any score was seen.)

Names caught on REDACT (any overlap), v1.2 released weights: Hebrew 99.3%, Arabic 98.9%, English 99.1% (v1.1: 99.5% / 99.4% / 99.1%; openai/privacy-filter on Hebrew: 40%). Payment-card numbers, including "ending in 1234" and masked forms (****1234), are caught in 98% / 99% / 95% of Hebrew / Arabic / English cases (v1.1: 98% / 90% / 95%; v1.0: 50% / 38% / 38%).

Scores use a small post-processing step (merging sub-word pieces, snapping emails to the full address, dropping one-letter names, trimming an Arabic conjunction attached to a kunya such as وأم محمد). Raw pipeline output can differ slightly. REDACT leaves some real names unannotated, so false positives are overstated.

Variants

VariantBaseParamsCPU time per REDACT record (6 threads)Use when
seter-pii-he-arFacebookAI/xlm-roberta-large (MIT)559M~506 msaccuracy matters most
seter-pii-he-ar-fastjhu-clsp/mmBERT-base (MIT)308M~221 mshigh volume, CPU-only, long documents (8k context)

Benchmarks

The figures in this section are on REDACT (Vats et al., ServiceNow; dataset guneeshv/REDACT-PII-Benchmark), used for evaluation only and never for training. The Hebrew final half is the held-out split published with GolemPII-v2-base by Liran Baba, and the scores use that project's typed character-level micro-F1 scorer. Arabic and English use the same scorer on the Hebrew, Arabic and English REDACT subsets described above. Both models are shown with their default decoders; for Seter that is the published decoder in seter_entities.py (account clean-up, and for the fast model the account-number calibration). Measured 2026-11-25 (Asia/Jerusalem).

With default decoders on this protocol, GolemPII-v2-base leads on Hebrew final F1, on Hebrew final precision, and on account-number F1. The strict-ids columns use Seter's optional entity-selection preset (see Decoder), which follows REDACT's labelling policy for numbers: identity and financial numbers are labelled; customer, employee and medical-file numbers, policy numbers, reference codes and card expiry dates are not. With it, Seter large scores .919 on Hebrew final F1; GolemPII-v2-base still leads on Hebrew final precision and on account-number F1.

MeasurementSeter large v1.2 (default)Seter large v1.2 (strict-ids)Seter fast v1.1 (default, fp32)Seter fast v1.1.2 int8 (strict-ids)GolemPII-v2-base
REDACT Hebrew final F1 (precision / recall).913 (.865 / .967).919 (.878 / .964).900 (.841 / .968).903 (.850 / .963).917 (.886 / .951)
REDACT Hebrew final account F1.741.788.727.775.821
REDACT Arabic F1.921.926.911.912.905
REDACT English F1.892.902.880.881.896
Standalone first-name recall@50%, HE / AR / EN.879 / .933 / .986.879 / .933 / .986.886 / .940 / .990.882 / .940 / .986.860 / .886 / .827
50-sentence set, lenient character F1.998.998.991.991.872

The v1.1.2 int8 ONNX file of the fast model scores REDACT Hebrew final .897, Arabic .909, and English .871 (same scorer). CPU latency for that file is reported in Key facts; it was measured on a different machine than earlier fp32 comparisons, so those speed figures are not placed side by side here.

The strict-ids columns were measured 2026-11-26 (Asia/Jerusalem) by applying the preset on top of the published default decoder, to the output of the large v1.2 weights and of the fast v1.1.2 int8 file. Nothing was retrained. The preset's rules were written from the benchmark's published labelling policy and fixed on synthetic development sets before being scored on REDACT once.

GolemPII-v2-base should be credited as requested by its author: GolemPII-v2-base by Liran Baba, with a link to the model on Hugging Face.

Training

  • Base: FacebookAI/xlm-roberta-large (MIT), 3 epochs, lr 2e-5, maximum length 512 tokens, ~31,400 fully synthetic records: invented names, personal handles, IDs (valid Israeli ID checksums, identity-number formats from other countries), person ids (customer / employee / student / user), phones with and without extensions, IBANs, card numbers, last-four forms and expiry dates, emails and addresses, in natural sentences, in structured records (JSON, key=value, pipe- and YAML-style logs) and, new in v1.2, in about 2,600 multi-sentence documents (paragraphs, chat transcripts, emails) in which the same people recur. About a third contain no PII (organisations, cities, hospitals, dates, order/ticket/request/tracking ids, UUIDs, prices, IPs, URLs, postcodes, floors and rooms, coordinates, street names without a house number).
  • No real personal data was used for training.

Limitations — read before use

  • A redaction aid, not an anonymization guarantee or compliance certification. Keep human review for legal, medical, financial and HR data.
  • The hand-written test sets are small and were written by the same author as the training templates; expect lower accuracy on real data.
  • Cities, organisations and public bodies are intentionally not labelled on their own. Dates, URLs and secrets are not covered (use openai/privacy-filter for those).
  • Israeli ID numbers, passports and bank accounts are all labelled account_number. Since v1.2, so are customer / employee / student / user ids (EMP-20418), and personal handles (@dana_levi) are labelled private_person: Seter treats both as personal data. REDACT does not label them, so they count as false positives there. To mask only identity and financial numbers, use the strict-ids preset (see Decoder).
  • Known weaknesses of the v1.2 released weights on REDACT, compared with v1.1 (entity recall): English passports 100% → 97.3%, English national ids 98.8% → 97.5%, English tax numbers 100% → 93.5% (31 cases), English driving licences 100% → 90.9% (22 cases), Arabic family names 99.2% → 97.5%, English nicknames and handles 87.2% → 85.9%. Gain: Arabic payment cards 90.1% → 98.6%. Over the three seeds, no entity type with at least 50 cases lost more than 3 points on average. If your data is mostly English identity documents, v1.1 (revision="v1.1") catches slightly more of them.
  • On the held-out documents the v1.2 weights still tag some order, claim and tracking numbers and some dates as account numbers, and some street names without a house number as addresses. They miss 44 of 324 account-type entities, mostly bare customer numbers in tables, and numbers that are spelled out in words. Hebrew prefix letters (ל/ב/ו) are occasionally included in a name span.
  • The training data classes (UUIDs, card last-four forms, structured records; in v1.2 handles, phone extensions, card expiry dates, person ids, foreign identity formats, document-length records and the negative classes listed under Training) were chosen after reading errors on REDACT. No benchmark text was used and held-out sentences are kept out of training, but REDACT is no longer a fully independent test for this version.
  • Use aggregation_strategy="simple"; multi-word Arabic names (أبو خالد) may come back as two adjacent private_person spans — merge neighbours if you need one span.

Usage

from transformers import pipeline
pii = pipeline("token-classification", model="shoresh-labs/seter-pii-he-ar", aggregation_strategy="simple")
pii("שלום, קוראים לי יוסי כהן, 054-7812345")
# -> entity_group 'private_person' for 'יוסי כהן', 'private_phone' for '054-7812345'

The label names match openai/privacy-filter, so outputs can be swapped into pipelines built around it.

Fast variant: model="shoresh-labs/seter-pii-he-ar-fast" (v1.1.2; the PyTorch weights are those of v1.1, 12 Nov 2026). On the held-out documents above the weights score F1 0.947 with precision 0.916 and recall 0.980; fast v1.0 scored 0.850 / 0.893 / 0.841 on REDACT. Pin revision="v1.1.2" for the current int8 ONNX file.

Decoder: account clean-up and entity selection

The benchmark figures on this card are measured with the published decoder in seter_entities.py (MIT, no dependencies besides the model). Apply it to the pipeline output:

import os, sys
from huggingface_hub import hf_hub_download
sys.path.insert(0, os.path.dirname(hf_hub_download("shoresh-labs/seter-pii-he-ar", "seter_entities.py")))
from seter_entities import calibrate, select_entities

calibrate(pii.model)        # no-op for this model; the fast model needs it
text = 'ת"ז 039876541, מספר לקוח 448812'
ents = select_entities(text, pii(text))                       # default: account clean-up (both numbers stay masked)
ids = select_entities(text, pii(text), preset="strict-ids")   # the ID stays masked; the customer number does not
PresetWhat happens to account_number spans
defaultAccount clean-up. Edge punctuation is trimmed; full dates and times are dropped; a number is dropped when the nearest word before it names a non-personal code (order, invoice, ticket, reference, case, tracking, SKU, version, booking, … in Hebrew, Arabic and English) and no identity word is as close. IBAN, card and passport shapes are always kept.
strict-ids (optional)The clean-up, then only identity and financial numbers stay masked: national / identity numbers, passports, driving licences, payment cards (including masked and last-4 forms), tax ids, bank accounts, IBANs. Customer / client / user / member / employee / student / patient ids, medical-file numbers, insurance policy numbers, professional licence numbers, reference-style codes and card expiry dates are left in the text.
noneThe spans exactly as the model returned them.

Person, address, phone and email spans are never changed. select_entities accepts the pipeline's list of dicts or [start, end, label] spans and returns the same shape. calibrate(model) subtracts the fast model's account-number logit offset (1.0) once; for ONNX, subtract ACCOUNT_BIAS from the B-/I-account_number logits before the argmax. A JavaScript port, entities.js, gives the same spans and runs in the demo Space, which has a strict-ids toggle.

Trade-off: on the 150 held-out documents above, written under Seter's own labelling policy, strict-ids moves character precision from .968 to .973 and recall from .975 to .943 (F1 .972 → .958, against the default decoder), because it unmasks numbers that policy treats as personal. Use it when your policy matches the list above. REDACT figures with strict-ids are under Benchmarks.

Changelog

  • Decoder update (26 Nov 2026, seter_entities.py 1.1.0): the account-number clean-up used for this card's benchmark figures is now part of the published decoder and on by default (preset="none" returns the raw spans); calibrate(model) adds the fast model's account-number calibration; the demo uses both. strict-ids now sits on top of the default decoder (the fast int8 strict-ids column moved from .901 to .903). Held-out figures with the published decoder were added. The model files are unchanged, so there is no new revision tag: revision="v1.2" loads the same files, and the helper is read from main.
  • Helper and card update (26 Nov 2026): added seter_entities.py with the optional strict-ids entity-selection preset, and strict-ids columns under Benchmarks. The model files are unchanged, so there is no new revision tag: revision="v1.2" loads the same files, and the helper is read from main. Default output is unchanged.
  • v1.2 (11 Nov 2026): document-length training records; personal handles, phone extensions, card expiry dates and customer / employee / student / user ids are now labelled; negatives for URLs, postcodes, floors and rooms, coordinates and tracking numbers. On the new held-out documents F1 0.945 → 0.968 (mean of 3 seeds 0.962) and fully covered entities 0.917 → 0.961. REDACT F1 is unchanged within noise, with a small recall loss on English identity documents (see Limitations). The previous weights remain available as revision v1.1.
  • v1.1: card last-four / masked card forms, structured (JSON / key=value / log) records, UUID and hospital-name negatives, Arabic-conjunction trimming in post-processing. F1 on REDACT +0.03 Hebrew, +0.02 Arabic, +0.04 English over v1.0. The previous weights remain available as revision v1.0.
  • v1.0: first release.

License

MIT, same as the base model.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей