Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

semantic-similarity-cli-1.0.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

semantic_similarity_cli-1.0.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

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

Hashes for semantic-similarity-cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0576e64655e74de26ca22b9d98fd69b6a75b3cd279b8bf9708f72d73e7d37321
MD5 55e61feb0ddd6e9aaed82bf6ef649dd2
BLAKE2b-256 e5e955b8e7fc586a145a3c7fa2f7f98695c5c3b43e1f39a9a675a11e3864e6fc

See more details on using hashes here.

File details

Details for the file semantic_similarity_cli-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for semantic_similarity_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e326b3269611f59a2425cb5030333cb259b6cc391c6814378f08ad412c32e23
MD5 ae2eb23cb51d8f7d93a51a06e5e88085
BLAKE2b-256 8c10bf9ebeb06637562afb72aa0b0a0b708ee00defdce0261a8d78394236510d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page