Commit eb309960 authored by Neeme Kahusk's avatar Neeme Kahusk

ressursi nimi et ja en

parent 00e04399
SIMPLE = ['ressursi nimed','doi']
\ No newline at end of file
SIMPLE = ['ressursi nimed','doi']
NAMES = ['eestikeelne ressursi nimi','ingliskeelne ressursi nimi','doi']
......@@ -13,9 +13,9 @@ from pathlib import Path
from lxml import etree
from prepare import read_xml
from configure_columns import SIMPLE
from configure_columns import SIMPLE, NAMES
XPATHLIST = SIMPLE
XPATHLIST = NAMES
def make_filter(tabelifail: str = 'tulbad.csv') -> list:
"""Reads "columns file" (columns 'label', 'simplepath', 'xpath' etc. and returns
......@@ -116,7 +116,7 @@ def main():
tulem = [read_xml(args.infile)]
tulemitabel = featured_rows(tulem, labels)
csv_out(args.outfile, tulemitabel, SIMPLE)
csv_out(args.outfile, tulemitabel, XPATHLIST)
if __name__ == '__main__':
main()
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 nimi "identificationInfo/resourceName[@lang=""et""]" 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""]" 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]
ingliskeelne ressursi kirjeldus identificationInfo/description lang=en ".//x:identificationInfo/x:description[@lang=""en""]" A constantly incremented English-Estonian online dictionary, which is helpful in both human and machine translation. Currently, there are nearly 90,000 English words and phrases. Being created as a hobby, the dictionary need not meet all the quality standards of the Institute of the Estonian Language. 224 {http://www.ilsp.gr/META-XMLSchema}identificationInfo/{http://www.ilsp.gr/META-XMLSchema}description[2]
url identificationInfo/url .//x:identificationInfo/x:url http://portaal.eki.ee/dict/ies/ 224 {http://www.ilsp.gr/META-XMLSchema}identificationInfo/{http://www.ilsp.gr/META-XMLSchema}url
......
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