joinProbs: Calculate the probabilities of the token occuring and the POS...

Description Usage Arguments Value

View source: R/calcFrequency.R

Description

Calculate the probabilities of the token occuring and the POS occuring.

Usage

1
joinProbs(ngramFrame, posFrame)

Arguments

ngramFrame

A data.frame with columns "token", and "tokenprob".

posFrame

A data.frame with columns "pos" and "posprob".

Value

A data.frame with columns "pos", "token", and "combprob", sorted in descending order by "combprob".


justinnafe/NextWord documentation built on May 20, 2019, 5:16 a.m.