Spaces:
Sleeping
Sleeping
change body_element
Browse files
app.py
CHANGED
@@ -371,7 +371,7 @@ def get_body_text(xml_input):
|
|
371 |
body = root.xpath("//tei:body", namespaces={"tei": "http://www.tei-c.org/ns/1.0"})
|
372 |
|
373 |
if body:
|
374 |
-
body_element = body[0]
|
375 |
|
376 |
if len(body_element) > 0:
|
377 |
# Extract the text content
|
@@ -452,7 +452,7 @@ def entities_to_xml(xml_content, ner):
|
|
452 |
body = root.xpath("//tei:body", namespaces={"tei": "http://www.tei-c.org/ns/1.0"})
|
453 |
|
454 |
if body:
|
455 |
-
body_element = body[0]
|
456 |
|
457 |
if len(body_element) > 0:
|
458 |
|
|
|
371 |
body = root.xpath("//tei:body", namespaces={"tei": "http://www.tei-c.org/ns/1.0"})
|
372 |
|
373 |
if body:
|
374 |
+
body_element = body[0]
|
375 |
|
376 |
if len(body_element) > 0:
|
377 |
# Extract the text content
|
|
|
452 |
body = root.xpath("//tei:body", namespaces={"tei": "http://www.tei-c.org/ns/1.0"})
|
453 |
|
454 |
if body:
|
455 |
+
body_element = body[0]
|
456 |
|
457 |
if len(body_element) > 0:
|
458 |
|