HBP100 v2.0.0
HBP100 v2.0.0
Contextual privacy firewall using machine learning for intelligent PII masking.
Features
~ LightGBM + TF-IDF privacy engine
~ Context-aware masking decisions
~ Placeholder generation and validation
~ Metadata vault for reversible masking
~ Restore API
~ Lightweight package (~590 KB wheel)
~ Sub-millisecond average latency
~ MIT licensed and open source
Improvements in v2
~ Improved entity overlap handling
~ Fixed nested replacement issues
~ Better address extraction
~ Better phone number normalization
~ Reduced duplicate entity detection
~ More robust masking pipeline
Example
from hbp100 import mask, restore
text = "My email is john@example.com"
masked = mask(text)
# My email is [EMAIL_1]
response = llm(masked)
final = restore(response)
# My email is john@example.comApplications
~ Healthcare
~ Insurance documents
~ OCR pipelines
~ AI assistants
~ Customer support systems
~ Privacy-preserving LLM workflows