text_html_output_1.png
from bs4 import BeautifulSoup

from nltk.corpus import stopwords

import re

stop_words = stopwords.words('english')
def clean(review):
    clean_html = BeautifulSoup(review).get_text()
    clean_non_letters = re.sub('[^a-zA-Z]', ' ', clean_html)
    cleaned_lowecase = clean_non_letters.lower()
    words = cleaned_lowecase.split()
    clean_words = [w for w in words if w not in stop_words]
    return ' '.join(clean_words)
clean('hello my name in 67&%gopal goyal ')