Data Science Capstone Final Assigment

Jose Javier Saravia Mata
24/06/2020

Project Description

This Shiny APP was built as part of the Data Science Specialization Capstone Final Assigment. The followes steps was:

  • Read the .txt files
  • Take a sample of that files
  • Use corpus to clean data
  • Use ngram to extract word combinations
  • Export dataset to RDS file
  • Use a function to read RDS and predict next word

Initial code is avaliable on: https://drive.google.com/file/d/1CtbhG-E8bKtOc_DD5rSuAZa2CdNraQbd/view?usp=sharing

Function to predict

Prediction

Caption for the picture.

Dataset stored into RDS

This is a sample of the dataset used with prediction function…

    keys     values freq prediction
1    for    for the  261        the
2    and    and the  178        the
3   with   with the  122        the
4   from   from the   96        the
5 thanks thanks for   93        for
6    you    you can   78        can

Word prediction APP running

App avaliable on: https://licjaviersaravia.shinyapps.io/CapstoneFinalAssigment/

Instructions: just type a 2-3 words sentence to analyce and then click “go”

Caption for the picture.