from transformers import pipeline
classifier = pipeline('sentiment-analysis')
classifier
results = classifier('We are very happy to introduce pipeline to the transformers repository.')
print(results)
#> [{'label': 'POSITIVE', 'score': 0.9996980428695679}]
https://github.com/huggingface/transformers
https://huggingface.co/transformers/main_classes/pipelines.html?highlight=pipeline#transformers.pipeline