A Shiny app to predict next word

Frank

Apr 27, 2015

Slide 1: Introduce predict next word app

Slide 2: App input and output

Input:

Output:

Slide 3: App data arrangement

Due to the large size of training data, we did few things to optimize:

  1. Indexed dictionary: So word will be encoded into numbers (i.e. indexes)
  2. Put ngramCountTable into files: I saved each n-gram count into individual files using n-gram index as file name

Slide 4: Algorithm

Slide 5: final product

It can be access here.