Google, IBM & Meta Certificates — 40% Off for a Limited Time
The Fastest Way to Become a Backend Developer Online
Overview
Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access
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