aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rwxr-xr-xpython/grobid2json.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/grobid2json.py b/python/grobid2json.py
index 0eae6fe..a22d47d 100755
--- a/python/grobid2json.py
+++ b/python/grobid2json.py
@@ -59,7 +59,7 @@ def all_authors(elem: Optional[ET.Element]) -> List[Dict[str, Any]]:
addr_e = ae.find("./{%s}address" % ns)
if addr_e:
address = dict()
- for t in addr_e.getchildren():
+ for t in addr_e:
address[t.tag.split("}")[-1]] = t.text
if address:
affiliation["address"] = address