The Healthcare Chatbot is a Python-based desktop application designed to predict potential diseases based on user-entered symptoms. It leverages natural language processing (NLP) techniques and a pretrained Named Entity Recognition (NER) model from Huggingface to extract disease names from user input.
The primary goal of this project is to provide users with accurate disease predictions based on their symptoms. By utilizing advanced NLP and machine learning models, the chatbot aims to assist users in understanding potential health issues they may be experiencing.
raynardj/ner-disease-ncbi-bionlp-bc5cdr-pubmed
) to extract disease names from user input.To run the Healthcare Chatbot locally, follow these steps:
git clone https://github.com/riyajha2305/Healthcare-Diagnosis-Chatbot.git
cd Healthcare-Diagnosis-Chatbot
pip install -r requirements.txt
pip install -U pip setuptools wheel
pip install -U spacy
python -m spacy download en_core_web_sm
Download and save pre-trained model from Huggingface as newsave_model
```
from transformers import pipeline
PRETRAINED = "raynardj/ner-disease-ncbi-bionlp-bc5cdr-pubmed"
ners = pipeline(task="ner",model=PRETRAINED, tokenizer=PRETRAINED)
import pickle as pk
with open('newsave_model', 'wb') as f:
pk.dump(ners, f)
```
Run the Application
python3 ./HealthCare_App.py
Enter Symptoms
Use the GUI interface to enter symptoms. The chatbot will predict potential diseases based on the symptoms provided.
Output Image
View results
The chatbot will display the predicted diseases or health conditions corresponding to the symptoms entered.