Final Project - Single Word Prediction

Matteo Gambera
28-04-2020

Algorithm description

  • n-gram model for optimized efficiency, memory and R code
  • using fast “ngram_asweka” and “data.table” functions inside new “generateNFDF” function
  • input text phrase cleaned in separate “custom_input_text_clean” function

Instructions (1/2)

Application:

  • predicts single word based on n-gram model for “News articles” or “Twitter” text data files
  • contains 4-gram model for each among two text data files
  • has progress bar to show loading of required n-grams
  • allows to select text data type among “News articles” and “Twitter”
  • has resized input text box to enter text phrase without last word
  • presents cleaned input text phrase and predicted word directly after press “Clean & Predict” button

Instructions (2/2)

  • allows to change selected text data type or edit entered text phrase to see immediately new cleaned text phrase and new predicted next word
  • application has directly visible usage example and other parts of help text in right places

Shiny APP