find_mutation_minpairs¶
- corpustools.neighdens.neighborhood_density.find_mutation_minpairs(corpus_context, query, tier_type=None, collapse_homophones=False, stop_check=None, call_back=None)[source]¶
Find all minimal pairs of the query word based only on segment mutations (not deletions/insertions)
- Parameters
- corpus_contextCorpusContext
Context manager for a corpus
- queryWord
The word whose minimal pairs to find
- 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
- list
The found minimal pairs for the queried word