phonotactic_probability_vitevitch¶
- corpustools.phonoprob.phonotactic_probability.phonotactic_probability_vitevitch(corpus_context, query, probability_type='unigram', stop_check=None, call_back=None)[source]¶
Calculate the phonotactic_probability of a particular word using the Vitevitch & Luce algorithm
- Parameters
- corpus_contextCorpusContext
Context manager for a corpus
- queryWord
The word whose neighborhood density to calculate.
- probability_typestr
Either ‘unigram’ or ‘bigram’ probability
- stop_checkcallable or None
Optional function to check whether to gracefully terminate early
- call_backcallable or None
Optional function to supply progress information during the function
- Returns
- float
Phonotactic probability of the word