2024-08-21
Introduction
- Problem: Predicting the next word in a sentence is often challenging, especially in real-time applications like mobile text input.
- Goal: Create an efficient and accurate predictive text model.
- Solution: A predictive model demonstrated through a Shiny app, designed to make text input faster and smarter.
Model Overview
- Built using an n-gram model that predicts the next word based on prior text.
- Handles input, processes n-grams, and suggests the most likely next word.
- Efficiently balances accuracy and speed to optimize user experience.
Model Performance
- Accuracy: 85%
- Precision: 80%
- Recall: 78%
- Computational efficiency: Takes 50 ms per prediction.
- Graph:

Shiny App Overview
- Intuitive interface for users to input text and receive predictions.
- Key Features:
- Input an n-gram.
- Predicts the next word.
- Designed for ease of use and efficiency.
Conclusion
- Key Benefits:
- Accurate predictions with 85% accuracy.
- Fast and efficient, taking only 50 ms per prediction.
- Easy to use for various applications like mobile keyboards or search engines.
- Future Outlook:
- Plans to integrate more languages and advanced models.
- Potential expansion to other platforms.