THU's abandoned knowledge graph embedding lab
A 2016-era C++ implementation of TransE and friends that the authors themselves have disowned.

What it does Implements four knowledge graph embedding methods—TransE, TransH, TransR, and PTransE—in C++. These algorithms learn vector representations of entities and relations so you can predict missing links in knowledge bases like Freebase or Wikidata. The code is part of Tsinghua’s THU-OpenSK research suite.
The interesting bit The README’s blunt red-letter warning that the project “will no longer be maintained” is refreshingly honest academic housekeeping. The authors actively redirect users to OpenKE, suggesting this repo survives mainly as a historical reference or for paper reproducibility.
Key highlights
- Implements four embedding variants: TransE, TransH, TransR, PTransE
- Pure C++ implementation (unusual in an era of Python/TensorFlow dominance)
- Part of a larger THU-OpenSK ecosystem (OpenNE, OpenKE, OpenNRE)
- 1,423 stars suggest it was well-used before deprecation
- Explicitly unmaintained; successor at
thunlp/OpenKE
Caveats
- No documentation beyond the deprecation notice and project hierarchy
- No candidate images or screenshots provided
- C++ codebase may require significant effort to build vs. modern Python alternatives
Verdict Worth a look if you’re reproducing a 2015–2017 paper that cites this exact implementation. Everyone else should follow the authors’ own advice and use OpenKE instead.
Frequently asked
- What is thunlp/KB2E?
- A 2016-era C++ implementation of TransE and friends that the authors themselves have disowned.
- Is KB2E open source?
- Yes — thunlp/KB2E is open source, released under the MIT license.
- What language is KB2E written in?
- thunlp/KB2E is primarily written in C++.
- How popular is KB2E?
- thunlp/KB2E has 1.4k stars on GitHub.
- Where can I find KB2E?
- thunlp/KB2E is on GitHub at https://github.com/thunlp/KB2E.