-
Notifications
You must be signed in to change notification settings - Fork 3
Description
I try to convert a file in script.
from cldflex.flex2csv import convert
flexinputfilepath = "ende.xml"
corpus = convert(flexinputfilepath)
works fine, as far as I can tell. But I want CLDF, so I say
from cldflex.flex2csv import convert
flexinputfilepath = "ende.xml"
corpus = convert(flexinputfilepath,cldf=True)
This gives me
KeyError: 'Config /home/snordhoff/.config/cldf/catalog.ini has no entry for glottolog'
https://github.com/fmatter/cldflex tells me "pass a dict to the convert methods." I have tried
convert(filename, conf={'Glottocode':'abcd1234'},cldf=True)
convert(filename, conf={'glottolog':'abcd1234'},cldf=True)
, to no avail.
I have also created a yaml file with the content Glottocode: abcd1234
, as asked for by https://github.com/fmatter/cldflex. However, the script complains that it does not find an ini file, and that there is no entry for "glottolog". So I wonder whether yaml or ini is required. In any case, I have also created an ini file in ~/.config.cldf
. I give the content below
[glottolog]
Glottocode = abcd1234
glottolog = abcd1234
This does not help either.
Could you share information how to provide the relevant glotto-information, or, otherwise, how to bypass the test (I do not need the glotto information for my use case).