Next Word Prediction Application
Objective
- Build a Shiny application that predicts the next word.
- Provide a simple interface for users.
- Demonstrate basic text prediction.
Prediction Algorithm
- User enters a phrase.
- Application converts text to lowercase.
- Application matches known phrases using pattern matching.
- Returns a predicted next word.
Examples:
- “I love” → “you”
- “See you” → “soon”
Application Features
- Web-based Shiny application.
- Simple text input box.
- Instant prediction output.
- Hosted on shinyapps.io.
Demonstration
Example Inputs:
- I love → you
- Good morning → everyone
- How are → you
- Thank you → so much
- See you → soon
Conclusion
- Successfully created a next word prediction application.
- Demonstrates text processing using R and Shiny.
- Easy to use and accessible online.