Redact tool: rich UI, multilingual, engine choice, output formats

- Custom inline form (EN/NO/UK/PL lang switcher) replacing generic stub
- Engine selector: Azure gpt-4o-mini (default), gpt-4o, GPU cuttlefish, regex-only
- Entity type toggles: names, organisations, places, dates of birth
- Output formats: contextual role tags, generic [PERSON], Norwegian pseudonyms
- Keep officials mode: judges/experts kept as [JUDGE: Andersen] format
- Exempt names list: specific names excluded from redaction
- Hint paragraphs explaining each option in all four languages
- Backend: engine routing, callGpuLlm(), applyGenericTags(), applyPseudonymization()
- AzureOpenAiGateway: withDeployment() clone pattern for per-call model override

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-15 00:20:16 +02:00
parent e3d8daf6ca
commit 8c12d5e778
6 changed files with 789 additions and 40 deletions
+7
View File
@@ -40,6 +40,13 @@ final class DbnAzureOpenAiGateway
return $missing;
}
public function withDeployment(string $deployment): static
{
$clone = clone $this;
$clone->config['chat_deployment'] = $deployment;
return $clone;
}
public function chatDeployment(): string
{
return (string)$this->config['chat_deployment'];