Keyword in Context
- class concordancer.kwic_print.KWIC(concordance: Union[Sequence, Generator])[source]
Printing concordance data in keyword-in-context format
Methods
print
([attrs])Pretty print a concordance list
- print(attrs=['word', 'pos'])[source]
Pretty print a concordance list
- Parameters
- 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.