lingpy.sequence.generate.MCPhon¶
-
class
lingpy.sequence.generate.MCPhon(words, tokens=False, prostrings=[], classes=False, class_model=<sca-model "sca">, **keywords)¶ 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
__init__(words[, tokens, prostrings, ...])evaluate_string(string[, tokens])get_string([new, tokens])Generate a string from the Markov chain created from the training data. walk()Create random sequence from the distribution.




