Language Detection using Machine Learning
📌 Project Overview
This project is a Language Detection Model built using Python and Machine Learning. The model predicts the language of a given text sentence.
The project uses CountVectorizer to convert text into numerical features and Multinomial Naive Bayes for classification.
🎯 Objective
The main objective is to develop a machine learning model that can automatically identify the language of a text.
🛠️ Technologies Used Python Pandas NumPy Scikit-learn CountVectorizer Multinomial Naive Bayes
📂 Dataset The dataset contains two main columns: Column Description Text--> Text/sentence used for language detection language--> Target language/class
🔄 Machine Learning Workflow Dataset ↓ Data Loading ↓ Text & Language Extraction ↓ CountVectorizer ↓ Train-Test Split ↓ Multinomial Naive Bayes ↓ Model Training ↓ Model Evaluation ↓ Language Prediction
🔮 Prediction The trained model can predict the language of new text: Example:
Text language Hello, how are you? English Bonjour, comment allez-vous? French Hola, ¿cómo estás? Spanish Guten Morgen, wie geht es dir? German
🚀 Future Improvements Add more languages and training samples.