Logo Lanfrica

Gabriel9009/Language_detection

Domain:

natural language processing

Record type:

software
Creator:
Gab
Host:
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 โ€ฆ

Languages