The pipeline function
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.
Hugging Face Course
2023. 9. 13. 18:37