kwic: Get keyword-in-context from a token list

Description Usage Arguments Value

Description

Get keyword-in-context from a token list

Usage

1
kwic(tokens, hits, nwords = 10, text_var = "word", prettypaste = T)

Arguments

tokens

a data frame of tokens containing columns for document id (doc_id), text position (position) and text string (column name can be specified in text_var, defaults to 'word').

nwords

the number of words in front and after the keyword

text_var

a character string giving the name of the term string column

Value

A data.frame with the keyword in context


kasperwelbers/tokenlist documentation built on May 20, 2019, 7:39 a.m.