/ Модель

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

Лицензия
CC BY-NC 4.0
Библиотека
pytorch
Опубликована
7 ноя 2026

arc-tagger

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

Arc Tagger — компактная потоковая англоязычная модель WhissleAI для разметки расшифровок речи, выделения PII, сущностей, токсичности и сигналов безопасности.

103скачиваний за 30 дней1лайквеса обновлены17 ноя 2026

Бенчмарки

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

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

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

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

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

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

Arc Tagger 0.4.1 — потоковая текстовая модель-разметчик от WhissleAI для обработки живых расшифровок речи. Она принимает слова от любой системы распознавания речи или обычный текст и по мере поступления слов выделяет сущности и числа, персональные данные для маскирования, ненормативную лексику и токсичность, речевые акты, намерения, сигналы безопасности и роли участников. Модель содержит около 10 млн параметров, работает на CPU и поддерживает обновление разметки при исправлении промежуточных гипотез ASR.

Модель предназначена для потоковой разметки расшифровок звонков, встреч и других разговоров, включая обнаружение PII, токсичных фрагментов и попыток prompt injection или jailbreak. В README приведены результаты публичных тестов токсичности и описаны 284 тега в 10 группах. Модель работает только с текстом и рассчитана на английский язык; акустические признаки и голосовые события она не анализирует, а определение ролей требует идентификаторов говорящих от диаризации. Точность некоторых разметок ограничена, а предупреждения о безопасности и PII могут давать ложные срабатывания, поэтому важные решения требуют проверки. Лицензия CC BY-NC 4.0 и условия Whissle ограничивают использование некоммерческими целями; применение предназначено только для инференса.

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

  • выделение телефонных номеров, адресов и других персональных данных в расшифровках звонков
  • маскирование PII в потоковых транскриптах контакт-центра
  • обнаружение токсичных и ненормативных фрагментов речи
  • разметка намерений и речевых актов в диалогах
  • обнаружение prompt injection и jailbreak в текстовых сообщениях
  • разметка сущностей, чисел и событий в расшифровках встреч

Ограничения

Модель поддерживает только английский текст и не использует аудио cues; роли участников требуют идентификаторов говорящих. Разметка сущностей и ранние потоковые предсказания могут быть неточными, а сигналы токсичности, утечки PII и безопасности — давать ложные срабатывания; маскирование не гарантирует соответствия требованиям.

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

Arc Tagger (10M), v0.4.1

Arc Tagger is a text-only streaming tagger for live speech transcripts. It reads the word stream of any ASR (Deepgram, Speechmatics, Whisper, NeMo, your own ASR, or plain text). As each word arrives, it emits:

  • entity and number spans;
  • PII spans for redaction;
  • profanity and toxicity;
  • discourse acts, intents and safety flags, including prompt-injection / jailbreak attempts;
  • speaker roles;
  • events, such as speaker change, turn yield, sports, legal and meeting events;
  • content state;
  • affect: emotion, arousal, valence and intensity (experimental, text only).

The model has about 10 M parameters and runs on CPU. Interim ASR hypotheses can be revised: only the revised words are re-processed.

Usage terms

  • Inference use only. This repository provides the model and the inference code, nothing else.
  • Non-commercial. The weights and code are licensed under CC BY-NC 4.0 plus the Whissle terms (see LICENSE).
  • Commercial licensing: contact WhissleAI (ksingla@whissle.ai).

Tag families

284 tags across 10 read-outs (365 tag@readout columns). ontology/ holds the full definitions, and config.json["columns"] lists every column.

familytags (examples)read-out
Entitiesentity.mention.{person,organization,team,place,event_name,legal_ref,term,...} (10)word spans
Numbersentity.number.{date,time_of_day,duration,count,money,percent,measure,score,clock,ordinal,id_pii,...} (16), entity.numeralword spans
PII / redactionsafety.pii.* (11): {private_name,phone_number,email,street_address,card_account_number,gov_id,date_of_birth,url_handle,public_contact} spans; safety.pii.{request,leak} per utterancespans and utterance
Profanity / toxicitysafety.profanity.{mild,strong}, safety.toxicity.* (6)spans and utterance
Safetysafety.jailbreak.attempt (experimental), safety.scam.* (6), safety.crisis.self_harm, safety.threat.escalation, safety.child.* (2), safety.solicitation.dating_romanticutterance
Discourse actdiscourse.act.* (7: statement, question, command_request, ...), discourse.answer, discourse.backchannel, discourse.assistant.* (2)utterance
Intent26 cross-domain intent.* (request_information, schedule_arrange, complain_criticize, ...), 60 assistant discourse.intent.* (alarm_set, weather_query, ...)utterance
Speaker rolespeaker.role.* (19, including contact-centre agent and customer)per speaker (needs speaker ids on the words)
Eventsspeaker.change, discourse.turn_yield, discourse.interruption, event.sports.* (18), event.legal.* (3), event.meeting.{decision,action_item}per word
Content statecontent.mode (8), content.subject (12), content.game_state (6), content.legal_phase (9), content.meeting_phase (6), content.sports_focus (7)per word
Affect (experimental)affect.emotion.* (5), affect.arousal.{low,medium,high}, affect.valence.{neg,neu,pos,mixed}, affect.intensity.{1,2,3}utterance

