CoolFace
Apppublic

MohammedMediani/darija-aicc-api

sourceHugging Faceupdated 8mo agoView on Hugging Face
1likes
App README

Darija NLU API ๐Ÿš€

![API Status](https://mohammedmediani-darija-aicc-api.hf.space/docs) ![Python](https://python.org) ![FastAPI](https://fastapi.tiangolo.com) ![Model](https://huggingface.co/MohammedMediani/marbert-fine-tuned-darija-aicc)

A professional REST API for Natural Language Understanding (NLU) in Moroccan Arabic (Darija). Designed to power intelligent contact centers and automated support systems.

๐Ÿ”— Ecosystem

ProjectDescriptionLink
๐Ÿ“บ Demo AppInteractive Streamlit UIGo to Space
๐Ÿง  ModelFine-tuned MARBERTv2Go to Model
๐Ÿ’ป Source CodeGitHub RepositoryGo to GitHub

๐Ÿš€ Quick Usage

Endpoint: /predict (POST)

Request:

json
{
  "text": "bghit n3raf solde dyali"
}

Response:

json
{
  "intent": "consulter_solde",
  "confidence": 0.985
}

Try it with cURL

bash
curl -X 'POST' \
  'https://mohammedmediani-darija-aicc-api.hf.space/predict' \
  -H 'Content-Type: application/json' \
  -d '{"text": "llah ykhalik bghit nchof factura"}'

๐Ÿ“‹ Features

  • โ€”9 Intent Categories: From balance checks (consulter_solde) to technical support (declarer_panne).
  • โ€”High Performance: Fine-tuned MARBERTv2 achieving >92% F1-score.
  • โ€”Production Ready: Built with FastAPI, utilizing async capabilities and robust error handling.
  • โ€”Code-Switching: Handles mixed Darija/French input natively.

๐Ÿ“„ License

Apache 2.0