LingPy

This documentation is for version 2.0.dev, which is not released yet.

lingpy.sequence.generate.MCPhon

class lingpy.sequence.generate.MCPhon(words, tokens=False, prostrings=[])

Class for the creation of phonetic sequences (“pseudo words”).

Parameters :

words : list

List of phonetic sequences. This list can contain tokenized sequences (lists or tuples), or simple untokenized IPA strings.

tokens : bool (default=False)

If set to True, no tokenization of input sequences is carried out.

prostring : list (default=[])

List containing the prosodic profiles of the input sequences. If the list is empty, the profiles are generated automatically.

Methods

get_string([new, tokens]) Generate a string from the Markov chain created from the training data.
walk() Create random sequence from the distribution.
__init__(words, tokens=False, prostrings=[])

This Page