Quickstart

pip install huggingface_hub
huggingface-cli download WhissleAI/arc-tagger --local-dir arc-tagger
cd arc-tagger
pip install -r requirements.txt     # CPU torch is enough: pip install torch --index-url https://download.pytorch.org/whl/cpu
python example.py

Offline

import sys; sys.path.insert(0, "arc-tagger")           # the arctag package ships in the repo
from arctag import ArcTagger

tg = ArcTagger.from_pretrained("arc-tagger")            # a local dir, or the repo id "WhissleAI/arc-tagger" (the default)
out = tg.tag("Hi, this is Maria from Northwind Bank. Can I get your phone number?", domain="talk")
print(out["redacted_text"])      # Hi, this is [NAME] from Northwind Bank. ...
print(out["spans"])              # entity / number / PII / profanity spans with probabilities
print(out["utterances"])         # per-utterance intent, act, safety, role, state, affect

Streaming

Push words as the ASR emits them. An interim hypothesis is replaced with revise_from=k (it replaces words[k:]).

st = tg.stream(domain="assistant")
st.push_words(["set", "an", "alarm", "for"], final=False)                                   # interim
up = st.push_words(["set", "an", "alarm", "for", "seven", "thirty."], revise_from=0, final=True)
up = st.endpoint()           # end of utterance: utterance read-outs arrive in up["utterances"]
res = st.finalize()          # the full result (same schema as tag())

Live ASR scripts (low latency)

Two scripts connect a live ASR to the tagger. Each takes a wav file or the microphone, and prints the live tags and redacted text as JSON lines. The API key is read only from an environment variable.

pip install websockets          # plus sounddevice for --mic

export DEEPGRAM_API_KEY=...
python stream_deepgram.py --wav call.wav --domain talk
python stream_deepgram.py --mic --domain assistant --seconds 30

export SPEECHMATICS_API_KEY=...
python stream_speechmatics.py --wav call.wav --domain talk
python stream_speechmatics.py --mic --domain meeting --url wss://eu2.rt.speechmatics.com/v2

How provider messages map to the stream:

provider messagetagger call
Deepgram Results, is_final=falsepush_words(words, final=False, revise_from=n_final)
Deepgram Results, is_final=truepush_words(words, final=True, revise_from=n_final)
Deepgram speech_final=true or UtteranceEndendpoint()
Speechmatics AddPartialTranscriptpush_words(words, final=False, revise_from=n_final)
Speechmatics AddTranscriptpush_words(words, final=True, revise_from=n_final)
Speechmatics EndOfUtteranceendpoint()
  • n_final is the number of words the provider has already finalised, so interim words never rewrite final ones.
  • An end of utterance that arrives while interim words are pending is applied right after those words become final.
  • Speaker ids from diarization (Deepgram diarize=true, Speechmatics diarization: "speaker") are passed on as spk. They enable speaker roles.
  • Useful options:
    • --no-interim: print only final updates.
    • --result out.json: write the full result at the end.
    • --tier T1: delayed, more stable labels.
  • Each line is {"type": "update", "source": "interim" | "final" | "endpoint", "spans", "events", "utterances", "running", "redacted_text"}. The last line is {"type": "done", ...}.

Status.

  • Deepgram: the adapter is tested offline against recorded-format message sequences.
  • Speechmatics: tested against the documented message format; not yet tested live.

The fixtures and tests are in tests/ (python tests/test_adapters.py). The adapters themselves (arctag/asr.py) have no network code, so you can reuse them with any client.

Input

tag(x, domain="auto", tier="T0")

