Skip to content

Commit

Permalink
add parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
FredTheNoob committed Dec 14, 2023
1 parent dad26d3 commit 8e16722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/GetSpacyData.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 8e16722

Please sign in to comment.