All Projects → xwhan → One Shot Relational Learning

xwhan / One Shot Relational Learning

Licence: apache-2.0
Code for One-shot Relational Learning for Knowledge Graphs (EMNLP18)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to One Shot Relational Learning

Cluedatasetsearch
搜索所有中文NLP数据集,附常用英文NLP数据集
Stars: ✭ 2,112 (+1086.52%)
Mutual labels:  knowledge-graph
Kbpedia
KBPedia Knowledge Graph & Knowledge Ontology (KKO)
Stars: ✭ 149 (-16.29%)
Mutual labels:  knowledge-graph
Topic Db
TopicDB is a topic maps-based semantic graph store (using PostgreSQL for persistence)
Stars: ✭ 164 (-7.87%)
Mutual labels:  knowledge-graph
Theographic Bible Metadata
A knowledge graph of biblical people, places, periods, and passages.
Stars: ✭ 131 (-26.4%)
Mutual labels:  knowledge-graph
Kobe
Source code and dataset for KDD 2019 paper "Towards Knowledge-Based Personalized Product Description Generation in E-commerce"
Stars: ✭ 148 (-16.85%)
Mutual labels:  knowledge-graph
Gamextech
A web-based knowledge management system for visualizing game related technologies.
Stars: ✭ 151 (-15.17%)
Mutual labels:  knowledge-graph
Pytextrank
Python implementation of TextRank for phrase extraction and summarization of text documents
Stars: ✭ 1,675 (+841.01%)
Mutual labels:  knowledge-graph
Mspars
Stars: ✭ 177 (-0.56%)
Mutual labels:  knowledge-graph
Tutorial Utilizing Kg
Resources for Tutorial on "Utilizing Knowledge Graphs in Text-centric Information Retrieval"
Stars: ✭ 148 (-16.85%)
Mutual labels:  knowledge-graph
Nlp4rec Papers
Paper list of NLP for recommender systems
Stars: ✭ 162 (-8.99%)
Mutual labels:  knowledge-graph
Piggydb
Piggydb is a Web notebook application that provides you with a platform to build your knowledge personally or collaboratively.
Stars: ✭ 130 (-26.97%)
Mutual labels:  knowledge-graph
Zincbase
A state of the art knowledge base
Stars: ✭ 144 (-19.1%)
Mutual labels:  knowledge-graph
Nspm
🤖 Neural SPARQL Machines for Knowledge Graph Question Answering.
Stars: ✭ 156 (-12.36%)
Mutual labels:  knowledge-graph
Hyte
EMNLP 2018: HyTE: Hyperplane-based Temporally aware Knowledge Graph Embedding
Stars: ✭ 130 (-26.97%)
Mutual labels:  knowledge-graph
Aser
ASER (activities, states, events, and their relations), a large-scale eventuality knowledge graph extracted from more than 11-billion-token unstructured textual data.
Stars: ✭ 171 (-3.93%)
Mutual labels:  knowledge-graph
Onepiece Kg
a knowledge graph project for ONEPIECE /《海贼王》知识图谱
Stars: ✭ 123 (-30.9%)
Mutual labels:  knowledge-graph
Biograkn
BioGrakn Knowledge Graph
Stars: ✭ 152 (-14.61%)
Mutual labels:  knowledge-graph
Mmkb
Several data modalities for KBs (visual, numerical, temporal, etc.)
Stars: ✭ 178 (+0%)
Mutual labels:  knowledge-graph
Nexus
Blue Brain Nexus - A knowledge graph for data-driven science
Stars: ✭ 173 (-2.81%)
Mutual labels:  knowledge-graph
Entity2rec
entity2rec generates item recommendation using property-specific knowledge graph embeddings
Stars: ✭ 159 (-10.67%)
Mutual labels:  knowledge-graph

One-Shot-Knowledge-Graph-Reasoning

PyTorch implementation of the One-Shot relational learning model described in our EMNLP 2018 paper One-Shot Relational Learning for Knowledge Graphs. In this work, we attempt to automatically infer new facts about a particular relation given only one training example. For instance, given the fact the "the Arlanda Airport is located in city Stochholm", the algorithm proposed in this papers tries to automatically infer that "the Haneda Airport is located in Tokyo" by utilizing the knowledge graph information about the involved entities (i.e. the Arlanda Airport, Stochholm, the Haneda Airport and Tokyo).

Method illustration

The main idea of this model is a matching network that encodes the one-hop neighbors of the involved entities, as defined in matcher.py.

Steps to run the experiments

Requirements

  • Python 3.6.5
  • PyTorch 0.4.1
  • tensorboardX
  • tqdm

Datasets

Pre-trained embeddings

Training

  • With random initialized embeddings: CUDA_VISIBLE_DEVICES=0 python trainer.py --max_neighbor 50 --fine_tune
  • With pretrained embeddings: CUDA_VISIBLE_DEVICES=0 python trainer.py --max_neighbor 50 --fine_tune --embed_model ComplEx

Visualization

tensorboard --logdir logs

Reference

@inproceedings{Xiong_Oneshot,
  author    = {Wenhan Xiong and
               Mo Yu and
               Shiyu Chang and
               Xiaoxiao Guo and
               William Yang Wang},
  title     = {One-Shot Relational Learning for Knowledge Graphs},
  booktitle = {Proceedings of the 2018 Conference on Empirical Methods in Natural
               Language Processing, Brussels, Belgium, October 31 - November 4, 2018},
  pages     = {1980--1990},
  publisher = {Association for Computational Linguistics},
  year      = {2018},
  url       = {https://aclanthology.info/papers/D18-1223/d18-1223},
  timestamp = {Sat, 27 Oct 2018 20:04:50 +0200},
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].