x can be any of:

  • a str;
  • a list of words;
  • a list of word dicts {"w": str, "t0": s, "t1": s, "conf": float, "spk": str|int, "final": bool}. Every field except w is optional.

Offline, utterances end after words ending in . ? !. In streaming, call endpoint() at the ASR's end of utterance.

domain is one of auto | talk | meeting | court | assistant | sports | news.

  • It selects the per-domain behaviour and thresholds.
  • talk covers contact centre, podcasts and chat.
  • In sports and court, the specific league or court type is detected from the words.
  • auto is weaker. Set the domain when you know it.

Streaming: push_words(words, final=True, revise_from=None, endpoint=False), endpoint(), finalize().

Output (JSON)

{
 "meta": {"model": "arc-tagger", "version": "0.4.1", "domain": "talk", "fine_domain": "talk", "tier": "T0",
          "thresholds": "display + default"},
 "words": ["Hi,", "this", "is", "Maria", ...],
 "spans": [                                     // word indices [start, end)
   {"tag": "safety.pii.private_name", "family": "pii", "start": 3, "end": 4, "text": "Maria", "p": 0.97, "thr": 0.42,
    "alt": {"tag": "...", "p": 0.01},           // runner-up type
    "ver": 0.99,                                // span verifier probability
    "src": "head"}
 ],
 "entities": [...], "pii": [...], "profanity_toxicity": [...],   // spans split by family
 "redacted_text": "Hi, this is [NAME] from ...",                  // PII, profanity and toxicity spans masked (public_contact is not)
 "utterances": [
   {"start": 0, "end": 8, "text": "...",
    "intent": ["intent.request_information"], "act": ["discourse.act.question"], "safety": ["safety.pii.request"],
    "role": [], "role_note": "speaker role needs diarization (no speaker id on words)",
    "item": [], "state": {"content.mode": ["content.mode.call_in"]},
    "emotion": [{"tag": "affect.emotion.neutral", "p": 0.93, "thr": 0.5, "on": true},   // top tag of each affect group:
                {"tag": "affect.arousal.low", ...}, {"tag": "affect.valence.neu", ...}, {"tag": "affect.intensity.1", ...}],
    "scores": {"intent": [{"tag": "...", "p": 0.0, "thr": 0.0, "on": false}], "act": [...], ...}}   // top-k with probabilities
 ],
 "events": [{"tag": "speaker.change", "at": 15, "word": "Yeah,", "p": 0.94, "thr": 0.3, "tier": "T0", "read": "ev_rec"}]
}
  • The label lists (intent, act, safety, ...) hold the tags at or above their threshold.
  • scores keeps the top-k with probabilities.
  • emotion holds the most likely tag of each affect group (emotion, arousal, valence, intensity) with its probability.

Each streaming update (from push_words or endpoint) contains:

  • n_words and changed_from;
  • spans: the re-decoded window (replace your spans that end after its start);
  • events: new events only;
  • utterances: the utterances that just ended;
  • running: the live intent, act, safety and state of the open utterance.

Latency tiers

tierlookaheaduse
T00 wordslive display and zero-lag redaction (default)
T1up to 3 wordsrevisions a few words later
T2to the utterance endfinal utterance labels

All three tiers are read from the same pass, so they add no compute. Utterance-level labels (intent, act, safety, role, affect) are read at the endpoint.

Measured CPU latency (1 thread, one word per call, on a heavily shared server CPU; expect lower on an idle core):

p50p95
model step per word16.62 ms31.66 ms
full push_words() call per word (span decoding and read-outs included)24.3 ms46.4 ms

Evaluation

The internal numbers are on the Whissle internal held-out test set (multi-domain: contact centre, assistant, meetings, news, talk, sports and courts; ASR word streams). Its labels are internal, so these numbers are not comparable to public leaderboards. Public benchmark results follow below.

Whissle internal held-out test set, offline pass (609 sessions, 249,866 words)

