Views
No views yet
Named entity recognition — extracts 8 compliance-specific entity types from EU AI Act and GDPR documents
[!NOTE] Part of KlarKI — a local-first EU AI Act + GDPR compliance auditor for German SMEs. All inference runs on-device. No data leaves your machine.
| Property | Value |
|---|---|
| Base model | de_core_news_lg |
| Architecture | spaCy 3.7 NER pipeline (tok2vec + NER) |
| Parameters | ~560k word vectors + custom NER head |
| Languages | German (primary), English |
| Training samples | ~4,000+ train / ~1,000+ validation |
| License | MIT |
| Part of | KlarKI audit pipeline |
[!TIP] Use this if you want the full audit pipeline. The download script places all 5 models exactly where KlarKI expects them.
1git clone https://github.com/s4nkar/KlarKI-EU-AI-Act-compliance-auditor.git
2cd KlarKI-EU-AI-Act-compliance-auditor
3pip install huggingface-hub>=0.26.0
4python scripts/download_pretrained.py --model ner
5./run.sh up1from huggingface_hub import snapshot_download
2import spacy
3
4model_path = snapshot_download("s4nkar/klarki-ner-spacy")
5nlp = spacy.load(f"{model_path}/model-final")
6
7doc = nlp("The provider must maintain technical documentation under Article 11 of the EU AI Act.")
8for ent in doc.ents:
9 print(ent.text, ent.label_)
10# Output: [('provider', 'ACTOR'), ('technical documentation', 'PROCEDURE'), ('Article 11', 'ARTICLE'), ('EU AI Act', 'REGULATION')]| Label | Description |
|---|---|
ARTICLE | References to specific articles (e.g. 'Article 9', 'Artikel 13', 'Art. 14') |
OBLIGATION | Legal obligations (e.g. 'must document', 'shall maintain', 'are required to') |
ACTOR | Regulated parties (e.g. 'providers', 'operators', 'importers', 'notified bodies') |
AI_SYSTEM | AI system references (e.g. 'high-risk AI system', 'emotion recognition system') |
RISK_TIER | Risk classifications (e.g. 'high-risk', 'prohibited', 'hochriskant') |
PROCEDURE | Regulatory procedures (e.g. 'conformity assessment', 'risk management system') |
REGULATION | Regulation names (e.g. 'EU AI Act', 'GDPR', 'DSGVO', 'KI-Gesetz') |
PROHIBITED_USE | Prohibited practices (e.g. 'social scoring', 'real-time biometric surveillance') |
| Property | Value |
|---|---|
| Base model | de_core_news_lg |
| Training epochs | 60 (early stopping, patience=10) |
| Data generation | Deterministic template expansion + regulatory text extraction |
| NER backbone | tok2vec from de_core_news_lg kept active during training |
| Training framework | Docker container (Python 3.11, isolated from host) |
[!WARNING] This model is a decision-support tool, not a substitute for qualified legal advice. EU AI Act compliance determinations should always be reviewed by a legal professional.
1@software{klarki2026,
2 author = {Sankar},
3 title = {KlarKI: Local-First EU AI Act and GDPR Compliance Auditor},
4 year = {2026},
5 url = {https://github.com/s4nkar/KlarKI-EU-AI-Act-compliance-auditor},
6 note = {Open-source compliance tooling for German SMEs}
7}