Class for the handling of sound-class models.
Parameters : | model : { ‘sca’, ‘dolgo’, ‘asjp’, ‘art’, ‘color’ }
|
---|
Notes
Models are loaded from binary files which can be found in the data/models/ folder of the LingPy package. A model has two essential attributes:
Examples
When loading LingPy, the models sca, asjp, dolgo, and art are automatically loaded:
>>> from lingpy import *
Check, how the letter a is converted in the various models:
>>> for m in [asjp,sca,dolgo,art]:
>>> for m in [asjp,sca,dolgo,art]:
... print('{0} > {1} ({2})'.format('a',m.converter['a'],m.name))
...
a > a (asjp)
a > A (sca)
a > V (dolgo)
a > 7 (art)
Retrieve basic information of a given model:
>>> print(sca)
Model: sca
Info: Extended sound class model based on Dolgopolsky (1986)
Source: List (2012)
Compiler: Johann-Mattis List
Date: 2012-03
Attributes
converter | |
scorer | |
info | |
name |