Miscellaneous Functions (misc)
This module provides miscellaneous functions which are mostly used internally.
Sequence Modeling
ipa2tokens(seq[, diacritics, vowels, ...]) |
Tokenize IPA-encoded strings. |
tokens2class(tokens, model) |
Convert tokenized IPA strings into their respective class strings. |
class2tokens(tokens, classes[, gap_char]) |
Turn aligned sound-class sequences into an aligned sequences of IPA tokens. |
prosodic_string(seq) |
Create a prosodic string of the sonority profile of a sequence. |
prosodic_weights(prostring[, scale, factor]) |
Calculate prosodic weights for each position of a sequence. |
Internal Data Handling
squareform(x) |
A simplified version of the scipy.spatial.distance.squareform() function. |
loadtxt(infile) |
Function imitates the numpy.loadtxt() function. |
LingpyArray(input_list) |
An extension of the numpy array object which allows the storage of lists in two-dimensional arrays. |
Sequence Comparison
pid(almA, almB[, mode]) |
Calculate the Percentage Identity (PID) score for aligned sequence pairs. |