This project is a logic-based English-to-Hindi word translator built using Python, scikit-learn, and Tkinter GUI. It includes a small custom dataset and uses a Decision Tree Classifier to translate simple English words into their Hindi equivalents.
- If a word starts with a vowel (a, e, i, o, u):
- It can only be translated between 9 PM and 10 PM.
- Outside this time window, an error message will be shown.
- Words starting with consonants are translated without any time restriction.
Hindi_Translator_Project/ │ ├── english_hindi.csv # Custom dataset ├── model.pkl # Trained ML model (optional) ├── encoder.pkl # Label encoder (optional) ├── vectorizer.pkl # Text vectorizer (optional) ├── Hindi_Translator_Project.ipynb # Jupyter Notebook with all steps ├── README.md # Project README file
- English-to-Hindi translation using a trained ML model.
- GUI interface built with Tkinter.
- Input validation and custom logic for vowel-starting words.
- Displays translation output in real-time.
- Includes accuracy metrics and classification report.
- Clone or download this repository.
- Open the Jupyter Notebook:
Hindi_Translator_Project.ipynb - Run all the cells in order.
- The GUI will launch allowing you to input English words and get Hindi translations.
- Python 3.x
- scikit-learn
- pandas
- tkinter
- joblib
Install required libraries using:
pip install pandas scikit-learn joblib