# Error in Sentiment Analysis Pipeline

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-sentiment-analysis-pipeline%2F24395%3E%5C
**Category:** Models\
**Created:** [October 13, 2022, 4:00pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-sentiment-analysis-pipeline%2F24395 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FLanaK)%5C
**Post date:** [October 13, 2022, 4:00pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-sentiment-analysis-pipeline%2F24395%2F1 "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.
