Tajan is an intelligent intent-recognition system built on deep bidirectional neural networks. Given a sentence or question from the user, it identifies the intended purpose from among 419 distinct topics and returns a relevant, accurate, and efficient response.
The project was designed and implemented to provide a fast, accurate, customizable solution that runs fully offline β making it suitable for a wide range of industries such as customer support, education, healthcare, e-commerce, and municipal services.
| Feature | Description |
|---|---|
| Smart Bilingual Processing | Automatic detection of Persian and English with appropriate lemmatizers |
| High Response Speed | Responds in under 0.5 seconds β suitable for thousands of concurrent users |
| Solid Accuracy | Achieves approximately 67% accuracy across 419 intents |
| Fully Offline Execution | No internet connection required β ideal for underserved regions |
| Easy Customization | Build your own assistant by editing a single JSON file |
| Smart Data Augmentation | Uses Persian synonyms to increase training data by 1.8x |
| Graphical User Interface | Simple interaction built with Tkinter |
| High Scalability | Adaptable to different industries by changing the dataset |
| Low Cost | Built entirely on free, open-source libraries |
| Complete Documentation | Step-by-step guide for installation, execution, and customization |
| Requirement | Details |
|---|---|
| Python | Version 3.10 or higher (recommended) |
| pip | Python package manager |
| RAM | Minimum 4 GB (for model training) |
| OS | Windows, Linux, or macOS (all supported) |
Note: The project has been tested on Python 3.10
tajan/
β
βββ README.md
βββ LICENSE
βββ .gitignore
βββ requirements.txt
β
βββ Model_learning_code_and_files/
β βββ tajan.ipynb
β βββ intents.json
β βββ synonym_dict.json
β
βββ chatbot/
β βββ chat_with_model.py
β βββ best_model.keras
β βββ intents.json
β βββ preprocessed_data.pkl
β
βββ generated_files/
βββ training_log.csv
βββ augmented_intents.json
βββ output.png
βββ marge.py
βββ logs/
cd tajan
pip install -r requirements.txtTip: If you face network restrictions, use:
pip install -r requirements.txt --index-url https://pypi.org/simple/
cd chatbot
python chat_with_model.pyNote: The initial model load may take up to 30 seconds.
cd Model_learning_code_and_files
jupyter notebook tajan.ipynb| Folder | Description |
|---|---|
chatbot/ |
Code and model for running the assistant |
Model_learning_code_and_files/ |
Training code, dataset, and synonym dictionary |
generated_files/ |
Output files from training (optional, for review) |
- The first run may take up to 30 seconds to load the model.
- Keep all files in their original folders β do not change the directory structure.
- No internet connection is required after installation.
This project is licensed under the MIT License β feel free to use, modify, and distribute with proper attribution.
Mahdi Razaghi
Email : phytonabcdefg1380@gmail.com
If you find Tajan useful or interesting, please consider giving it a star β on GitHub. Your support helps increase the project's visibility and motivates further development.
If this project helped you in any way, share it with others!
You can:
- β Star the repository on GitHub
- π¦ Share it on Twitter / X
- π Link to it in your portfolio or blog
- π§ Send it to colleagues and friends
π‘ Every star and share makes a difference. Thank you!
π‘ "A smarter future is built today."