상세 컨텐츠

본문 제목

The pipeline function

Hugging Face Course

by Taeyoon.Kim.DS 2023. 9. 13. 18:37

본문

https://www.youtube.com/watch?v=tiZFewofSLM&list=PLo2EIpI_JMQvWfQndUesu0nPBAtZ9gP1o&index=2 

from transformers import pipeline

classifier = pipeline("sentiment-analysis", "zero-shot-classification", "text-generation",)

classifier("Text"), candidate_labels=["A","B",C"] --> Softmax type.

 

관련글 더보기