File size: 771 Bytes
b254d49
ad06508
 
 
b254d49
 
ad06508
b254d49
 
ad06508
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: Codemix PII Detector
emoji: 🔒
colorFrom: green
colorTo: blue
sdk: docker
app_port: 7860
---

# Sinhala-English Codemix PII Detector API

NER model for detecting PII in Sinhala-English code-mixed text.
Also used as fallback for pure Sinhala script inputs.

**Model:** `Ramosh99/mixcode_pii_detector`

## API

### POST /predict
```json
{"text": "Mage name Kamal, man wada karanne MAS Holdings eke, phone 071-1234567"}
```

### Response
```json
{
  "entities": [
    {"span": "Kamal", "start": 10, "end": 15, "entity_group": "PERSON", "confidence": 0.99},
    {"span": "MAS Holdings", "start": 35, "end": 47, "entity_group": "ORG", "confidence": 0.99},
    {"span": "071-1234567", "start": 54, "end": 65, "entity_group": "PHONE", "confidence": 0.98}
  ]
}
```