# ValueError: too many dimensions 'str'

**URL:** <https://discuss.huggingface.co/t/valueerror-too-many-dimensions-str/16775>\
**Category:** 🤗Transformers\
**Created:** [April 13, 2022, 5:05am UTC](https://discuss.huggingface.co/t/valueerror-too-many-dimensions-str/16775 "2022-04-13T05:05:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raquiba](https://avatars.discourse-cdn.com/v4/letter/r/ed655f/32.png) [@raquiba](https://discuss.huggingface.co/u/raquiba)\
**Post date:** [April 13, 2022, 5:05am UTC](https://discuss.huggingface.co/t/valueerror-too-many-dimensions-str/16775/1 "2022-04-13T05:05:51Z")

</div>

I am getting multiple error when I try to train my model using trainer. I can’t figure out how to resolve this Value Error. Can someone please help me?

I have attached the coden here:

> <https://github.com/raquibaS/Sentiment-Analysis/blob/main/main.ipynb>

Thanks,  
Raquiba
