2023-12-05

The Application

The application I created is called “Predicting the next word”. This is a simple appplication that let’s you insert up to a 5-word sentence and gives you the prediction for the following word.

Instructions

  • There is a pre-selected sentence that you can change to predict the next word
  • Once you typed in a sentence you can get up to 10 predictions and their probability of likelihood
  • Use the slider feature to select the amount of words you would like to have predicted back to you.
  • Please wait about 10 seconds after typing each sentence.

Here is what the application looks like:

Predict the Next Word

The Algorithm

For the algorithm, I used an n-gram model predicts words in a sentence by looking at the sequence of ‘n’ words that come before. It learns from patterns in text data, figuring out which words or phrases usually follow others. This helps figure out the next word in a sentence.

Conclusion

Thank you for reviewing my application and presentation. Congratulations on getting this far!!!