lingpy / pyedictor

Simplified access to EDICTOR databases on the web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyEDICTOR: Simple Access to EDICTOR Databases

Installation:

$ pip install pyedictor

Usage

>>> from pyedictor import fetch
>>> wl = fetch("deepadungpalaung", to_lingpy=True)
>>> print(wl.width)
16

To load as a LexStat wordlist:

>>> from lingpy import *
>>> from pyedictor import fetch
>>> lex = fetch("deepadungpalaung", to_lingpy=True, transform=LexStat)

To convert your dataset to EDICTOR format from CLDF:

$ edictor wordlist -d cldf/cldf-metadata.json mydataset

This will create a wordlist file mydataset.tsv from your CLDF data located in cldf/cldf-metadata.json.

About

Simplified access to EDICTOR databases on the web

License:Apache License 2.0


Languages

Language:Python 100.0%