Skip to content
Хабр·Indexed by this site · Originally published· Tools →

How to avoid violating Russia's 152-FZ when using AI to review contracts, or use Docx Anonymizer to redact personal data

AI summary

The author released the open-source Chrome extension Docx Anonymizer, which locally intercepts and redacts personal data in documents in real time on AI chat pages, helping reduce the risk of violating Russia's Personal Data Law 152-FZ before handing contracts to public AI such as ChatGPT for review. The extension makes no network requests and has no server or telemetry; the built-in rubert-tiny2 runs on browser WASM, is 30 MB after int8 quantization, and processes a 20-page contract in about 1.7 seconds. Training first used xlm-roberta-base as a teacher for knowledge distillation, then added factRuEval-2016 and 35% synthetic business text; ORG F1 on factRuEval rose from 0.412 to 0.704, business-style accuracy rose from 0.47 to 0.99, and false positives on 566 entity-free sentences dropped from 510 to 5.

Read originalhabr.com