Commit ceb9b8b7 authored by Neeme Kahusk's avatar Neeme Kahusk

labels_et

parent 0ab02eb7
......@@ -51,8 +51,13 @@ def main():
tabelifail = args.tablefile or 'tulbad.csv'
with open(tabelifail) as tf:
reader = csv.DictReader(csvfile, dialect=csv.excel_tab)
reader = csv.DictReader(tf, dialect=csv.excel_tab)
csvdata = [x for x in reader]
for i in csvdata:
print(i)
labels_et = [x for x in csvdata if x['label_et'] in XPATHLIST]
print(labels_et)
......@@ -60,7 +65,8 @@ def main():
if args.zip:
tulem = zip2roots(args.infile)
for i in tulem:
print(etree.tounicode(i, pretty_print=True))
pass
# print(etree.tounicode(i, pretty_print=True))
else:
p = Path(args.infile)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment