semantic-similarity-cli
Summary:
semantic-similarity-cli is a command-line tool leveraging NLP models to compute semantic similarity directly from your terminal. All computations are done locally.
How It Works
On first use, the tool automatically downloads and installs the Instructor embedding model. This model is then used to compute the semantic similarity of text inputs.
Installation
Install using pip:
pip install semantic-similarity-cli
Usage
Compare the similarity of input text to a given phrase:
semsim "Lorem ipsum"
Find the most similar commits to a specified sentence:
git log --oneline -n 100 | semsim "refactor rest controllers" | sort -n -r | head
Filter commits based on a minimum similarity score (e.g., 0.6):
git log --oneline -n 100 | semsim "refactor rest controllers" | awk '$1 >= 0.6'
License
MIT
Release files for semantic-similarity-cli 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| semantic-similarity-cli-1.0.0.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| semantic_similarity_cli-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.2 kB
Release files / semantic-similarity-cli-1.0.0.tar.gz
| Download URL | semantic-similarity-cli-1.0.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0576e64655e74de26ca22b9d98fd69b6a75b3cd279b8bf9708f72d73e7d37321
|
|
BLAKE2b-256 checksum How to use checksums |
e5e955b8e7fc586a145a3c7fa2f7f98695c5c3b43e1f39a9a675a11e3864e6fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / semantic_similarity_cli-1.0.0-py3-none-any.whl
| Download URL | semantic_similarity_cli-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e326b3269611f59a2425cb5030333cb259b6cc391c6814378f08ad412c32e23
|
|
BLAKE2b-256 checksum How to use checksums |
8c10bf9ebeb06637562afb72aa0b0a0b708ee00defdce0261a8d78394236510d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|