{"id":13791295,"url":"https://github.com/rosette-api-community/text-embeddings-sample","last_synced_at":"2026-05-25T16:33:53.334Z","repository":{"id":84699321,"uuid":"68244654","full_name":"rosette-api-community/text-embeddings-sample","owner":"rosette-api-community","description":"A little python code to show how to get similarity between word embeddings returned from the Rosette API's new /text-embedding endpoint.","archived":false,"fork":false,"pushed_at":"2017-03-16T20:14:26.000Z","size":3,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-11-28T04:35:02.441Z","etag":null,"topics":["machine-learning","natural-language-processing","nlp","python","text-embedding","text-extraction","text-similarity","word-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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rosette-api-community.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-14T21:25:35.000Z","updated_at":"2019-12-18T16:45:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"65a7cbf3-eb66-4701-81a6-c04aa9591a2a","html_url":"https://github.com/rosette-api-community/text-embeddings-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rosette-api-community/text-embeddings-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosette-api-community%2Ftext-embeddings-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosette-api-community%2Ftext-embeddings-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosette-api-community%2Ftext-embeddings-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosette-api-community%2Ftext-embeddings-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rosette-api-community","download_url":"https://codeload.github.com/rosette-api-community/text-embeddings-sample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosette-api-community%2Ftext-embeddings-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33484065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-25T14:31:05.219Z","status":"ssl_error","status_checked_at":"2026-05-25T14:31:02.878Z","response_time":57,"last_error":"SSL_read: 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":["machine-learning","natural-language-processing","nlp","python","text-embedding","text-extraction","text-similarity","word-similarity"],"created_at":"2024-08-03T22:00:58.441Z","updated_at":"2026-05-25T16:33:53.311Z","avatar_url":"https://github.com/rosette-api-community.png","language":"Python","funding_links":[],"categories":["Fun Projects"],"sub_categories":[],"readme":"# Rosette API Text Embeddings Sample Code\nThis is a little python code to show how to calculate the similarity between words by computing the cosine similarity (using numpy) between the words' embeddings, returned from the [Rosette API](https://developer.rosette.com/)'s new `/text-embedding` endpoint. The call to the API uses the 1.3 version of the python binding, so be sure to install that package via `$ pip install rosette-api` or `--upgrade` via pip to get the latest.\n\n# To try it out\n1. Clone the repo and open the files in your favorite text editor/python IDE.\n2. In `cosine_similarity.py`, replace the `user_key` parameter's value `[your key here]` with your [Rosette API key](https://developer.rosette.com/admin/applications) and save.\n3. Run `test_embeddings.py` via your python IDE or command line:\n  `$ python test_embeddings.py`\n\n# Customize for your data\nTry editing `test_embeddings.py` to compare words OR longer text you might be interested in to see how their embeddings compare. And if you find anything interesting, let us know! Find us at [support.rosette.com](https://support.rosette.com/hc/en-us) or support@rosette.com.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosette-api-community%2Ftext-embeddings-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frosette-api-community%2Ftext-embeddings-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosette-api-community%2Ftext-embeddings-sample/lists"}