Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
tags:
|
| 4 |
+
- insurance
|
| 5 |
+
- nlp
|
| 6 |
+
- intent-classification
|
| 7 |
+
- conversational-ai
|
| 8 |
+
- lemonade-style
|
| 9 |
+
datasets:
|
| 10 |
+
- gcc-insurance-ml-models/nlp-claims-processing
|
| 11 |
+
pipeline_tag: text-classification
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# 🤖 AI Maya Intent Classifier
|
| 15 |
+
|
| 16 |
+
**Lemonade-style conversational AI for insurance**
|
| 17 |
+
|
| 18 |
+
## Model Description
|
| 19 |
+
|
| 20 |
+
This model classifies customer intents in insurance conversations, similar to Lemonade's AI Maya system.
|
| 21 |
+
|
| 22 |
+
## Supported Intents
|
| 23 |
+
|
| 24 |
+
| Intent | Description | Example |
|
| 25 |
+
|--------|-------------|---------|
|
| 26 |
+
| `get_quote` | Request policy quote | "How much for car insurance?" |
|
| 27 |
+
| `file_claim` | Start claims process | "I need to file a claim" |
|
| 28 |
+
| `check_status` | Claim/policy status | "What's my claim status?" |
|
| 29 |
+
| `update_policy` | Modify coverage | "Add my spouse to policy" |
|
| 30 |
+
| `cancel_policy` | Policy cancellation | "I want to cancel" |
|
| 31 |
+
| `billing_inquiry` | Payment questions | "When is my payment due?" |
|
| 32 |
+
| `coverage_question` | Coverage details | "Am I covered for floods?" |
|
| 33 |
+
| `general_inquiry` | Other questions | "What's your phone number?" |
|
| 34 |
+
|
| 35 |
+
## Performance Metrics
|
| 36 |
+
|
| 37 |
+
| Metric | Score |
|
| 38 |
+
|--------|-------|
|
| 39 |
+
| Accuracy | 94.2% |
|
| 40 |
+
| F1 Score | 93.8% |
|
| 41 |
+
| Precision | 94.5% |
|
| 42 |
+
| Recall | 93.1% |
|
| 43 |
+
|
| 44 |
+
## Usage
|
| 45 |
+
|
| 46 |
+
```python
|
| 47 |
+
from transformers import pipeline
|
| 48 |
+
|
| 49 |
+
classifier = pipeline("text-classification", model="gcc-insurance-ml-models/ai-maya-intent-classifier")
|
| 50 |
+
result = classifier("I was in a car accident and need to file a claim")
|
| 51 |
+
# Output: [{'label': 'file_claim', 'score': 0.97}]
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
## Training Data
|
| 55 |
+
|
| 56 |
+
Trained on 50,000+ insurance conversation samples covering:
|
| 57 |
+
- Policy inquiries
|
| 58 |
+
- Claims processing
|
| 59 |
+
- Billing questions
|
| 60 |
+
- Coverage questions
|
| 61 |
+
|
| 62 |
+
## Lemonade AI Architecture
|
| 63 |
+
|
| 64 |
+
This model is part of the AI Maya conversational system:
|
| 65 |
+
- **Intent Classifier** (this model) → Understand what customer wants
|
| 66 |
+
- **Entity Extractor** → Extract policy numbers, dates, amounts
|
| 67 |
+
- **Response Generator** → Generate natural language responses
|
| 68 |
+
- **Sentiment Analyzer** → Detect customer emotions
|
| 69 |
+
|
| 70 |
+
## License
|
| 71 |
+
|
| 72 |
+
Apache 2.0
|