get beta functions for sentences and words