From 8e167224a9e388d7b05d78557f9bc554a1eebb38 Mon Sep 17 00:00:00 2001 From: FredTheNoob Date: Thu, 14 Dec 2023 14:46:07 +0100 Subject: [PATCH] add parenthesis --- components/GetSpacyData.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/GetSpacyData.py b/components/GetSpacyData.py index 78a31ec..e6e8e58 100644 --- a/components/GetSpacyData.py +++ b/components/GetSpacyData.py @@ -23,7 +23,7 @@ def GetText(title: str): file = open(title, "r") content = file.read() - file.close + file.close() lines = content.split('\n\n') modified_lines = [line + '. ' if not line.endswith(tuple(string.punctuation)) else line + ' ' for line in lines]