home << dhlab reference << dhlab.text.nb_search_text collocations_from_nb# from dhlab.text.nb_search_text import collocations_from_nb collocations_from_nb(word, corpus)[source]# Get a concordance, and count the words in it. Assume konks reside a dataframe with columns ‘after’ and ‘before’