# New pipeline for zero-shot text classification

**URL:** <https://discuss.huggingface.co/t/new-pipeline-for-zero-shot-text-classification/681>\
**Category:** 🤗Transformers\
**Created:** [August 11, 2020, 6:34pm UTC](https://discuss.huggingface.co/t/new-pipeline-for-zero-shot-text-classification/681 "2020-08-11T18:34:22Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![rsk97](https://avatars.discourse-cdn.com/v4/letter/r/a87d85/32.png) [@rsk97](https://discuss.huggingface.co/u/rsk97)\
**Post date:** [August 22, 2020, 8:07am UTC](https://discuss.huggingface.co/t/new-pipeline-for-zero-shot-text-classification/681/14 "2020-08-22T08:07:54Z")

</div>

1. Yes you can. The idea is to train the model as an NLI task. Then you can pass this custom model that you have trained into the pipeline.

2. You can also do sentiment analysis using the zero shot text classification pipeline. But if you have sufficient data and the domain your targeting for sentiment analysis is pretty niche, you could train a transformer (or any other model for that matter) based on the data you have.

Hope this makes sense and is helpful.

---

_[View the full topic](https://discuss.huggingface.co/t/new-pipeline-for-zero-shot-text-classification/681)._
