dhlab.text.nb_search_text

Module Contents

Functions

phrase_plots

phrase_plots_anno

graph_from_df

get_all_konks

collocations_from_nb

Get a concordance, and count the words in it. Assume konks reside a dataframe with columns ‘after’ and ‘before’

count_from_conc

From a concordance, count the words in it. Assume konks reside a dataframe with columns ‘after’ and ‘before’

API

dhlab.text.nb_search_text.phrase_plots(phrase_sets, title='aftenposten', fra=1960, til=2020, step=5, rot=0, colours=['r', 'b', 'g', 'y', 'm', 'c'])
dhlab.text.nb_search_text.phrase_plots_anno(phrase_sets, title='aftenposten', fra=1960, til=2020, rot=0, colours=['r', 'b', 'g'])
dhlab.text.nb_search_text.graph_from_df(df, threshold=100)
dhlab.text.nb_search_text.get_all_konks(term, urns)
dhlab.text.nb_search_text.collocations_from_nb(word, corpus)

Get a concordance, and count the words in it. Assume konks reside a dataframe with columns ‘after’ and ‘before’

dhlab.text.nb_search_text.count_from_conc(concordance)

From a concordance, count the words in it. Assume konks reside a dataframe with columns ‘after’ and ‘before’