Downloads · 30 days
13
27% of all-time downloads
Uunan/tamga-ner-b
tamga-ner-b is a token classification model from Uunan. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as apache-2.0.
<p align="center" <img src="https://i.imgur.com/lRxLymA.png" width="300" alt="AgentP Logo" </p
Downloads · 30 days
13
27% of all-time downloads
All-time downloads
48
Public
Parameters
109M
218 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors218 MB · 99%
From the Hugging Face model README
Tamga-NER-B is a specialized, lightweight token classification (Named Entity Recognition) model developed for detecting sensitive secrets, API keys, credentials, and PII (Names, Locations, Numbers, Contacts) within code blocks, configuration files, and developer prompts.
It serves as the core local neural detection engine powering AgentP (O.W.C.A. Top Secret Privacy Shield).
The model outputs BIO tags for 5 primary entity categories:
| Category | BIO Tags | Description |
|---|---|---|
| API | B-API, I-API | API keys, secret tokens, private credentials (Stripe, OpenAI, Anthropic, AWS, GitHub, NVIDIA, etc.) |
| NAME | B-NAME, I-NAME | Full names, person identities, author credits |
| LOCATION | B-LOCATION, I-LOCATION | Addresses, cities, countries, office locations |
| NUMBER | B-NUMBER, I-NUMBER | National IDs, credit cards, bank accounts, tax numbers, phone digits |
| CONTACT | B-CONTACT, I-CONTACT | Email addresses, URLs, contact endpoints |
from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline
model_id = "Uunan/tamga-ner-b"
# Load tokenizer and model
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForTokenClassification.from_pretrained(model_id)
# Initialize pipeline
ner = pipeline(
"token-classification",
model=model,
tokenizer=tokenizer,
aggregation_strategy="simple"
)
# Test sample
prompt = "Please send payment with key sk_live_51N3xExample123456789 for user Ahmet Yilmaz in Istanbul."
entities = ner(prompt)
for ent in entities:
print(f"[{ent['entity_group']}] '{ent['word']}' (Score: {ent['score']:.4f})")
DistilBertForTokenClassificationdim): 1024hidden_dim): 4096model.safetensors, ~217.7 MB)In production, AgentP runs this model entirely on your local CPU or GPU to intercept outgoing prompts from AI coding agents (OpenCode, Claude Code, Cursor, Antigravity), masking sensitive secrets with syntactically consistent dummy values (sk_live_fake...) and restoring real keys when responses return.
To run the full privacy proxy:
npx @tamgallc/agentp
# or
npm install -g @tamgallc/agentp
agentp
Developed by Tamga LLC under the Apache-2.0 License.