zscore: A z-score calculates a probability score that compares the...

Description Usage Arguments

Description

A z-score calculates a probability score that compares the observed collocate frequency to its expected value

Usage

1
2
zscore(doc, keyword, window = 6, ngram = 1, remove_stopwords = TRUE,
  min_count = 2, span = "both")

Arguments

doc

A character vector or list of character vectors

keyword

A character vector containing a keyword

window

The number of context words to be displayed around the keyword Default 6

ngram

The size of phrases the frequencies of which we are to test (so, unigram = 1, bigram = 2, trigram = 3 etc)

remove_stopwords

Remove stopwords, derived from Quanteda's list

min_count

The minimum frequency to include in the score

span

Whether to include a window's width of words to the left of the keyword, to the right or on both sides


cokelly/collocateR documentation built on May 13, 2019, 8:49 p.m.