Skip to content

A telegram bot for text classification for banking-related issues. This project is created for an University project

Notifications You must be signed in to change notification settings

pusceddusimone/Benker

Repository files navigation

About Benker

My @ in telegram is @Benker_bot !
Benker is born as a college project and it is a telegram bot which can classify textual requests of banking nature.
Benker provides 3 models of text classification, which are:

  • Naive Bayes
  • Logistic Regression
  • Support Vector Machine

Scripts

Here's a brief description of all the scripts included in the project:
  • bot.py: used for all the bot's prompts and acts as an interface to the user via telegram
  • classifier.py: used to train the models and the vectorizers
  • preprocess.py: used to preprocess all the text

Modules required

Before executing the program, you must install the following mandatory modules:
  • pandas
  • scikit-learn
  • telebot
  • matplotlib
  • nltk
  • pyarrow
  • fastparquet
After you've set up all this modules, you just need to run the script bot.py and you're ready to go!

In order to run the bot you must first run the /start command where you will choose which of the 3 templates to use. After choosing the model will be trained using the training set and after the training phase, you can start to make requests.

List of useful commands

  • /start starts the bot and lets you choose one of the previously mentioned models, you can always run /start to change the model that you're using
  • /accuracy sends the model's accuracy
  • /report generates a detailed report with the precision, support, f1-score and recall for each class and the average of these scores
  • /stop stops the bot

About

A telegram bot for text classification for banking-related issues. This project is created for an University project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages