Commit ca78b572 authored by Dhananjaya Jayashanka's avatar Dhananjaya Jayashanka

added the remove punctuations code block to textAnalyze.py

parent 38813a81
......@@ -9,7 +9,7 @@ text = open("read.txt", encoding="utf-8").read()
# converting to lowercase
lower_case = text.lower()
# Removing punctuations
# Removing punctuations of the full text
cleaned_text = lower_case.translate(str.maketrans('', '', string.punctuation))
# splitting text into words
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment