probabalistic right linear grammar trainer
more likely weighted calculation