August 23, 2015

Data and preprocessing

  • Used twitter data.
  • Removed case.
  • Removed punctuation, numbers and accents.
  • Removed white spaces.
  • Added unknown tags using training and development datasets.

Model

  • Used 1-gram, 2-gram and 3-gram.
  • Used simple counts to predict next word
  • Kneser-Ney smoothing is being implemented.
  • Basically, this model
  • Top word prediction, excluding end of phrase as a word.
  • This is a good reference to the model

The App

  • Access here.
  • The app works like a online chat.
  • Use the text box to write some phrase.
  • Important: the app makes predictions of the next word if you already entered at least one word and press space key.
  • Press enter to send the message.
  • Talk to your friends! just like whatsapp!
  • The app was inspired on this shiny example from RStudio.

Experience

  • It was a tricky task.
  • The app was made to be fun and useful.
  • There are many points where it could be better.