Transformers
ONNX
Inference Endpoints

LionGuard

LionGuard is a classifier for detecting unsafe content in the Singapore context. It uses pre-trained BAAI English embeddings and performs classification with a trained Ridge Classification model.

Usage

  1. Install transformers , onnxruntime and huggingface_hub libraries.
pip install transformers onnxruntime huggingface_hub
  1. Run inference.
python inference.py '["Example text 1"]'

Technical report is available here.

Downloads last month
511
Inference Providers NEW
This model is not currently available via any of the supported Inference Providers.
The model cannot be deployed to the HF Inference API: The model has no pipeline_tag.

Collection including govtech/lionguard-v1