Text Summerization Code Edited

parent a9495dd8
......@@ -86,7 +86,7 @@ class Summarizer_:
x = re.sub(r"\([^()]*\)", "", x)
key_value_strip = (x.split(":"))
string = " ".join([sub_unit for sub_unit in key_value_strip if len(
sub_unit) > 10]) # Remove strings less than 10 Characters
sub_unit) > 10]) # Remove strings less than 10 Character
# Remove serialization (eg 1. 1)
x = re.sub(r"(\d+)+(\.|\))", "", string)
x = re.sub(r"(\*|\?|=)+", "", x) # Removing ( *, ? and = )
......@@ -118,7 +118,8 @@ class Summarizer_:
else:
print("")
return "Summarized result: \n" + str(lll)
#Price Analizer
#Price_Analizer
def commodityPriceHandler():
......
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