Commit a9450020 authored by Neeme Kahusk's avatar Neeme Kahusk

loeb tabelit

parent 200150a3
SIMPLE = []
\ No newline at end of file
SIMPLE = ['ressursi nimed','doi']
\ No newline at end of file
......@@ -15,8 +15,8 @@ from pathlib import Path
from lxml import etree
from prepare import read_xml
from configure_columns import SIMPLE
def get_xpath(root: etree._ElementTree, xpath: str):
namespaces = {'x':'http://www.ilsp.gr/META-XMLSchema'}
......@@ -46,6 +46,10 @@ def main():
args = parser.parse_args()
with open(tabelifail) as tf:
reader = csv.DictReader(csvfile, dialect=csv.excel_tab)
csvdata = [x for x in reader]
if args.zip:
tulem = zip2roots(args.infile)
for i in tulem:
......
label_et simplepath attrs xpath example source path
ressursi nimed identificationInfo/resourceName .//x:identificationInfo/x:resourceName
eestikeelne ressursi nimi identificationInfo/resourceName lang=et ".//x:identificationInfo/x:resourceName[@lang=""et""]" Inglise-eesti masintõlkesõnastik 224 {http://www.ilsp.gr/META-XMLSchema}identificationInfo/{http://www.ilsp.gr/META-XMLSchema}resourceName[1]
ingliskeelne ressursi nimi identificationInfo/resourceName lang=en ".//x:identificationInfo/x:resourceName[@lang=""en""]" English-Estonian Machine Translation Dictionary 224 {http://www.ilsp.gr/META-XMLSchema}identificationInfo/{http://www.ilsp.gr/META-XMLSchema}resourceName[2]
eestikeelne ressursi kirjeldus identificationInfo/description lang=et ".//x:identificationInfo/x:description[@lang=""et""]" Jooksvalt täienev inglise-eesti veebisõnastik, mis on abiks tõlkimisel ja toetab ka masintõlget. Sõnastikus on praegu ligi 90 000 ingliskeelset sõna ja püsiühendit Sõnastik on loodud hobi korras ning ei pruugi vastata Eesti Keele Instituudi kvaliteedistandardile. 224 {http://www.ilsp.gr/META-XMLSchema}identificationInfo/{http://www.ilsp.gr/META-XMLSchema}description[1]
......
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