{"id":21975222,"url":"https://github.com/dimakudosh/word2vec","last_synced_at":"2025-04-28T15:50:25.761Z","repository":{"id":57672300,"uuid":"50609499","full_name":"DimaKudosh/word2vec","owner":"DimaKudosh","description":"Rust interface to word2vec.","archived":false,"fork":false,"pushed_at":"2019-11-04T15:30:36.000Z","size":52421,"stargazers_count":29,"open_issues_count":2,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T11:01:40.694Z","etag":null,"topics":["rust","word2vec"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DimaKudosh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.rst","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":"2016-01-28T19:57:43.000Z","updated_at":"2024-08-22T11:35:38.000Z","dependencies_parsed_at":"2022-08-31T02:40:30.345Z","dependency_job_id":null,"html_url":"https://github.com/DimaKudosh/word2vec","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimaKudosh%2Fword2vec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimaKudosh%2Fword2vec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimaKudosh%2Fword2vec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimaKudosh%2Fword2vec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DimaKudosh","download_url":"https://codeload.github.com/DimaKudosh/word2vec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251342700,"owners_count":21574242,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["rust","word2vec"],"created_at":"2024-11-29T15:50:22.947Z","updated_at":"2025-04-28T15:50:25.726Z","avatar_url":"https://github.com/DimaKudosh.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# word2vec [![Build Status](https://travis-ci.org/DimaKudosh/word2vec.svg?branch=master)](https://travis-ci.org/DimaKudosh/word2vec)\n\nRust interface to word2vec word vectors.\n\nThis crate provides a way to read a trained word vector file from word2vec.\nIt doesn't provide model training and hence requires a already trained model.\n\n\n## Documentation\nDocumentation is available at https://github.com/DimaKudosh/word2vec/wiki\n\n## Example\n\nAdd this to your `cargo.toml`:\n\n```\n[dependencies]\n# …\nword2vec = \"0.3.3\"\n```\n\nExample for word similarity and word clusters:\n\n```rust\nextern crate word2vec;\n\nfn main(){\n\tlet model = word2vec::wordvectors::WordVector::load_from_binary(\n\t\t\"vectors.bin\").expect(\"Unable to load word vector model\");\n\tprintln!(\"{:?}\", model.cosine(\"snow\", 10));\n\tlet positive = vec![\"woman\", \"king\"];\n\tlet negative = vec![\"man\"];\n\tprintln!(\"{:?}\", model.analogy(positive, negative, 10));\n\t\n\tlet clusters = word2vec::wordclusters::WordClusters::load_from_file(\n\t\t\"classes.txt\").expect(\"Unable to load word clusters\");\n\tprintln!(\"{:?}\", clusters.get_cluster(\"belarus\"));\n\tprintln!(\"{:?}\", clusters.get_words_on_cluster(6));\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimakudosh%2Fword2vec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimakudosh%2Fword2vec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimakudosh%2Fword2vec/lists"}