MostFrequentVariantContext

class corpustools.contextmanagers.MostFrequentVariantContext(corpus, sequence_type, type_or_token, attribute=None, frequency_threshold=0, log_count=True)[source]

Corpus context that uses the most frequent pronunciation variants for transcriptions and tiers

See the documentation of BaseCorpusContext for additional information

Methods

__init__(corpus, sequence_type, type_or_token)

get_frequency_base([gramsize, halve_edges, ...])

Generate (and cache) frequencies for each segment in the Corpus.

get_phone_probs([gramsize, probability, ...])

Generate (and cache) phonotactic probabilities for segments in the Corpus.