Pclanglais commited on
Commit
fd496e3
·
verified ·
1 Parent(s): 4e6ef36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -166,7 +166,14 @@ class CombinedProcessor:
166
  bibliography_entries = editorial_df[editorial_df['entity_group'] == 'bibliography']['word'].tolist()
167
 
168
  bibtex_entries = []
 
 
169
  for entry in bibliography_entries:
 
 
 
 
 
170
  print(entry)
171
  entry = re.sub(r'\s*([;:,\.])\s*', r' \1 ', entry)
172
  entry = re.sub(r'- ?[\n¶] ?', r'', entry)
 
166
  bibliography_entries = editorial_df[editorial_df['entity_group'] == 'bibliography']['word'].tolist()
167
 
168
  bibtex_entries = []
169
+
170
+ corrected_bibliography_entries
171
  for entry in bibliography_entries:
172
+ entry = re.sub(r' ?¶ ?', r'¶', entry)
173
+ entry = entry.split("¶¶")
174
+ corrected_bibliography_entries.extend(entry)
175
+
176
+ for entry in corrected_bibliography_entries:
177
  print(entry)
178
  entry = re.sub(r'\s*([;:,\.])\s*', r' \1 ', entry)
179
  entry = re.sub(r'- ?[\n¶] ?', r'', entry)