Skip to main content

fetch functionalities for EDICTOR

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyedictor-0.4.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

pyedictor-0.4-py2.py3-none-any.whl (9.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page