This project is a web-based application that uses the FastText language detection model to predict the language of a given text. It runs on a Flask web server and is containerized using Docker and Docker Compose.
- Web Form: Enter text via a web form and detect the language.
- FastText Model: Uses the FastText
lid.176.bin
pre-trained model for language detection, supporting 176 languages. - Dockerized: Fully containerized for easy setup and deployment.
- Automatic Model Download: The FastText model is automatically downloaded if not present when the container starts.
To run this application, you need to have the following installed:
git clone https://github.com/AashishDhakal/language-predictor.git
cd language-predictor
docker-compose up --build
Open your browser and go to http://localhost:3000
to access the web application.
- Enter the text you want to detect the language for in the text area.
- Click the Detect Language button.
- The detected language will be displayed below the button.