A BERT embedding library for sentence semantic similarity measurement.
Project description
This is a sentence similarity measurement library using the forward pass of the BERT (bert-base-uncased) model. The spatial distance is computed using the cosine value between 2 semantic embedding vectors in low dimensional space. These vectors can be extracted by unique words as well as the sentence as a whole.The library also provides a flexibility for choosing any other approximators for spatial distance measurement for semantic similarity measurement.References include the BERT paper(https://arxiv.org/abs/1810.04805),Google Research BERT (https://github.com/google-research/bert/)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file BERTSimilarity-0.1.tar.gz
.
File metadata
- Download URL: BERTSimilarity-0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7686bdf9c7531f6ae6d1df7272536de72b9b9497db7457aeb297354dc114517b |
|
MD5 | 7e2134f00a756324fc506c6296a7070c |
|
BLAKE2b-256 | f9f152928d627e616b185ffcdc877f6db647ff0232302da0b502b3b56fed1785 |