# AMNRE **Repository Path**: thunlp/AMNRE ## Basic Information - **Project Name**: AMNRE - **Description**: Source code and dataset for COLING2018 paper "Adversarial Multi-lingual Neural Relation Extraction". - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-05-29 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # AMNRE ## Introduction Source code and dataset for COLING2018 paper "Adversarial Multi-lingual Neural Relation Extraction". ## Requirements - pytorch==0.3.1 - scikit-learn==0.19.1 - numpy==1.14.1 - matplotlib==2.1.2 ## Data We use the same dataset and pre-trained word embedding as the [MNRE](https://github.com/thunlp/MNRE). You can download the raw data in [this page](https://pan.baidu.com/s/1dF26l93). You need to download it to the `Data/` path and use init.py in `CNN/src/` to preprocess it. We also provide the preprocessed .npy format data in [this page](https://cloud.tsinghua.edu.cn/f/193ba7015c4047d6868a/?dl=1). Download it to the `Data/` path and unpack it, then you can run the code. ## Run Run `python train.py` in corresponding directory to train the model. It will output the average precision on test set to `AUC.txt` and the prediction result as `.npy` every epoch. Run `python draw.py