Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -442,7 +442,7 @@ def entities_to_xml(xml_content, ner):
|
|
442 |
# Strip the <body> of the <hi> tags
|
443 |
etree.strip_tags(body_element, "{http://www.tei-c.org/ns/1.0}hi")
|
444 |
# Get the <body>'s descendants
|
445 |
-
descendants = body_element.xpath("
|
446 |
|
447 |
# Iterate through all descendants in the <body>
|
448 |
for descendant in descendants:
|
|
|
442 |
# Strip the <body> of the <hi> tags
|
443 |
etree.strip_tags(body_element, "{http://www.tei-c.org/ns/1.0}hi")
|
444 |
# Get the <body>'s descendants
|
445 |
+
descendants = body_element.xpath("descendant::*")
|
446 |
|
447 |
# Iterate through all descendants in the <body>
|
448 |
for descendant in descendants:
|