code: def _cldf2lexstat(
          dataset,
          segments='segments',
          transcription='value',
          row='parameter_id',
          col='language_id'):
      
      D = _cldf2wld(dataset)
      return lingpy.LexStat(D, segments=segments, transcription=transcription, row=row, col=col)
docs: Read LexStat object from cldf dataset.