Commit 189565e9 authored by Neeme Kahusk's avatar Neeme Kahusk

filtering

parent 1068de51
......@@ -61,12 +61,17 @@ def main():
if args.zip:
tulem = zip2roots(args.infile)
out = []
for i in tulem:
print(i)
for t in labels:
print(t)
print(t['label_et'], t['xpath'])
out.append({t['label_et']:get_xpath(i, t['xpath'])})
print(5*'--')
for k in out:
print(k)
else:
p = Path(args.infile)
if p.is_dir():
......
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