This project is a lightweight language detection web application built with Streamlit and scikit-learn. It uses a pre-trained machine learning model and text vectorizer to detect the language of user-provided text and report a confidence score for the prediction.
- Detects the language of any input text (17 languages for now)
- Displays prediction confidence using class probabilities
- Applies a configurable confidence threshold to avoid unreliable predictions
- Simple, interactive web interface powered by Streamlit
- Uses a saved scikit-learn model and vectorizer loaded via
joblib
- The user enters text in any language.
- The text is transformed using a pre-trained vectorizer.
- A trained classification model predicts the probability for each supported language.
- The language with the highest probability is selected.
- If the confidence score is below the threshold, the app warns the user instead of guessing.
The application is deployed and ready to use. Enter a short piece of text in any language and see how the model detects and scores the result in real time. https://language-detector-app.streamlit.app/
- Python
- Streamlit
- scikit-learn
- NumPy
- joblib
- Add support for more languages and build more robust web app