Machine learning algorithm to predict Languages ( english, swahili, mandarin, spanish )
# 🌍 Language Detection App
A machine learning-powered web application that detects the language of user-provided text in real time using Python and Streamlit.
---
## 🚀 Overview
This project uses Natural Language Processing (NLP) and machine learning techniques to identify the language of a given text input. The application is built with Streamlit to provide a simple and interactive user interface.
Users can enter text, and the model predicts the most likely language instantly.
---
## ✨ Features
- 🌐 Detects multiple languages
- ⚡ Real-time predictions
- 🧠 Machine Learning-based language classification
- 🎨 Simple and interactive Streamlit interface
- 📊 Fast and lightweight application
---
## 🛠️ Tech Stack
- Python
- Streamlit
- Scikit-learn
- Pandas
- NumPy
- NLP Techniques
---
## 📂 Project Structure
```bash
language-detection-app/
│
├── app.py
├── model.pkl
├── vectorizer.pkl
├── requirements.txt
├── README.md
```
---
## 📸 Screenshots
### Home Interface
```md
```
---
## ⚙️ Installation
### 2. Navigate into the project directory
```bash
cd language-detection-app
```
### 3. Create a virtual environment (optional)
```bash
python -m venv venv
```
### 4. Activate the virtual environment
#### Windows
```bash
venv\Scripts\activate
```
#### Mac/Linux
```bash
source venv/bin/activate
```
### 5. Install dependencies
```bash
pip install -r requirements.txt
```
---
## ▶️ Run the Application
```bash
streamlit run app.py
```
---
## 🧠 How It Works
1. User enters text into the application
2. The text is preprocessed
3. The trained vectorizer transforms the text data
4. The machine learning model predicts the language
5. The predicted language is displayed to the user
---
## 📊 Machine Learning Workflow
- Data Cleaning
- Text Vectorization
- Model Training
- Language Classification
- Prediction
---
## 🌐 Live Demo
```md
languagethetection.streamli…
```
---
## 🔮 Future Improvements
- Add support for more languages
- Impro …