predict_Backoff: Predict next word using backoff method

Description Usage Arguments Details Value See Also

Description

This function predicts next word using back-off algorithm.

Usage

1
predict_Backoff(testline, modelsList, isDebugMode = F)

Arguments

testline

Line on which we are performing algorithm to predict next word

modelsList

List having all Ngram models generated by generateTDM

isDebugMode

for debugging purpose, this will print out debug statements

Details

This function predicts next word based on previous N number of words using N-gram models generated by generateTDM.

Value

next predicted word

See Also

generateTDM TermDocumentMatrix


achalshah20/ANLP documentation built on May 10, 2019, 5:10 a.m.