# ValueError: too many dimensions 'str'

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fvalueerror-too-many-dimensions-str%2F16775%3E%5C
**Category:** 🤗Transformers\
**Created:** [April 13, 2022, 5:05am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fvalueerror-too-many-dimensions-str%2F16775 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fraquiba)%5C
**Post date:** [April 13, 2022, 5:05am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fvalueerror-too-many-dimensions-str%2F16775%2F1 "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
