finalshiny

GusEsq
9 october 2016

Prediction Algorithm

I tried to keep my algorithm simple

  • over 2-gram word prediction
  • 3 next possible words
  • need some rules to work (lowercases, english)

Example of function running

Let's try the word “rock”“

'> nextwordpred("rock”)

[1] “star i chair”

Other Example

'> nextwordpred(“hard”)

[1] “work get believe”

Conclusions

I always follow the rule of understanding the problem as the most important thing, when bringing down a solution. The 2-gram frecuency term look up, will give a basic but powerful approach to the next word.

This course was really challenging, for me it was really difficult for all the coding, I'm more used to statistic work, but this kind of development it's finally product for a final user, and there is where the value is added.