Keyword in Context

class concordancer.kwic_print.KWIC(concordance: Union[Sequence, Generator])[source]

Printing concordance data in keyword-in-context format



Pretty print a concordance list

print(attrs=['word', 'pos'])[source]

Pretty print a concordance list

attrslist, optional

The attributes of a token to include in printing, by default [‘word’, ‘pos’]

print_idxSequence[int], optional

Indicies of the instances of the concordance list to print out, by default None. If None, all instances are printed out.