Learn AI, Data Science & Business — Earn Certificates That Get You Hired
Learn EDR Internals: Research & Development From The Masters
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