Skip to content

An AI Chatbot that answers questions about the 2007 New York Giants Super-Bowl winning team. Ask questions, add new information, and get relevant responses about players, games, and key moments.

Notifications You must be signed in to change notification settings

mattsankner/AI-Chatbot-NY-Giants-07-Super-Bowl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

New York Giants '07 Super Bowl Championship Run AI Chatbot

Overview

This chatbot is a specialized AI assistant designed to provide detailed information about the New York Giants' 2007 Super Bowl Championship run. It is built using Python and incorporates various libraries to process and understand user queries, delivering relevant responses about players, games, and key moments from the championship run.

Screenshot of my app

Features

  • Data-driven Responses: Utilizes a structured JSON database (datagiants.json) containing sentences, contexts, keywords, and player info to provide accurate and context-specific information.
  • Natural Language Processing: Employs NLTK and SpaCy for text processing, including tokenization, lemmatization, and keyword extraction, enhancing the chatbot's understanding of user queries.
  • Advanced Search Techniques: Integrates TF-IDF Vectorization and cosine similarity measures to find the best match for user queries within the data.
  • Player Information Dictionary: Contains detailed information about players and coaches, including roles, performance statistics, playoff highlights, and more.
  • Add Information to the Database: User can add new information by typing normal sentences instead of a question.

Screenshot of my app

Manual Techniques Used

  • Preprocessing and Lemmatization: Sentences from the JSON data are preprocessed and lemmatized for more effective matching.
  • Custom Keyword and Entity Extraction: Manually crafted logic to extract relevant keywords and entities from sentences, improving the relevance of responses.
  • Question Type Identification: Analyzes user queries to identify the type of question (e.g., 'who', 'what', 'when') for targeted searching.
  • Contextual Answering: For player-specific queries, the bot retrieves tailored responses from the player info dictionary.
  • Repeated Query Detection: Identifies and responds appropriately to repeated questions, enhancing user experience.

Implementation Details

  • Python Libraries: The application utilizes json, nltk, spacy, re, tkinter, numpy, and sklearn libraries.
  • Data Structure: The datagiants.json file is structured with fields for sentences, contexts, keywords, entities, and question types, aiding in accurate data retrieval.
  • Player Info Dictionary: A Python dictionary (player_info) that stores detailed information about the players and coaches.
  • User Input Processing: The application processes user input for greetings, polite statements, repeated questions, and integrates a sophisticated method to search for answers or add new data.

Screenshot of my app

Installation and Usage

  1. Dependencies: Install the required Python libraries using pip install nltk spacy numpy sklearn tkinter.
  2. NLTK Data: Download the necessary NLTK data (wordnet, punkt, stopwords).
  3. Running the Application: Launch the chatbot by running app.py. The GUI will open for user interaction.
  4. Interacting with the Chatbot: Type your queries related to the New York Giants' 2007 Super Bowl run in the chat window.

Contribution

  • Adding Data: The chatbot is designed to automatically process and integrate new data when a user enters a statement. The user can then query the statement entered.

About

An AI Chatbot that answers questions about the 2007 New York Giants Super-Bowl winning team. Ask questions, add new information, and get relevant responses about players, games, and key moments.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published