construct_pmi: Construct pointwise mutual information matrix

Description Usage Arguments Value

View source: R/word2vec_fit.R

Description

Construct pointwise mutual information matrix

Usage

1
construct_pmi(cooccur, singletons, N, smooth = 0.75)

Arguments

singletons

The dataframe of CUIs and their counts

N

The number of bins

smooth

The smoothing factor

coccur

The co-occurrence matrix

Value

A dataframe of pointwise mutual information


beamandrew/cui2vec documentation built on Nov. 4, 2019, 7:07 a.m.