2023-12-31

Data used for this application

  • Prediction model is based on three datasets, written in English language. The datasets include news, blogs and Twitter posts.
  • The data was cleaned from low-frequency occuring words and common low-context words
  • Most frequent unigrams (words) and bigrams (word pairs) have been extracted and based on them, the predictive model was built.

Most frequent words in datasets

Choice of predictive model

  • Model used for analysis is based on N-gram, where up to 4 consecutive words have been analysed for most occurrences.
  • By looking up to last 4 words, the algorithm predicts the next one, based on the most frequent sequence.

Visit very simple shiny application!