{"id":13605416,"url":"https://github.com/google-research/smore","last_synced_at":"2025-04-24T07:30:26.036Z","repository":{"id":37704439,"uuid":"409743166","full_name":"google-research/smore","owner":"google-research","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-08T02:09:57.000Z","size":353,"stargazers_count":163,"open_issues_count":10,"forks_count":29,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-03T00:51:55.844Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/google-research.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-23T21:03:50.000Z","updated_at":"2024-12-04T07:56:57.000Z","dependencies_parsed_at":"2023-01-24T04:50:15.133Z","dependency_job_id":null,"html_url":"https://github.com/google-research/smore","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/google-research%2Fsmore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-research%2Fsmore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-research%2Fsmore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-research%2Fsmore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google-research","download_url":"https://codeload.github.com/google-research/smore/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250582767,"owners_count":21453911,"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":[],"created_at":"2024-08-01T19:00:58.436Z","updated_at":"2025-04-24T07:30:25.608Z","avatar_url":"https://github.com/google-research.png","language":"Python","funding_links":[],"categories":[":wrench: Implementations","知识图谱问答KBQA、多跳推理"],"sub_categories":["Dataset tools","其他_文本生成、文本对话"],"readme":"# SMORE: Knowledge Graph Completion and Multi-hop Reasoning in Massive Knowledge Graphs\n\nSMORE is a a versatile framework that scales multi-hop query embeddings over KGs. SMORE can easily train query embeddings on Freebase KG with more than 86M nodes and 338M edges on a single machine. For more details, please refer to our [paper](https://arxiv.org/pdf/2110.14890.pdf).\n\n## Overview\n![](https://github.com/google-research/smore/blob/main/assets/pipeline.png?raw=true)\nSMORE designs an optimized pipeline with the following features.\n- [x] Multi-GPU Training\n- [x] Bidirectional Online Query Sampling\n\n## Installation\n\nFirst clone the repository, and install the package dependency required in the `requirements.txt`. \n\nThen navigate to the root folder of the project and do \n\n    git submodule update --init\n    pip install -e .\n\n## Models\n\nSMORE supports six different singel / multi-hop reasoning methods on KG.\n- [x] [BetaE](https://arxiv.org/abs/2010.11465)\n- [x] [Query2box](https://arxiv.org/abs/2002.05969)\n- [x] [GQE](https://arxiv.org/abs/1806.01445)\n- [x] [RotatE](https://arxiv.org/abs/1902.10197)\n- [x] [ComplEx](https://arxiv.org/abs/1606.06357)\n- [x] [DistMult](https://arxiv.org/abs/1412.6575)\n\n## Examples\n\nPlease see the example script of each methods under `smore/training` folder. We provide example scripts of the six query emebddings on six KGs.\n\n## Contributing\n\nWe welcome pull request, please check [CONTRIBUTING.md](https://github.com/Hanjun-Dai/multihop_kg/blob/license/CONTRIBUTING.md) for more details.\n\n## Citations\n\nIf you use this repo, please cite the following paper.\n\n```\n@misc{ren2021smore,\n      title={SMORE: Knowledge Graph Completion and Multi-hop Reasoning in Massive Knowledge Graphs}, \n      author={Hongyu Ren and Hanjun Dai and Bo Dai and Xinyun Chen and Denny Zhou and Jure Leskovec and Dale Schuurmans},\n      year={2021},\n      eprint={2110.14890},\n      archivePrefix={arXiv},\n      primaryClass={cs.LG}\n}\n```\n\n## License\nSMORE is licensed under the Apache License, Version 2.0.\n\nThis is not an officially supported Google product.\n\nContact hyren@cs.stanford.edu and hadai@google.com for questions about the repo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle-research%2Fsmore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogle-research%2Fsmore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle-research%2Fsmore/lists"}