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

Description Usage Arguments Value

Description

Get keyword-in-context from a token list

Usage

1
2
3
4
getKwic(tokens, hits = NULL, token_i = NULL, nwords = 10, nsample = NA,
  doc.col = getOption("doc.col", "doc_id"),
  position.col = getOption("position.col", "position"),
  word.col = getOption("wor.col", "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 word.col, defaults to 'word').

nwords

the number of words in front and after the keyword

word.col

a character string giving the name of the term string column

Value

A data.frame with the keyword in context


kasperwelbers/semnet documentation built on May 20, 2019, 7:38 a.m.