Categories
Albert BERT DistilBert Document similarity Huggingface NLP python Search engine transformers

How to do semantic document similarity using BERT

To get semantic document similarity between documents, get the embedding using BERT and calculate the cosine similarity score between them.

How to do semantic document similarity using BERT Zero-shot classification using Huggingface transformers