Skip to content

Instantly share code, notes, and snippets.

@gederajeg
Created April 1, 2025 08:34
Show Gist options
  • Save gederajeg/a29d108de441aa5e16fb4e03a2986996 to your computer and use it in GitHub Desktop.
Save gederajeg/a29d108de441aa5e16fb4e03a2986996 to your computer and use it in GitHub Desktop.
Using profile command from lingpy

Using the profile command from the lingpy package.

This gist provides my personal note and experience (as a non-Python [but a long-term R] user) in trying to provide clts-conformant initial orthography profile from a cldf dataset using the profile command as part of the lingpy Python package.

Context

  • The tutorial to generate initial orthography profile (after generating a valid cldf dataset under the cldf directory) is available here
  • I have created a valid cldf dataset for Enggano Holle List using R

Experiences

  • I have created a Python virtual environment in the directory for the Enggano Holle List in this line of code
  • I have activated this virtual environment with this code
  • For this orthography work, I re-installed pylexibank, pycldf, cldfbench (with pip install cldfbench[clts]) in that virtual environment

Error

  • Then, I run the initial creation of orthography python code provided here
  • HOWEVER it produces an error that the CLTS configuration in cldf cannot be found

Solution

  • Ensure that we intially clone the CLTS data using the following command cldfbench catconfig. There will be three options of catalogues to be cloned: Glottolog, Concepticon and CLTS. For the first two, I skipped by typing "N", but typing "y" for the CLTS.
  • After the previous step, running the orthography profile creation command here works!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment