Implement visitor to calculate occurence probability of word.
Add id for models.