Skip to content

MyKhode/Telegram-Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏅Telegram Khmer Chatbot + Open Source Code🏅

pre-commit GitHub forks GitHub License GitHub Release GitHub code size in bytes

This will never happen if Khmer NLTK Module doesn't exist, thanks 🙏

🎯TODO

  • Tokenization and Bag of Words Creation
  • Data Preprocessing
  • Neural Network Model
  • Training the Model
  • Model Evaluation
  • Telegram Bot Integration
  • Make it more inteligent and flexible

Training Pipeline Flow

  • intents.json
  • Read patterns & tags
  • Khmer Tokenization (khmernltk.word_tokenize) ↓
  • Build Vocabulary (all_words) ↓
  • Bag of Words Encoding
  • Create Training Data
    • X_train (features)
    • y_train (labels) ↓
  • PyTorch Dataset & DataLoader
  • Neural Network Model (SimpleNet) ↓
  • Training Loop
    • Forward pass
    • Loss computation
    • Backpropagation
    • Weight update ↓
  • Save Model Weights & Metadata (data.pth)

💪Installation

pip install numpy
pip install khmer-nltk
pip install python-telegram-bot
pip install torch

🏹 Quick tour

[Official Blog Post Website Url]

To get the quick way of using this code package, please install requirement.txt and read the comment in code header before run that code script.

Some Mention

  • Check folder directory
  • create virtual environment with "myEnv" folder
  • install with requrements version module
  • Check Bot Api
  • Check Bot Username
  • Make sure u aready istall library I mentioned. (if u have any issue, U can contact me by Telegram Directly @SOYTET)

🔯 Demo

Run the ChatApp Scripts to Excute Telegram integration and Bot response after training finish

Python ./App/ChatApp.py

Screenshot 2024-05-28 180135

While Running ChatApp.py Script, so u can make some chat with Telegram Bot which u integrate with your own

សួស្ដីបង

Screenshot 2024-05-28 180224 (1)

✍️ Citation

@misc{Chatbot,
  author = {SOY TET},
  title = {Khmer Telegram Traditional Chatbot},
  year = {2023},
  publisher = {GitHub},
  journal = {GitHub repository}
}

Used in:

👨‍🎓 References

About

Khmer Telegram Ai Chatbot Using NN Model+KhmerNLTK

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published