evaluateModel: Evaluate the N-gram model

Description Usage Arguments

View source: R/evaluateModel.R

Description

Evaluate the model with preferably unseen text and indicate to the evaluation if the text has already been cleaned and tagged.

Usage

1
evaluateModel(model, input, cleanedPosText = FALSE)

Arguments

model

A list of N-gram data.frames sorted in descending order based on the probability of the token and POS sequence occuring.

input

Character vector of words.

cleanedPosText

Boolean indicating if the text has already been cleaned and tagged with POS.


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