26/09/2024

Introduction

  • App Purpose: Predict the next word in a sentence.
  • Goal: Provide a useful tool for users to quickly generate text predictions.

Data Processing

  • Data Sources: Collected from news articles, blogs, and social media platforms.
  • Preprocessing: Text cleaned, tokenized, and transformed into n-grams (bi-grams, tri-grams, etc.).

Prediction Algorithm

  • Algorithm: Uses frequency of n-grams to predict the next word.
  • Model: A probability-based approach that predicts the most likely word following the input text.

Shiny App

  • How It Works: Users input text into a box, and the app returns a prediction for the next word.
  • Instructions: Simply type a phrase and press submit to see the next word prediction.

Future Work

  • Improvements: Enhance prediction accuracy using more advanced language models (e.g., neural networks).
  • User Interface: Make the app more user-friendly with additional features.