internal_pmi: pointwise mutual information: internal function (for use in...

Description Usage Arguments

Description

pointwise mutual information: internal function (for use in pmi and npmi functions)

Usage

1
2
internal_pmi(doc, keyword, window, ngram, remove_stopwords, min_count,
  span)

Arguments

doc

A character vector or list of character vectors

keyword

A key word or phrase to test

window

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

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

Collocates that occur fewer times than floor will be removed

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.