find_mutation_minpairs¶
-
corpustools.neighdens.neighborhood_density.
find_mutation_minpairs
(corpus_context, query, 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_context : CorpusContext
Context manager for a corpus
query : Word
The word whose minimal pairs to find
stop_check : callable or None
Optional function to check whether to gracefully terminate early
call_back : callable or None
Optional function to supply progress information during the function
Returns: list
The found minimal pairs for the queried word