{"id":29629971,"url":"https://github.com/binarymax/node-word2vec-native","last_synced_at":"2025-07-21T10:07:56.135Z","repository":{"id":57399028,"uuid":"44309627","full_name":"binarymax/node-word2vec-native","owner":"binarymax","description":"Port of the word2vec distance program to a native node.js addon","archived":false,"fork":false,"pushed_at":"2017-10-29T20:01:12.000Z","size":11,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-19T19:07:00.205Z","etag":null,"topics":["word2vec","word2vec-distance"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binarymax.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":"2015-10-15T10:07:45.000Z","updated_at":"2023-09-01T08:40:24.000Z","dependencies_parsed_at":"2022-09-13T21:21:21.878Z","dependency_job_id":null,"html_url":"https://github.com/binarymax/node-word2vec-native","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/binarymax/node-word2vec-native","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binarymax%2Fnode-word2vec-native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binarymax%2Fnode-word2vec-native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binarymax%2Fnode-word2vec-native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binarymax%2Fnode-word2vec-native/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binarymax","download_url":"https://codeload.github.com/binarymax/node-word2vec-native/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binarymax%2Fnode-word2vec-native/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266278415,"owners_count":23904044,"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":["word2vec","word2vec-distance"],"created_at":"2025-07-21T10:07:55.540Z","updated_at":"2025-07-21T10:07:56.124Z","avatar_url":"https://github.com/binarymax.png","language":"C++","readme":"# node-word2vec-native\nPort of the word2vec distance program to a native node.js addon\n\n## Installation\n\nInstall it from npm\n\n```npm install word2vec-native```\n\n## Usage\n\nThis addon does not train vectors.  You may use this to load an existing binary word2vec model file from disk.  Once the model is loaded, you may perform the following two operations: get and compare.\n\n```javascript\nvar distance = require('word2vec-native');\n\ndistance.open('my-word2vec-model.bin',function(err){\n    if(!err) {\n        console.log(distance.compare(\"foo\",\"bar\"));\n        console.log(distance.get(\"foo\"));\n    }\n});\n```\n\n### Get\nGiven a single term, returns a list of the most similar terms.\n\n### Compare\nGiven two terms, returns the cosine distance between their respective vectors.\n\nSee the test.js code for an example\n\n## Credit\nCredit goes to Tomas Mikolov for his original word2vec implementation. Original code from https://code.google.com/p/word2vec/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinarymax%2Fnode-word2vec-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinarymax%2Fnode-word2vec-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinarymax%2Fnode-word2vec-native/lists"}