metricvalue
primary score (spans, AP, events, exclusive groups, PII leak)0.7694
span exact F1 (families, mean over tiers T0 to T2)0.7090
macro AP over tags (mean over tiers)0.7562
macro AP over tags, T0 / T1 / T20.7444 / 0.7632 / 0.7611
macro AUC over tags, T0 / T1 / T20.9764 / 0.9768 / 0.9769
event F1 (±2 words, T0, events with at least 20 positives)0.8961
exclusive-group macro F1 (T0)0.6356
PII words shown unmasked at first display (T0)1.23 % (non-PII words masked: 0.889 %)
familyspan exact F1, T0span exact F1, T2AP, T0
PII (safety.pii)0.73140.76660.8750
Profanity (safety.profanity)0.85360.85860.9717
Numbers (entity.number)0.68650.73180.7618
Entities (entity.mention)0.50930.50990.5773
Speaker change (event)F1 0.96880.9953
Turn yield (event)0.7864
Speaker role (speaker.role)0.8210
Assistant intent (discourse.intent)top-1 0.6395, top-3 0.81720.6770
Solicitation (safety.solicitation)0.9475
Content mode (content.mode)0.9929

Span F1 is for the span-head decode, which the package uses for the PII, profanity, number and entity families.

Whissle internal held-out test set, streaming first display (35 sessions, 36,662 words)

The sessions are replayed through the streaming engine as a live-ASR message sequence (interim words, revisions, finals, endpoints). Each label is scored as first shown to the user (T0), with the default thresholds.

read-out (streaming, T0 first display)precisionrecallF1positives
spans (word level, all span families)0.7580.7020.7293,516
intents (utterance)0.6810.5790.626368
turn events (speaker change, turn yield, ...)0.7700.3770.5061,668
speaker roles0.6250.7140.66721
utterance safety flags0.8181.0000.9009
discourse acts (utterance)0.3460.4500.39140
span family (streaming, span exact F1)T0T1T2
Numbers (entity.number)0.58990.68270.6667
Entities (entity.mention)0.41510.43440.4689

The speaker-role, act and safety rows have few positives (21, 40 and 9).

Public safety benchmarks

Whole-utterance mode, CPU, scored on the public test splits. Arc Tagger's utterance score is a logistic-regression combination of its safety-tag probabilities, fitted on a separate development split of the same benchmark (OpenAI Moderation: the other half of the 1,680 prompts; ToxicChat: a development subset disjoint from the test split). The other models were run locally on the same rows. 95 % bootstrap confidence intervals in brackets.

benchmarkmetricArc Tagger 0.4.1Detoxify (original)Detoxify (unbiased)s-nlp RoBERTa toxicity
OpenAI Moderation (test half: 840 prompts, 261 flagged)AUPRC0.726 [0.669, 0.779]0.7830.7300.790
ToxicChat 0124 test (5,083 prompts, 362 toxic)AUPRC0.518 [0.470, 0.574]0.4020.3950.496
benchmarkmetricArc Tagger 0.4.1
SemEval-2021 Task 5 Toxic Spans (full test, 2,000 texts)character F10.531 [0.513, 0.549]

SemEval toxic spans are read from the toxicity and profanity span scores, with one score threshold chosen on the SemEval trial split.

ONNX / C runtime

onnx/ holds the same model exported for the T0 read-outs: arctag.onnx (fp32) and arctag_int8.onnx (int8), with arctag_meta.json (read-out columns, thresholds, domain profiles), tokenizer.json and SHA256SUMS. A dependency-light C runtime that loads these files is at github.com/WhissleAI/arc-tagger-c.

arctag_int8.onnx is a weight-only int8 graph: the weight tables are stored as int8 with one scale per column, and activations are never quantised (compute stays in float). It uses standard ONNX operators only, streams exactly like the offline pass, and uses the same thresholds as the fp32 graph. The C runtime's native backend keeps the tables in int8 in memory; under ONNX Runtime they become float tables at load. If you run the graph with ONNX Runtime directly, set the graph optimization level to basic (GraphOptimizationLevel.ORT_ENABLE_BASIC): the default level fuses the int8 weights into int8 matrix products with quantised activations, and the scores move slightly.

fp32int8 (weight-only)
file size34.0 MB9.4 MB
C runtime, native backend: resident memory (RSS) / streaming p50 per word (1 thread)72 MB / 6.2 ms26 MB / 2.9 ms
ONNX Runtime: resident memory (RSS)113 MB118 MB (tables become float at load)
span F1 of int8 against fp32 output (Whissle internal held-out test set)0.986 (toxicity spans 0.918)
span F1 on the Whissle internal held-out test set (1,286 reference spans)0.5440.543

Kids / game domain (C runtime)

onnx/arctag_kids.json holds the utterance thresholds of the kids domain (alias game), for short spoken turns of children in an app or game. The C runtime (0.5.0 and later; built-in copy of the same thresholds) and its Python reference apply them together with a guard layer: profanity, insult and threat also appear as utterance safety tags; safety.pii.leak / safety.pii.request need evidence in the words; self-harm, grooming, sexual-content and jailbreak backstops; and a command_context option so in-game commands ("kill the heaters") raise nothing. See docs/KIDS.md in that repository.

