Python library for the symbolic manipulation of phoneme representations
Project description
maniphono
Python library for the symbolic manipulation of phoneme representations
Installation
In any standard Python environment, maniphono
can be installed with:
$ pip install maniphono
Example usage
>>> import maniphono
>>> snd1 = maniphono.Sound("p")
>>> snd1
voiceless bilabial plosive consonant
>>> str(snd1)
'p'
>>> snd2 = snd1 + "voiced,alveolar"
>>> str(snd2)
'd'
TODO
- Consider expanding checks in
model.parse_constraints()
to evaluate non-shallow constraints (from different layers); this is not such a problem for the data as it is, because graphemes will be rejected if necessary, but it would be nice to have such a check in the function (it involves building a tree of contraints, which is interesting and potentially useful in itself) - Consider adding option in
model.py
to Unicode-normalize graphemes
What is new
Version 0.2:
- Added support for disjunction in constraints
- Renamed default model to MIPA ("Modified IPA"), expanded in number of sounds hard-coded and constraints to features and values
- Added a
.values2sounds()
method, modelled afterdistfeat
'sfeatures2graphemes()
function. - Added a
.minimal_matrix()
method, modelled afterdistfeat
'sminimal_matrix()
function. - Added a
.class_features()
method, modelled afterdistfeat
'sclass_features()
function. - Added a general distance method, modelled after
distfeat
's one, including local cache of the regressor
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
maniphono-0.1.1.tar.gz
(22.7 kB
view hashes)
Built Distribution
maniphono-0.1.1-py3-none-any.whl
(30.0 kB
view hashes)
Close
Hashes for maniphono-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65304a40aaaefdd12fca8217b819dc2972820a2440d455220b2a169fbf1eded5 |
|
MD5 | f90e231d2594d4c4c274d2bbf59752e3 |
|
BLAKE2b-256 | 69279bca7794790454c13d00a99034df44d02bb294f8f5b8ca9aea5a11f8aaa6 |