a-menu commited on
Commit
8dbb4c9
·
1 Parent(s): 9511015

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: