Vatsav Assign 2
Vatsav Assign 2
Code
import re
def filter_stopwords_A6603(sentence_A6603):
stop_words_A6603 = {"a", "are", "how", "an", "the", "on", "in", "up", "i", "am",
"he", "she", "they", "and", "or", "is", "you"}
sentence_A6603 = sentence_A6603.lower()
for word_A6603 in stop_words_A6603:
sentence_A6603 = re.sub(r'\b' + word_A6603 + r'\b', '', sentence_A6603)
Input
Machine learning improves with data. Supervised learning uses labels, while
unsupervised finds patterns. It is useful in healthcare and finance.
Output
Given: Machine learning improves with data. Supervised learning uses labels, while
unsupervised finds patterns. It is useful in healthcare and finance.
Modified : machine learning improves with data. supervised learning uses labels,
while unsupervised finds patterns. it useful healthcare finance.
B. Sri
SriVatsav
Vathsav
22011A6603