Natural Language Processing in 3 lines of code? — video

Introduction to the Transformer Library for Advanced NLP

[1]: from transformers import pipeline[2]: nlp = pipeline("sentiment-analysis")[3]: result = nlp("Lovely atmosphere, staff are super friendly and wonderful people.")[0][4]: print(f"label: {result['label']}, with score: {round(result['score'], 4)}")
Photo by Iñaki del Olmo on Unsplash