uriel.py

This is a wrapper for reading data from URIEL. URIEL is important – a collection of Phoible and WALS.

See URIEL here: URIEL

Once you download uriel, put it in the data/ folder, and update the parameter in uriel.py

Module Documentation

class uriel.UrielData

This is intended to act as a container for uriel data. This is a global object, and you can load parts of it as necessary, e.g. distances, or features.

loadinventorysets(langlist=None)

This loads inventory sets. The form is: {lang : {source : set(seg, ...), ...}, ...}

uriel.getInventory(lang)

Get the phoneme inventory for lang from URIEL (note: this is slightly different from what is in Phoible)

Param:an ISO639-3 language code.
Returns:a set of inventory strings.
uriel.getclosest(query)

get closest in here...