Text Cleaning code Edited

parent 4b494512
......@@ -105,19 +105,7 @@ class Summarizer_:
x = re.sub(r"([^A-Za-z0-9\s](\s)){2,}", "", x)
return(x.replace(" ", " "))
summaryCleaned = clean_text(summary)
# Process the text (to find Out dependencies and hirerachy of the text)
spacy.prefer_gpu()
nlp = spacy.load("en_core_web_sm")
doc = nlp(summaryCleaned)
lll = doc
# print("look here:::::::::::::::::", doc)
print("Input Description:")
print(text)
# print(lll)
else:
print("")
return "Summarized result: \n" + str(lll)
#Price_Analizer
......
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