Downloads · 30 days
0
GAD01/svm-language-detector
svm-language-detector is a text classification model from GAD01. Use it when you need a label for a piece of text. It is set up for sklearn. The card lists the license as mit.
Module 1 of the RAG-Based Mental Health Support Chatbot. Predicts the language code of a short text (e.g. en, fr, ar).
Downloads · 30 days
0
Access
Public
Updated Jun 22, 2026
Repo size
62.9 MB
Likes
0
Public
Click a slice to open those files.
.joblib62.9 MB · 100%
From the Hugging Face model README
Module 1 of the RAG-Based Mental Health Support Chatbot. Predicts the language
code of a short text (e.g. en, fr, ar).
vectorizer.joblib — fitted TfidfVectorizer (character n-grams)classifier.joblib — fitted linear classifierimport joblib
from huggingface_hub import hf_hub_download
vec = joblib.load(hf_hub_download("GAD01/svm-language-detector", "vectorizer.joblib"))
clf = joblib.load(hf_hub_download("GAD01/svm-language-detector", "classifier.joblib"))
print(clf.predict(vec.transform(["Bonjour, comment allez-vous ?"]))[0]) # -> "fr"
Trained on papluca/language-identification.