{"id":15103651,"url":"https://github.com/foxbenjaminfox/simil","last_synced_at":"2026-05-06T00:02:27.870Z","repository":{"id":57467224,"uuid":"194432769","full_name":"foxbenjaminfox/simil","owner":"foxbenjaminfox","description":"CLI for semantic string similarity","archived":false,"fork":false,"pushed_at":"2019-07-24T13:17:16.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-19T17:14:25.988Z","etag":null,"topics":["glove","machine-learning","python","spacy","string-similarity"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/foxbenjaminfox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-29T17:39:13.000Z","updated_at":"2019-07-24T13:18:23.000Z","dependencies_parsed_at":"2022-09-10T03:43:04.588Z","dependency_job_id":null,"html_url":"https://github.com/foxbenjaminfox/simil","commit_stats":null,"previous_names":["foxbenjaminfox/string-similarity-cli"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/foxbenjaminfox/simil","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxbenjaminfox%2Fsimil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxbenjaminfox%2Fsimil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxbenjaminfox%2Fsimil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxbenjaminfox%2Fsimil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foxbenjaminfox","download_url":"https://codeload.github.com/foxbenjaminfox/simil/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxbenjaminfox%2Fsimil/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32672682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["glove","machine-learning","python","spacy","string-similarity"],"created_at":"2024-09-25T19:41:15.902Z","updated_at":"2026-05-06T00:02:27.835Z","avatar_url":"https://github.com/foxbenjaminfox.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Semantic String Similarity CLI\n\n`simil` is a CLI interface to [`spacy`](https://spacy.io)'s string similarity engine. It uses the `en_vectors_web_lg` dataset to compare strings for their English semantic similarity. Given two words, phrases, or sentences, `simil` will tell you how similar their meanings are.\n\n## Installation\n\nFirst install `simil` itself:\n```bash\n$ pip3 install --user -U simil\n```\n\nNow install one of spacy's web_vector models:\n\n```\n$ python3 -m spacy download en_vectors_web_lg\n```\n\nYou can choose between `en_vectors_web_lg`, `en_core_web_lg`, and `en_core_web_md`, (`en_core_web_sm` don't include word vectors at all, and can't be used with `simil`.) `simil` will use the largest model that you have installed, with preference for the `vectors` model over a `core` model.\n\nI suggest using the large vectors model (`en_vectors_web_lg`), but you might want to use a smaller model in order to save on disk space or memory usage.\n\n## Usage:\n```bash\n$ sim first_file.txt second_file.txt # compare two files\n$ sim -s \"first string\" \"second string\" # compare two strings\n```\n\nThe output is a number between 0 and 1, representing how similar the two strings are.\n\n## Details:\n\n`simil` uses Spacy's word vector models trained with [`GLoVe`](https://nlp.stanford.edu/projects/glove/), such as [`en_vectors_web_lg`](https://spacy.io/models/en#en_vectors_web_lg).\n\nThis can be a large dataset, which makes for long startup times. So `simil` spins off a process in the background to hold the model, and works under a client-server model with it. This means that if you run `simil` a number of times in a row, only the first run is slow.\n\nThis background process does take up a fair bit of memory, typically around 2GB (for the `en_vectors_web_lg` model). After 10 minutes of inactivity it will automatically be killed, in order not to take up memory indefinitely. You can change the length of this timeout with the `--timeout` flag.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxbenjaminfox%2Fsimil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoxbenjaminfox%2Fsimil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxbenjaminfox%2Fsimil/lists"}