Thanks for your reply!!
My transformers is the newest version 4.1.1.
And I think I figure out why the error occured, because my label column index is 0 and sentence column is 1, the default setting is that the label column index should be 1 and sentence column index should be 0.