<jupyter_start><jupyter_text>This is a Self Learning ChatBot<jupyter_code>import nltk
from newspaper import Article
import random
import string
from sklearn.feature_extraction.text import TfidfVectorizer
import numpy as np
import warnings
from sklearn.metrics.pairwise import cosine_similarity
# Ignore any warning messages
warnings.filterwarnings('ignore')
nltk.download("wordnet",quiet=True)
nltk.download("punkt",quiet=True)
# Get the article URL
article = Article("https://www.mayoclinic.org/diseases-conditions/chronic-kidney-disease/symptoms-causes/syc-20354521")
article.download()
article.parse()
article.nlp()
corpus = article.text

# Print the corpus/text
print(corpus)<jupyter_output>Overview

Chronic kidney disease, also called chronic kidney failure, describes the gradual loss of kidney function. Your kidneys filter wastes and excess fluids from your blood, which are then excreted in your urine. When chronic kidney disease reaches an advanced stage, dangerous levels of fluid, electrolytes and wastes can build up in your body.

In the early stages of chronic kidney disease, you may have few signs or symptoms. Chronic kidney disease may not become apparent until your kidney function is significantly impaired.

Treatment for chronic kidney disease focuses on slowing the progression of the kidney damage, usually by controlling the underlying cause. Chronic kidney disease can progress to end-stage kidney failure, which is fatal without artificial filtering (dialysis) or a kidney transplant.

Chronic kidney disease care at Mayo Clinic

How kidneys work

Symptoms

Signs and symptoms of chronic kidney disease develop over time if kidney damage progresses slowly. Signs an[...]
{'fraction_non_alphanumeric': 0.05352941176470588, 'fraction_numerical': 0.004705882352941176, 'mean_word_length': 5.776892430278885, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '221630', 'license': 'MIT', 'n_tokens_mistral': 474, 'n_tokens_neox': 424, 'n_words': 201, 'path': 'MedicalAssitant/AI ChatBot/Self Learning Chat Bot/.ipynb_checkpoints/Smart ChatBot-checkpoint.ipynb', 'repo_name': 'bhabalomkar421/Impulse_medicalAssistant', 'size': '1700'}