diff options
Diffstat (limited to 'python/grobid2json.py')
-rwxr-xr-x | python/grobid2json.py | 2 |
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 |