Turn aligned sound-class sequences into an aligned sequences of IPA tokens.
Parameters : | tokens : list
classes : string or list
gap_char : string
|
---|---|
Returns : | alignment : list
|
See also
Examples
>>> from lingpy import *
>>> tokens = ipa2tokens('t͡sɔyɡə')
>>> aligned_sequence = 'CU-KE'
>>> print ', '.join(class2tokens(tokens,aligned_sequence))
t͡s, ɔy, -, ɡ, ə