Closed xrotwang closed 6 years ago
Overall, I think it makes sense to change the API as proposed, adding add_concepts
and add_languages
methods to the CLDF dataset class. It shaves off a couple lines of custom code and is still transparent enough:
https://github.com/lexibank/allenbai/pull/3/files#diff-bfcd516cfb05c3cf3e23114a2bfebd78
Saving these lines of code is very good indeed.
@LinguList yes, the concept list is in Concepticon, and that's where the data for parameters.csv
is fetched. add_concepts
will add concepts from the associated concept list in Concepticon, and if none is declared, add the concepts from etc/concepts.csv
.
Ah, okay, so this is just a fall-back. Then it's all fine with this version!
Ok, I'll finish up the code in pylexibank
, make a release, then update the dependency in setup.py
and release the datasets :)
I like this too! Nice!
Don't merge this yet. This is just a demonstrator for possible changes.