file: README.md
Project description
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file semantic-similarity-cli-1.0.0.tar.gz.
File metadata
- Download URL: semantic-similarity-cli-1.0.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0576e64655e74de26ca22b9d98fd69b6a75b3cd279b8bf9708f72d73e7d37321
|
|
| MD5 |
55e61feb0ddd6e9aaed82bf6ef649dd2
|
|
| BLAKE2b-256 |
e5e955b8e7fc586a145a3c7fa2f7f98695c5c3b43e1f39a9a675a11e3864e6fc
|
File details
Details for the file semantic_similarity_cli-1.0.0-py3-none-any.whl.
File metadata
- Download URL: semantic_similarity_cli-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e326b3269611f59a2425cb5030333cb259b6cc391c6814378f08ad412c32e23
|
|
| MD5 |
ae2eb23cb51d8f7d93a51a06e5e88085
|
|
| BLAKE2b-256 |
8c10bf9ebeb06637562afb72aa0b0a0b708ee00defdce0261a8d78394236510d
|