{"id":20007100,"url":"https://github.com/valkmjolnir/word-embedding-skip-gram","last_synced_at":"2026-02-07T15:32:04.455Z","repository":{"id":127294631,"uuid":"227287018","full_name":"ValKmjolnir/word-embedding-skip-gram","owner":"ValKmjolnir","description":"skip-gram word embedding model by C++","archived":false,"fork":false,"pushed_at":"2024-10-31T17:04:10.000Z","size":100,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-18T13:45:57.788Z","etag":null,"topics":["machine-learning","nlp","skip-gram","word-embedding"],"latest_commit_sha":null,"homepage":null,"language":"C++","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/ValKmjolnir.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,"zenodo":null}},"created_at":"2019-12-11T05:51:59.000Z","updated_at":"2024-10-31T17:04:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"39f68cf4-728d-4526-a507-5fb88efb47c3","html_url":"https://github.com/ValKmjolnir/word-embedding-skip-gram","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ValKmjolnir/word-embedding-skip-gram","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ValKmjolnir%2Fword-embedding-skip-gram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ValKmjolnir%2Fword-embedding-skip-gram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ValKmjolnir%2Fword-embedding-skip-gram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ValKmjolnir%2Fword-embedding-skip-gram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ValKmjolnir","download_url":"https://codeload.github.com/ValKmjolnir/word-embedding-skip-gram/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ValKmjolnir%2Fword-embedding-skip-gram/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29198178,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T14:35:27.868Z","status":"ssl_error","status_checked_at":"2026-02-07T14:25:51.081Z","response_time":63,"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":["machine-learning","nlp","skip-gram","word-embedding"],"created_at":"2024-11-13T06:14:43.870Z","updated_at":"2026-02-07T15:32:04.438Z","avatar_url":"https://github.com/ValKmjolnir.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# word-embedding-skip-gram\nskip-gram word embedding model by C++\n\nin header __nlp.h__\n```C++\n#include \"word_lib.h\"\n#include \"bp_network.h\"\n```\n\nin header __word_lib.h__\n```C++\nclass wordlib\n{\n\tprivate:\n\t\tstd::list\u003cstd::string\u003e dictionary;\n\tpublic:\n\t\twordlib();\n\t\t~wordlib();\n\t\tint get_place(std::string);\n\t\tint lib_size();\n\t\tbool search(std::string);\n\t\tvoid add_word(std::string);\n\t\tvoid add_word_from_file(std::string);\n\t\tvoid print_lib();\n\t\tvoid print_word(int);\n\t\tstd::string get_word(int);\n};\n```\nthis class is used to record all words that exist in training set.\n\nin header __bp_network.h__\n```C++\nstruct neuron;\ndouble tanh(double x);\ndouble difftanh(double x);\ndouble sigmoid(double x);\ndouble diffsigmoid(double x);\nclass word2vec;\n```\nword2vec will help you __calculate each word's embedding vector__ and __output information on the screen and into the file__ .\n\ndefault input file's name is __\"trainingset.txt\"__ ,you can change it if you like in __word_embedding.cpp__ .\n\n# the most important thing\nIf you want to change the length of vectors,please go to __bp_network.h__ and find this function: __void word2vec::initializing()__\n\nthen change the __HNUM__  at the beginning, this parameter decides the length of vectors.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalkmjolnir%2Fword-embedding-skip-gram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalkmjolnir%2Fword-embedding-skip-gram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalkmjolnir%2Fword-embedding-skip-gram/lists"}