# Error in Sentiment Analysis Pipeline

**URL:** <https://discuss.huggingface.co/t/error-in-sentiment-analysis-pipeline/24395>\
**Category:** Models\
**Created:** [October 13, 2022, 4:00pm UTC](https://discuss.huggingface.co/t/error-in-sentiment-analysis-pipeline/24395 "2022-10-13T16:00:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LanaK](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@LanaK](https://discuss.huggingface.co/u/LanaK)\
**Post date:** [October 13, 2022, 4:00pm UTC](https://discuss.huggingface.co/t/error-in-sentiment-analysis-pipeline/24395/1 "2022-10-13T16:00:26Z")

</div>

Hello,  
I’m getting the error when running the following code:

```python
!pip install -q transformers
from transformers import pipeline
data = ["I love you", "I hate you"]
specific_model = pipeline(model="finiteautomata/bertweet-base-sentiment-analysis")
specific_model(data)

```

 ![Screen Shot 2022-10-13 at 9.59.25 AM](https://us1.discourse-cdn.com/hellohellohello/original/2X/7/74f47e6e9ad2ef9e3fe54832959a90303539d583.png)

The code was running fine before.
