Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -192,13 +192,20 @@ class CombinedProcessor:
|
|
192 |
|
193 |
if entity_group != 'None':
|
194 |
if entity_group in bibtex_data:
|
195 |
-
|
|
|
|
|
|
|
|
|
196 |
else:
|
197 |
bibtex_data[entity_group] = word
|
198 |
current_entity = entity_group
|
199 |
else:
|
200 |
if current_entity:
|
201 |
-
|
|
|
|
|
|
|
202 |
else:
|
203 |
bibtex_data['None'] = bibtex_data.get('None', '') + ' ' + word
|
204 |
|
|
|
192 |
|
193 |
if entity_group != 'None':
|
194 |
if entity_group in bibtex_data:
|
195 |
+
print(entity_group)
|
196 |
+
if entity_group == "Author":
|
197 |
+
bibtex_data[entity_group] += ', ' + word
|
198 |
+
else:
|
199 |
+
bibtex_data[entity_group] += ' ' + word
|
200 |
else:
|
201 |
bibtex_data[entity_group] = word
|
202 |
current_entity = entity_group
|
203 |
else:
|
204 |
if current_entity:
|
205 |
+
if current_entity == "Author":
|
206 |
+
bibtex_data[current_entity] += ', ' + word
|
207 |
+
else:
|
208 |
+
bibtex_data[current_entity] += ' ' + word
|
209 |
else:
|
210 |
bibtex_data['None'] = bibtex_data.get('None', '') + ' ' + word
|
211 |
|