from transformers import pipeline pipe = pipeline("sentiment-analysis") >>> pipe(["This restaurant is awesome", "This restaurant is aweful"]) [{'label': 'POSITIVE', 'score': 0.9998743534088135}, {'label': 'NEGATIVE', 'score': 0.9996669292449951}] en_fr_translator = pipeline("translation_en_to_fr") >>> en_fr_translator("How old are you?") [{'translation_text': ' quel âge êtes-vous?'}] qa_model = pipeline("question-answering") question = "Where do I live?" context = "My name is Merve and I live in İstanbul." >>> qa_model(question = question, context = context) {'answer': 'İstanbul', 'end': 39, 'score': 0.953, 'start': 31}