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

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This course demonstrates how to create sentence embeddings with a pretrained BERT model, mean-pool hidden states, and compare sentences using cosine similarity in Python with PyTorch.

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.