Ramosh99/codemix
0
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
{"text": "Mage name Kamal, man wada karanne MAS Holdings eke, phone 071-1234567"}Response
{
"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}
]
}