Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Sentence Similarity With Transformers and PyTorch

James Briggs via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how to implement sentence similarity using BERT and PyTorch in this 21-minute Python tutorial. Explore the power of highly-dimensional NLP techniques as you convert sentences into vectors and measure their semantic similarity. Follow along step-by-step to tokenize sentences, create hidden state tensors, generate sentence vectors, and calculate cosine similarity. Gain practical insights into BERT's architecture and its application in natural language processing tasks.

Syllabus

Intro
BERT Base Network
Sentence Vectors and Similarity
The Data and Model
Two Approaches
Tokenizing Sentences
Creating last_hidden_state Tensor
Creating Sentence Vectors
Cosine Similarity

Taught by

James Briggs

Reviews

Start your review of Sentence Similarity With Transformers and PyTorch

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.