Markov Logic Newtwork(MLN)-based Relation Extraction Model. This is the re-implementation of "Han and Sun. Global distant supervision for relation extraction. AAAI. 2016" for Korean Dataset.
- Python 3.5+
- numpy 1.13.0+
- scikit-learn 0.18.2+
- Alchemy 1.0
- Copy
config_sample.py
toconfig.py
- Edit variables in
config.py
fit to your environment.
- data_path : location of data directory
- alchemy_path : location of binary file directory of Alchemy 1.0
An example of config.py
# data directory
data_path = './data/'
# alchemy path
alchemy_path = '/home/user0/alchemy/bin/'
- Training file :
./data/train_data
- Test file :
./data/test_data
python3 train.py
python3 test.py
After test script is run, you can check the result on ./data/prec_recall_per_prop.txt
CC BY-NC-SA
Attribution-NonCommercial-ShareAlike- If you want to commercialize this resource, please contact to us
Kijong Han han0ah@kaist.ac.kr
Machine Reading Lab @ KAIST
- Kijong Han, Sangha Nam, Younggyun Hahm, Jiseong Kim, Jin-Dong Kim, Key-Sun Choi, "Analysis of Distant Supervision for Relation Extraction Dataset", The 17th International Semantic Web Conference (ISWC 2018), Posters and Demonstrations, 2018.
This work was supported by Institute for Information & communications Technology Promotion(IITP) grant funded by the Korea government(MSIT) (2013-0-00109, WiseKB: Big data based self-evolving knowledge base and reasoning platform)