Coder Social home page Coder Social logo

teacherchatbot's Introduction

TeacherChatBot

Generating Teacher responses

Teacher Bot

This is a ChatBot that generates Teacher Responses. The ChatBot is trained using the Train dataset from the BEA shared task 2023. Teacher Bot is a simple chatbot that uses TF-IDF and cosine similarity to generate responses to user input. It also includes a basic greeting mechanism.

Getting Started

Prerequisites

To run the Teacher Bot, you will need Python 3.x and the required Python packages listed in requirements.txt.

Requirements.txt

nltk scikit-learn bert-score

Usage

  1. Place your training data in the train_with-reference.jsonl file.

  2. Run the teacher_bot.py script: Interact with the chatbot by typing your messages. Type "bye" to exit the conversation

How it Works

The chatbot uses TF-IDF vectorization and cosine similarity to find the most similar response to the user's input from the training data. It also has a basic greeting mechanism to respond to greetings.

Evaluation

The chatbot's responses can be evaluated using BERTScore. We have included an example of how to use BERTScore for evaluation in the code.

Acknowledgments

This chatbot was inspired by various tutorials and examples available online.

teacherchatbot's People

Contributors

rakshureddy1308 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.