Skip to content

Commit

Permalink
Replace double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
valearna committed Jan 12, 2024
1 parent f8fffdd commit 1fb249a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/api/endpoints/curator_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def get_text_from_pdfs(self, paper_id):
fulltext = fulltext.replace('-\n', '')
fulltext = fulltext.replace('.\n', '. ')
fulltext = fulltext.replace('\n', ' ')
fulltext = fulltext.replace('"', '\"')
fulltext = fulltext.replace('"', '\'')
sentences = sent_tokenize(fulltext)
sentences = [sent for sent in sentences if np.average([len(w) for w in sent.split(' ')]) > 2]
fulltext = fulltext.replace('\n', ' ')
Expand Down

0 comments on commit 1fb249a

Please sign in to comment.