# Text-Classification Pipeline - Newbie question

**URL:** <https://discuss.huggingface.co/t/text-classification-pipeline-newbie-question/167640>\
**Category:** Beginners\
**Created:** [August 22, 2025, 7:06pm UTC](https://discuss.huggingface.co/t/text-classification-pipeline-newbie-question/167640 "2025-08-22T19:06:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dkleine](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/dkleine/32/33964_2.png) [@dkleine](https://discuss.huggingface.co/u/dkleine)\
**Post date:** [August 22, 2025, 7:51pm UTC](https://discuss.huggingface.co/t/text-classification-pipeline-newbie-question/167640/2 "2025-08-22T19:51:01Z")

</div>

Hi Markus,

`“sentiment-analysis”` is the task specifying what you want a large language model to perform on the text. Sentiment analysis practically changes the model’s head to a classifier, which you can see here:

> <https://github.com/huggingface/transformers/blob/7d88f57fc6892b9b3d0092c53e27ae033f1bebc8/src/transformers/pipelines/ __init__.py#L154-L159>

This pipeline is pre-configured, the settings can be found below in the same file defined here:

> <https://github.com/huggingface/transformers/blob/7d88f57fc6892b9b3d0092c53e27ae033f1bebc8/src/transformers/pipelines/ __init__.py#L193-L205>

---

_[View the full topic](https://discuss.huggingface.co/t/text-classification-pipeline-newbie-question/167640)._
