based on sentiment reader; fixes a bug from sentiment reader (idx over toks should begin at 0)