Calibration on a held-out set of 400 short kid turns (synthetic; benign and command turns included), utterance level, int8:

tagprecisionrecallF1support
safety.profanity (either severity)1.001.001.0046
safety.profanity.strong1.001.001.0026
safety.profanity.mild1.001.001.0020
safety.toxicity.insult_harassment1.000.730.8530
safety.toxicity.threat_violence0.920.730.8115
safety.crisis.self_harm1.000.510.6835
safety.child.grooming_cue1.000.530.7030
safety.child.inappropriate0.800.500.628
safety.pii.leak1.001.001.0022
safety.pii.request1.000.790.8814
safety.jailbreak.attempt1.000.700.8210

Benign turns (198, including 40 cockpit commands): any safety tag 0.5 %, self-harm / grooming 0.0 %, PII 0.0 %, jailbreak 0.0 %. Exact tag-set match over all 400 turns: 0.863.

Self-harm, grooming and inappropriate content miss some indirect phrasings. Use them as review triggers for a caring adult or a moderator, not as the only safety net.

Files

filewhat
model.safetensorsweights (fp32, 45 MB)
config.jsonread-out columns, ontology id, default thresholds and the span families decoded by the span head
tok/bpe8k/tokenizer
ontology/tag ontology, text-tag table, the ontology extension (contact-centre roles, jailbreak, affect valence and intensity), tag-definition embeddings
thresholds/display.jsondisplay thresholds per tag, read-out and domain (tags without an entry use the default thresholds in config.json)
engine_settings.jsonthe engine's display floors and domain mapping (for reference)
arctag/Python package: ArcTagger, driver.py (session to JSON), asr.py (live ASR adapters), live.py (audio input), _core/ (streaming engine)
stream_deepgram.py, stream_speechmatics.pylive ASR scripts
tests/adapter tests and provider message fixtures
example.pyquickstart
LICENSE, NOTICElicence (CC BY-NC 4.0 + Whissle terms) and copyright notice
onnx/fp32 and int8 ONNX exports, their metadata, tokenizer and checksums (see ONNX / C runtime); arctag_kids.json: kids-domain thresholds
MANIFEST.sha256checksums

Limitations

  • English only. Non-English input gives meaningless output.
  • Text only, with no audio cues. The model cannot detect speaker identity, emotion in the voice or vocal events. Speaker roles need speaker ids (spk) on the words, for example from ASR diarization.
  • The internal test set above has no toxicity spans; the toxicity numbers on this card are the public benchmarks above. On OpenAI Moderation the tagger is behind the dedicated toxicity classifiers. Validate toxicity detection on your own data before relying on it.
  • Entity mention spans (entity.mention) are the weakest span family (exact F1 about 0.51 on the test set).
  • Spans shown at first display (T0, often on interim ASR words) are less accurate than the same spans a few words later (T1) or at the utterance end (T2). Use tier="T1" where a delay of up to 3 words is acceptable.
  • Utterance-level safety, jailbreak and scam flags can fire on short or out-of-domain utterances, and on utterances that follow a flagged one. For anything consequential, use scores (p) and your own policy.
  • The safety.pii.leak and safety.scam.* alerts are tuned for recall and can fire on benign contact-centre text, such as an agent's greeting or a caller giving their own details. Use the PII spans for redaction, and the scores (p) with your own threshold if false alerts matter.
  • Affect (emotion, arousal, valence, intensity) comes from the words only and is experimental; this card reports no affect evaluation.
  • The auto domain is weaker than setting the domain. Some sports events fire loosely outside sports.
  • Redaction masks the decoded spans. It is not a compliance guarantee: review it for your use case.
  • The default thresholds favour precision. Tune them for your traffic if you can.
  • The Python package runs fp32 on CPU; the ONNX exports cover the T0 read-outs only.

Licence

The weights and the code, including all inference code: CC BY-NC 4.0 plus the Whissle terms in LICENSE.

  • Non-commercial use only.
  • Commercial use needs a separate written licence from Whissle Inc.: ksingla@whissle.ai.

This covers every file in the repository, including arctag/_core/ and onnx/ (see NOTICE).

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

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

GPU в ailist

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

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

Подбираем GPU…

Ревизия весов
5004492

0 моделей