gaurv007 commited on
Commit
3c7bc99
Β·
verified Β·
1 Parent(s): 376db46

v4.2: Update README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -2
README.md CHANGED
@@ -10,11 +10,22 @@ app_file: app.py
10
  pinned: false
11
  ---
12
 
13
- # πŸ›‘οΈ ClauseGuard v4.0 β€” World's Best Open-Source Legal Contract Analysis
14
 
15
  **ClauseGuard** is the most comprehensive open-source AI-powered legal contract analysis tool. It analyzes contracts using state-of-the-art legal NLP models and provides actionable risk assessments, Q&A chatbot, clause redlining, and OCR for scanned PDFs.
16
 
17
- ## πŸ†• What's New in v4.0
 
 
 
 
 
 
 
 
 
 
 
18
 
19
  | Feature | Description |
20
  |---------|-------------|
 
10
  pinned: false
11
  ---
12
 
13
+ # πŸ›‘οΈ ClauseGuard v4.2 β€” World's Best Open-Source Legal Contract Analysis
14
 
15
  **ClauseGuard** is the most comprehensive open-source AI-powered legal contract analysis tool. It analyzes contracts using state-of-the-art legal NLP models and provides actionable risk assessments, Q&A chatbot, clause redlining, and OCR for scanned PDFs.
16
 
17
+ ## πŸ†• What's New in v4.2
18
+
19
+ | Feature | Description |
20
+ |---------|-------------|
21
+ | **πŸ”§ NLI Fix** | Fixed contradiction detection β€” now uses `CrossEncoder.predict()` instead of broken `pipeline("text-classification")` dict input. Contradictions actually work now. |
22
+ | **πŸ”’ Thread Safety** | `BoundedCache` now uses `threading.RLock` to prevent race conditions under concurrent Gradio requests |
23
+ | **⚑ Pre-compiled Regex** | All regex patterns (clause classification, obligations, compliance negation) pre-compiled at module level β€” eliminates thousands of redundant compilations |
24
+ | **πŸ”— Extension Fix** | Chrome extension risk formula now matches backend (diminishing returns, not normalized by doc length). Fixed API_BASE URL. |
25
+ | **🏷️ Label Coverage** | Added missing regex-only labels (Indemnification, Confidentiality, Force Majeure, Penalties) to RISK_MAP and DESC_MAP |
26
+ | **πŸ›‘οΈ Security** | API CORS localhost origins now require explicit opt-in via `CORS_ALLOW_LOCALHOST=true` env var |
27
+
28
+ ### Previous: v4.0
29
 
30
  | Feature | Description |
31
  |---------|-------------|