commit | 669786484bf6f2d5b41d7406ef7dbc7eca2610bc | [log] [tgz] |
---|---|---|
author | lora-sp <lora.spassova@swhk.ids-mannheim.de> | Wed Mar 08 11:02:52 2023 +0100 |
committer | lora-sp <lora.spassova@swhk.ids-mannheim.de> | Wed Mar 08 11:02:52 2023 +0100 |
tree | 0b1465e8a82eafbff694ad99070ac8b54358708b | |
parent | 63dab81d2d7f6554ea8e4645c417d35e04f01b50 [diff] |
get root
diff --git a/bunc2tei.py b/bunc2tei.py index e69de29..4c30ba7 100644 --- a/bunc2tei.py +++ b/bunc2tei.py
@@ -0,0 +1,11 @@ +import os +import xml.etree.ElementTree as ET + +path = 'home/spassova/BGCorpusExamples' +files = os.listdir(path) + +tree = ET.parse(path + '/' + files[0]) +root = tree.getroot() + + +