Spaces:
Runtime error
Runtime error
Pclanglais
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -111,7 +111,7 @@ def transform_chunks(marianne_segmentation):
|
|
111 |
html_output = []
|
112 |
for _, row in marianne_segmentation.iterrows():
|
113 |
entity_group = row['entity_group']
|
114 |
-
result_entity = "
|
115 |
word = row['word']
|
116 |
|
117 |
if entity_group == 'title':
|
|
|
111 |
html_output = []
|
112 |
for _, row in marianne_segmentation.iterrows():
|
113 |
entity_group = row['entity_group']
|
114 |
+
result_entity = "[" + entity_group.capitalize() + "]"
|
115 |
word = row['word']
|
116 |
|
117 |
if entity_group == 'title':
|