Spaces:
Running
Running
v4.2: Update README.md
Browse files
README.md
CHANGED
|
@@ -10,11 +10,22 @@ app_file: app.py
|
|
| 10 |
pinned: false
|
| 11 |
---
|
| 12 |
|
| 13 |
-
# π‘οΈ ClauseGuard v4.
|
| 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|---------|-------------|
|