LingPy

lingpy.algorithm.misc.tokens2class

lingpy.algorithm.misc.tokens2class(tokens, model)

Convert tokenized IPA strings into their respective class strings.

Parameters :

tokens : list

A list of tokens as they are returned from ipa2tokens().

model : Model

A Model object.

Returns :

classes : string

A sound-class representation of the tokenized IPA string.

Examples

>>> from lingpy import *
>>> tokens = ipa2tokens('t͡sɔyɡə')
>>> classes = tokens2class(tokens,sca)
>>> print(classes)
CUKE