All Projects → thunlp → KNET

thunlp / KNET

Licence: MIT License
Neural Entity Typing with Knowledge Attention

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to KNET

LME
Neural Entity Typing with Language Model Enhancement
Stars: ✭ 21 (-67.69%)
Mutual labels:  knowledge-graph, entity-typing
ke-dialogue
KE-Dialogue: Injecting knowledge graph into a fully end-to-end dialogue system.
Stars: ✭ 39 (-40%)
Mutual labels:  knowledge-graph
ITO
Intelligence Task Ontology (ITO)
Stars: ✭ 37 (-43.08%)
Mutual labels:  knowledge-graph
awesome-ontology
A curated list of ontology things
Stars: ✭ 73 (+12.31%)
Mutual labels:  knowledge-graph
WhySoMuch
knowledge graph recommendation
Stars: ✭ 67 (+3.08%)
Mutual labels:  knowledge-graph
Knowledge Graph based Intent Network
Learning Intents behind Interactions with Knowledge Graph for Recommendation, WWW2021
Stars: ✭ 116 (+78.46%)
Mutual labels:  knowledge-graph
FCA-Map
💠 Ontology matching system based on formal concept analysis
Stars: ✭ 25 (-61.54%)
Mutual labels:  knowledge-graph
knowledge-graph-nlp-in-action
从模型训练到部署,实战知识图谱(Knowledge Graph)&自然语言处理(NLP)。涉及 Tensorflow, Bert+Bi-LSTM+CRF,Neo4j等 涵盖 Named Entity Recognition,Text Classify,Information Extraction,Relation Extraction 等任务。
Stars: ✭ 58 (-10.77%)
Mutual labels:  knowledge-graph
PheKnowLator
PheKnowLator: Heterogeneous Biomedical Knowledge Graphs and Benchmarks Constructed Under Alternative Semantic Models
Stars: ✭ 74 (+13.85%)
Mutual labels:  knowledge-graph
Metagraph
Metagraph是一款知识创作分享工具,不同于以往的知识创作平台,Metagraph提供了强大的内容关联能力。
Stars: ✭ 18 (-72.31%)
Mutual labels:  knowledge-graph
NSP-BERT
The code for our paper "NSP-BERT: A Prompt-based Zero-Shot Learner Through an Original Pre-training Task —— Next Sentence Prediction"
Stars: ✭ 166 (+155.38%)
Mutual labels:  entity-typing
koza
Data transformation framework for LinkML data models
Stars: ✭ 21 (-67.69%)
Mutual labels:  knowledge-graph
bangle-io
A web only WYSIWYG note taking app that saves notes locally in markdown format.
Stars: ✭ 626 (+863.08%)
Mutual labels:  knowledge-graph
AutoSF
Y. Zhang, Q. Yao, J. Kwok. Bilinear Scoring Function Search for Knowledge Graph Learning. TPAMI 2022
Stars: ✭ 51 (-21.54%)
Mutual labels:  knowledge-graph
HyperKA
Knowledge Association with Hyperbolic Knowledge Graph Embeddings, EMNLP 2020
Stars: ✭ 27 (-58.46%)
Mutual labels:  knowledge-graph
knowledge-graph
Graph Data Visualization Demo| 图数据搜索可视化应用案例
Stars: ✭ 30 (-53.85%)
Mutual labels:  knowledge-graph
skywalkR
code for Gogleva et al manuscript
Stars: ✭ 28 (-56.92%)
Mutual labels:  knowledge-graph
KGMiner
Knowledge Graph Miner
Stars: ✭ 37 (-43.08%)
Mutual labels:  knowledge-graph
DataReused
Get Data Reused
Stars: ✭ 22 (-66.15%)
Mutual labels:  knowledge-graph
covid-19-community
Community effort to build a Neo4j Knowledge Graph (KG) that links heterogeneous data about COVID-19
Stars: ✭ 95 (+46.15%)
Mutual labels:  knowledge-graph

Neural Entity Typing with Knowledge Attention

This repo contains the source code and dataset for the following paper:

  • Ji Xin, Yankai Lin, Zhiyuan Liu, Maosong Sun. Improving Neural Fine-Grained Entity Typing with Knowledge Attention. The 32nd AAAI Conference on Artificial Intelligence (AAAI 2018) pdf.

How to use our code for KNET

Prerequisite

  • python 2.7.6
  • numpy >=1.13.3
  • tensorflow 0.12.1
    • can be done by pip install https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-0.12.1-cp27-none-linux_x86_64.whl

All the codes are tested under Ubuntu 16.04.

Data

Data files should be put in the data/ folder.

  • disamb_file, containing information for disambiguation, is already in data/. Please unzip it.
  • Train, valid and test set data are also in data/. Please unzip them.
  • For the word vector file, we recommend using Glove from http://nlp.stanford.edu/data/glove.840B.300d.zip . Please download, unzip, and put it in data/.
  • types records all they types in the taxonomy (only for recording; not used in the code).

Parameters

  • Parameters saved from training is in the parameter/ folder, but you can also choose a new location.
  • We provide parameters for the model shown in our paper in the paper_parameter/ folder.

Usage

Detailed usage can be found by running python src/run.py --help.

Quick start: simply run ./run.sh.

For training and testing, follow the example of line 5 and 6 in run.sh.

How to direclty use the code for typing

  1. Organize input data in .npy format. See https://github.com/thunlp/KNET/issues/1 for instructions.

    Another example is in the direct/ folder.

    • every sentence occupies three lines in raw. The first line is the entity mention, the second is left context, the third is right context. Words are separated with spaces.
    • run raw2npy.py. It's better to use the same python version with step 2 to avoid encoding issues.
  2. Follow the example of line 7 in run.sh.

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].