Spaces:
Sleeping
Sleeping
File size: 1,906 Bytes
c914f37 c102230 c914f37 c102230 c914f37 c102230 c914f37 c102230 c914f37 c102230 c914f37 c102230 c914f37 c102230 c914f37 c102230 c914f37 c102230 c914f37 c102230 c914f37 c102230 c914f37 c102230 c914f37 c102230 0a85d1b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
---
title: SobroJuriBert
emoji: ⚖️
colorFrom: blue
colorTo: indigo
sdk: docker
pinned: true
license: apache-2.0
---
# SobroJuriBert - French Legal AI Assistant v2.0
Production-ready API for French legal document analysis powered by JuriBERT.
## 🆕 Version 2.0 Features
### Complete JuriBERT Integration
- **Mask Filling**: Complete masked tokens in French legal text
- **Embeddings**: Generate 768-dimensional semantic embeddings
- **Enhanced NER**: Extract persons, money, dates, organizations, courts, and legal references
- **Question Answering**: Answer questions about legal documents
- **Advanced Classification**: Classify documents with keyword analysis
### API Endpoints
#### Core Analysis
- `POST /mask-fill` - Fill [MASK] tokens in legal text
- `POST /embeddings` - Generate text embeddings
- `POST /ner` - Extract named entities (enhanced)
- `POST /qa` - Question answering
- `POST /classify` - Document classification
### Entity Types Supported
- **PER**: Persons (M. Dupont, Me Martin)
- **MONEY**: Monetary amounts (1000€, EUR 50.000)
- **LEGAL_REF**: Legal references (article L123-4, loi n°2024-001)
- **DATE**: Dates in various formats
- **ORG**: Organizations and companies
- **COURT**: Courts and tribunals
### Usage Examples
#### Mask Filling
```python
POST /mask-fill
{
"text": "Le contrat est [MASK] entre les parties.",
"top_k": 3
}
```
#### Named Entity Recognition
```python
POST /ner
{
"text": "M. Dupont a payé 15.000€ selon l'article L123-4 du Code civil le 15 janvier 2024"
}
```
#### Question Answering
```python
POST /qa
{
"context": "Le bail est signé pour une durée de 3 ans renouvelable.",
"question": "Quelle est la durée du bail?"
}
```
## About
Created by Sobro Inc. for French legal professionals.
Powered by JuriBERT and state-of-the-art French NLP models.
Version: 2.0.0 - Full JuriBERT Integration
<!-- Deployed on Vercel -->
|